be.destin.skos.core
Class Term
java.lang.Object
be.destin.skos.core.Term
- All Implemented Interfaces:
- StatusInterface, java.io.Serializable, org.openrdf.model.Literal, org.openrdf.model.Value
public class Term
- extends java.lang.Object
- implements org.openrdf.model.Literal, StatusInterface
- See Also:
- Serialized Form
Constructor Summary |
Term()
|
Term(java.lang.String key,
java.lang.String value,
java.lang.String source)
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Term
public Term()
Term
public Term(java.lang.String key,
java.lang.String value,
java.lang.String source)
getLang
public java.lang.String getLang()
- Returns:
- the key
getSource
public java.lang.String getSource()
- Returns:
- the source of the term
getValue
public java.lang.String getValue()
- Returns:
- the value
setLang
public void setLang(java.lang.String key)
- Parameters:
key
- the key to set
setSource
public void setSource(java.lang.String key)
- Parameters:
key
- the source to set
setValue
public void setValue(java.lang.String value)
- Parameters:
value
- the value to set
checkDuplicatedLabel
public int checkDuplicatedLabel(java.util.TreeMap<java.lang.String,java.lang.String> allLabels,
boolean languageSensitive,
Concept parent,
java.lang.String field)
toHtml
public java.lang.String toHtml(java.lang.String template)
toHtml
public java.lang.String toHtml()
toHtmlValue
public java.lang.String toHtmlValue()
toHtmlSource
public java.lang.String toHtmlSource()
applyRTL
public java.lang.String applyRTL()
toGraphViz
public java.lang.String toGraphViz(int width)
isRTL
public boolean isRTL()
getStatus
public java.lang.String getStatus()
- Specified by:
getStatus
in interface StatusInterface
setStatus
public void setStatus(java.lang.String aStatus)
- Specified by:
setStatus
in interface StatusInterface
getCurrentStatus
public Status getCurrentStatus()
- Specified by:
getCurrentStatus
in interface StatusInterface
setCurrentStatus
public void setCurrentStatus(Status status)
- Specified by:
setCurrentStatus
in interface StatusInterface
toRdfObjectUrl
public java.lang.String toRdfObjectUrl()
- Specified by:
toRdfObjectUrl
in interface StatusInterface
toJavaScriptParameters
public java.lang.String toJavaScriptParameters()
- Specified by:
toJavaScriptParameters
in interface StatusInterface
getLabel
public java.lang.String getLabel()
- Specified by:
getLabel
in interface org.openrdf.model.Literal
getLanguage
public java.lang.String getLanguage()
- Specified by:
getLanguage
in interface org.openrdf.model.Literal
getDatatype
public org.openrdf.model.URI getDatatype()
- Specified by:
getDatatype
in interface org.openrdf.model.Literal
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interface org.openrdf.model.Literal
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface org.openrdf.model.Literal
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Returns the label of the literal.
- Overrides:
toString
in class java.lang.Object
stringSource
public java.lang.String stringSource()
stringValue
public java.lang.String stringValue()
- Specified by:
stringValue
in interface org.openrdf.model.Value
booleanValue
public boolean booleanValue()
- Specified by:
booleanValue
in interface org.openrdf.model.Literal
byteValue
public byte byteValue()
- Specified by:
byteValue
in interface org.openrdf.model.Literal
shortValue
public short shortValue()
- Specified by:
shortValue
in interface org.openrdf.model.Literal
intValue
public int intValue()
- Specified by:
intValue
in interface org.openrdf.model.Literal
longValue
public long longValue()
- Specified by:
longValue
in interface org.openrdf.model.Literal
floatValue
public float floatValue()
- Specified by:
floatValue
in interface org.openrdf.model.Literal
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in interface org.openrdf.model.Literal
integerValue
public java.math.BigInteger integerValue()
- Specified by:
integerValue
in interface org.openrdf.model.Literal
decimalValue
public java.math.BigDecimal decimalValue()
- Specified by:
decimalValue
in interface org.openrdf.model.Literal
calendarValue
public javax.xml.datatype.XMLGregorianCalendar calendarValue()
- Specified by:
calendarValue
in interface org.openrdf.model.Literal