|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protegex.owl.model.impl.DefaultRDFSLiteral
Field Summary | |
private static String |
DATATYPE_PREFIX
|
private static String |
LANGUAGE_PREFIX
|
private OWLModel |
owlModel
|
private String |
rawValue
|
private static char |
SEPARATOR
|
Constructor Summary | |
DefaultRDFSLiteral(OWLModel owlModel,
String rawValue)
|
Method Summary | |
void |
accept(OWLModelVisitor visitor)
This method is provided to be used with the OWLModelVisitor ,
which is part of the visitor design pattern. |
int |
compareTo(Object o)
|
static RDFSLiteral |
create(OWLModel owlModel,
Object value)
|
static RDFSLiteral |
create(OWLModel owlModel,
String lexicalValue,
RDFSDatatype datatype)
|
static RDFSLiteral |
create(OWLModel owlModel,
String text,
String language)
|
boolean |
equals(Object obj)
|
boolean |
equalsStructurally(RDFObject object)
Determines whether or not the specified class is structurally equal to this class. |
boolean |
getBoolean()
Gets the value as a boolean. |
String |
getBrowserText()
|
byte[] |
getBytes()
Gets the appropriate byte array if the value has datatype xsd:base64Binary |
RDFSDatatype |
getDatatype()
Gets the RDFSDatatype of this value. |
double |
getDouble()
|
float |
getFloat()
|
int |
getInt()
Gets the value as an int. |
String |
getLanguage()
Gets the language if it has been defined for this. |
long |
getLong()
|
Object |
getPlainValue()
If the datatype of this is one of the default datatypes, which can be optimized by Protege, then this returns an optimized value. |
static Object |
getPlainValueIfPossible(Object value)
|
String |
getRawValue()
|
static String |
getRawValue(String lexicalValue,
RDFSDatatype datatype)
|
static String |
getRawValue(String text,
String language)
|
String |
getString()
|
int |
hashCode()
|
static boolean |
isRawValue(String value)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private OWLModel owlModel
private String rawValue
private static final String DATATYPE_PREFIX
private static final String LANGUAGE_PREFIX
private static final char SEPARATOR
Constructor Detail |
public DefaultRDFSLiteral(OWLModel owlModel, String rawValue)
Method Detail |
public void accept(OWLModelVisitor visitor)
Visitable
OWLModelVisitor
,
which is part of the visitor design pattern. By implementing this method,
instances of the implementing class are stating that they can accept an
OWLModelVisitor
accept
in interface Visitable
visitor
- The visitor that will operate on this object.public int compareTo(Object o)
compareTo
in interface Comparable
public static RDFSLiteral create(OWLModel owlModel, Object value)
public static RDFSLiteral create(OWLModel owlModel, String lexicalValue, RDFSDatatype datatype)
public static RDFSLiteral create(OWLModel owlModel, String text, String language)
public boolean equals(Object obj)
public boolean equalsStructurally(RDFObject object)
RDFObject
equalsStructurally
in interface RDFObject
object
- The class to test against.
true
if the class is structurally equal
to this, false
if the class is not structurally
equal to this.public boolean getBoolean()
RDFSLiteral
getBoolean
in interface RDFSLiteral
public String getBrowserText()
getBrowserText
in interface RDFObject
public byte[] getBytes()
RDFSLiteral
getBytes
in interface RDFSLiteral
public RDFSDatatype getDatatype()
RDFSLiteral
getDatatype
in interface RDFSLiteral
public double getDouble()
getDouble
in interface RDFSLiteral
public float getFloat()
getFloat
in interface RDFSLiteral
public int getInt()
RDFSLiteral
getInt
in interface RDFSLiteral
public String getLanguage()
RDFSLiteral
getLanguage
in interface RDFSLiteral
public long getLong()
getLong
in interface RDFSLiteral
public Object getPlainValue()
RDFSLiteral
getPlainValue
in interface RDFSLiteral
public static Object getPlainValueIfPossible(Object value)
public String getRawValue()
public String getString()
getString
in interface RDFSLiteral
public static final String getRawValue(String lexicalValue, RDFSDatatype datatype)
public static final String getRawValue(String text, String language)
public int hashCode()
public static final boolean isRawValue(String value)
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |