|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.creole.ontology.Literal
public class Literal
Literal represents a single value or a value with language used for annotation properties, or a value with datatype used for the datatype properties.
| Constructor Summary | |
|---|---|
Literal(String value)
Constructor |
|
Literal(String value,
DataType dataType)
Constructor |
|
Literal(String value,
Locale language)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
DataType |
getDataType()
Gets the assigned datatype. |
Locale |
getLanguage()
Returns the language associated with this literal. |
String |
getValue()
Returns the value associated with this instance of literal. |
int |
hashCode()
|
String |
toString()
|
String |
toTurtle()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Literal(String value)
value -
public Literal(String value,
Locale language)
value - language -
public Literal(String value,
DataType dataType)
throws InvalidValueException
value - dataType -
InvalidValueException| Method Detail |
|---|
public DataType getDataType()
public String getValue()
public Locale getLanguage()
public String toString()
toString in class Objectpublic String toTurtle()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||