|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.topbraid.spin.system.SPINLabels
public class SPINLabels
A singleton that is used to render resources into strings. By default this displays qnames (if possible). Can be changed, for example, to switch to displaying rdfs:labels instead of qnames etc.
Constructor Summary | |
---|---|
SPINLabels()
|
Method Summary | |
---|---|
static SPINLabels |
get()
Gets the singleton instance of this class. |
java.lang.String |
getCustomizedLabel(Resource resource)
Gets a "human-readable" label for a given Resource. |
java.lang.String |
getLabel(Resource resource)
Gets the label for a given Resource. |
static void |
set(SPINLabels value)
Replaces the singleton to a subclass with different behavior. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SPINLabels()
Method Detail |
---|
public static SPINLabels get()
public static void set(SPINLabels value)
value
- the new enginepublic java.lang.String getCustomizedLabel(Resource resource)
getLabel()
.
resource
-
public java.lang.String getLabel(Resource resource)
resource
- the Resource to get the label of
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |