public class RdfLiteral extends RdfThing
Constructor and Description |
---|
RdfLiteral(double value)
Create a new literal value from a floating point value
|
RdfLiteral(int value)
Create a new literal value from an integer value
|
RdfLiteral(java.lang.String value)
Create a new literal value
|
RdfLiteral(java.lang.String value,
FieldDesc<?> descriptor)
Create a new literal value using a particular field descriptor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Return whether this literal has the same value as another literal.
|
FieldDesc<?> |
getDescriptor()
Set the field descriptor for this literal.
|
java.lang.String |
getLanguage() |
int |
hashCode()
Return the hash code for this literal
|
void |
setDescriptor(FieldDesc<?> descriptor)
Get the field descriptor for this literal
|
void |
setLanguage(java.lang.String lang)
Set the language for this Literal.
|
getName, getUri, isVariableFlag, matches, setName, setUri, setVariableFlag, toString
public RdfLiteral(double value)
value
- the valuepublic RdfLiteral(int value)
value
- the valuepublic RdfLiteral(java.lang.String value)
value
- the valuepublic RdfLiteral(java.lang.String value, FieldDesc<?> descriptor)
value
- the valuedescriptor
- the field descriptorpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public FieldDesc<?> getDescriptor()
public java.lang.String getLanguage()
public int hashCode()
hashCode
in class java.lang.Object
public void setDescriptor(FieldDesc<?> descriptor)
descriptor
- the field descriptorpublic void setLanguage(java.lang.String lang)
lang
- the language to set