|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.hp.hpl.mesa.rdf.jena.common.LiteralImpl
An implementation of Literal.
| Constructor Summary | |
LiteralImpl(boolean b)
|
|
LiteralImpl(char c)
|
|
LiteralImpl(double d)
|
|
LiteralImpl(float f)
|
|
LiteralImpl(long l)
|
|
LiteralImpl(java.lang.Object o)
|
|
LiteralImpl(java.lang.String s)
|
|
LiteralImpl(java.lang.String s,
boolean wellFormed)
|
|
LiteralImpl(java.lang.String s,
java.lang.String l)
|
|
LiteralImpl(java.lang.String s,
java.lang.String l,
boolean wellFormed)
|
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Test whether another object is equal to this object. |
boolean |
getBoolean()
Interpret the literal as a String representation of a Boolean and return its value. |
byte |
getByte()
Interpret the literal as a String representation of a byte and return its value. |
char |
getChar()
Interpret the literal as a String representation of a char and return its value. |
double |
getDouble()
Interpret the literal as a String representation of a double and return its value. |
float |
getFloat()
Interpret the literal as a String representation of a float and return its value. |
int |
getInt()
Interpret the literal as a String representation of an int and return its value. |
java.lang.String |
getLanguage()
If a language is defined for this literal return it |
long |
getLong()
Interpret the literal as a String representation of a long and return its value. |
java.lang.Object |
getObject(ObjectF f)
Interpret the literal as a String representation of an object. |
short |
getShort()
Interpret the literal as a String representation of a short and return its value. |
java.lang.String |
getString()
Return the String value of the literal |
boolean |
getWellFormed()
Return whether Literal is well formed XML |
int |
hashCode()
|
java.lang.String |
toString()
Return a String representation of the node. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LiteralImpl(boolean b)
public LiteralImpl(long l)
public LiteralImpl(char c)
public LiteralImpl(float f)
public LiteralImpl(double d)
public LiteralImpl(java.lang.String s)
public LiteralImpl(java.lang.String s,
java.lang.String l)
public LiteralImpl(java.lang.String s,
boolean wellFormed)
public LiteralImpl(java.lang.String s,
java.lang.String l,
boolean wellFormed)
public LiteralImpl(java.lang.Object o)
| Method Detail |
public java.lang.String toString()
RDFNode
toString in interface RDFNodetoString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
LiteralA Literal is equal to another object only if the object is also a Literal and the string value and language of both literals are equal, and either both have the well formed XML flag set, or neither.
equals in interface Literalequals in class java.lang.Objecto - The object to test against
public boolean getBoolean()
throws RDFException
Literal
getBoolean in interface LiteralRDFException - Generic RDF Exception
public byte getByte()
throws RDFException
Literal
getByte in interface LiteralRDFException - Generic RDF Exception
public short getShort()
throws RDFException
Literal
getShort in interface LiteralRDFException - Generic RDF Exception
public int getInt()
throws RDFException
Literal
getInt in interface LiteralRDFException - Generic RDF Exception
public long getLong()
throws RDFException
Literal
getLong in interface LiteralRDFException - Generic RDF Exception
public char getChar()
throws RDFException
Literal
getChar in interface LiteralRDFException - Generic RDF Exception
public float getFloat()
throws RDFException
Literal
getFloat in interface LiteralRDFException - Generic RDF Exception
public double getDouble()
throws RDFException
Literal
getDouble in interface LiteralRDFException - Generic RDF Exception
public java.lang.String getString()
throws RDFException
Literal
getString in interface LiteralRDFException - Generic RDF Exception
public java.lang.Object getObject(ObjectF f)
throws RDFException
Literal
getObject in interface Literalf - A factory object for creating the returned object.
RDFException - Generic RDF Exceptionpublic java.lang.String getLanguage()
Literal
getLanguage in interface Literalpublic boolean getWellFormed()
Literal
getWellFormed in interface Literal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||