|
||||||||||
| 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.
| Field Summary | |
|---|---|
private DataType |
dataType
Assigned Datatype to this instance of literal |
private Locale |
language
Specified language for the literal. |
private String |
value
The actual value of the literal |
| 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 |
| Field Detail |
|---|
private String value
private Locale language
private DataType dataType
| 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 | |||||||||