|
Protégé-OWL 3.4 beta | ||||||||
| 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
public class DefaultRDFSLiteral
| Field Summary | |
|---|---|
static String |
DATATYPE_PREFIX
|
static String |
LANGUAGE_PREFIX
|
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. |
protected String |
getLanguageFromRawValue()
|
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 lang)
|
short |
getShort()
|
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 |
|---|
public static final String DATATYPE_PREFIX
public static final String LANGUAGE_PREFIX
public static final char SEPARATOR
| Constructor Detail |
|---|
public DefaultRDFSLiteral(OWLModel owlModel,
String rawValue)
| Method Detail |
|---|
public void accept(OWLModelVisitor visitor)
VisitableOWLModelVisitor,
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 Visitablevisitor - 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)
equals in class Objectpublic boolean equalsStructurally(RDFObject object)
RDFObject
equalsStructurally in interface RDFObjectobject - 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 RDFSLiteralpublic String getBrowserText()
getBrowserText in interface RDFObjectpublic byte[] getBytes()
RDFSLiteral
getBytes in interface RDFSLiteralpublic RDFSDatatype getDatatype()
RDFSLiteral
getDatatype in interface RDFSLiteralpublic double getDouble()
getDouble in interface RDFSLiteralpublic float getFloat()
getFloat in interface RDFSLiteralpublic int getInt()
RDFSLiteral
getInt in interface RDFSLiteralpublic String getLanguage()
RDFSLiteral
getLanguage in interface RDFSLiteralprotected String getLanguageFromRawValue()
public long getLong()
getLong in interface RDFSLiteralpublic short getShort()
getShort in interface RDFSLiteralpublic Object getPlainValue()
RDFSLiteral
getPlainValue in interface RDFSLiteralpublic 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 lang)
public int hashCode()
hashCode in class Objectpublic static final boolean isRawValue(String value)
public String toString()
toString in class Object
|
Protégé-OWL 3.4 beta | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||