|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jatha.dynatype.StandardLispValue org.algernon.kb.okbc.protege.AlgernonProtegeObject org.algernon.kb.okbc.protege.AlgernonProtegeValueType
Class AlgernonProtegeGenValueType ----------------- This class provides a mapping from Algernon value types to Protege and back.
Field Summary | |
AlgernonProtegeValueType |
ANY
|
AlgernonProtegeValueType |
BOOLEAN
|
private int |
f_intValue
|
private Class |
f_javaType
|
private static int |
f_nValues
|
private String |
f_string
|
private static Map |
f_values
|
private ValueType |
f_ValueType
|
AlgernonProtegeValueType |
FLOAT
|
AlgernonProtegeValueType |
FOREIGN
|
AlgernonProtegeValueType |
FRAME
|
AlgernonProtegeValueType |
INTEGER
|
AlgernonProtegeValueType |
STRING
|
AlgernonProtegeValueType |
SYMBOL
|
AlgernonProtegeValueType |
VALUETYPE
|
Fields inherited from class org.algernon.kb.okbc.protege.AlgernonProtegeObject |
f_algy |
Fields inherited from class org.jatha.dynatype.StandardLispValue |
f_lisp |
Fields inherited from interface org.algernon.kb.AlgernonValueType |
VALUETYP |
Constructor Summary | |
|
AlgernonProtegeValueType(Algernon algy)
|
private |
AlgernonProtegeValueType(Algernon algy,
String s,
Class javaType)
|
private |
AlgernonProtegeValueType(Algernon algy,
String s,
ValueType vt)
|
Method Summary | |
boolean |
canAssignToValueType(Object o,
AlgernonValueType vt)
Returns true if the Object o can be assigned to a slot having a ValueType vt. |
AlgernonValueType |
convertToAlgernonValueType(Object incomingVT)
Convert a given value type (such as Protege's ValueType) to an AlgernonValueType. |
boolean |
equals(AlgernonProtegeValueType otherValueType)
Returns true if the implementation is equal to the implementation of the argument. |
AlgernonValueType |
getAlgernonValueType(Object o)
returns the AlgernonValueType associated with the java object |
Object |
getImplementation()
returns the low level type associated with this class. |
int |
getIntValue()
returns the int value associated with this valuetype |
Class |
getJavaType()
returns the java class associated with this valuetype |
Collection |
getValues()
|
AlgernonValueType |
getValueType(Object o)
Get the data type of the Java object passed in; we expect this to be Integer, Float, Boolean, Cls, or Instance |
static Collection |
getValueTypes()
|
int |
hashCode()
Forwards the hashcode method to the Protege object so that hash tables of Protege objects will not store duplicate frames. |
private void |
initializeValues()
|
boolean |
isSimpleType()
Predicate that returns true if this AlgernonValueType is a BOOLEAN, INTEGER, FLOAT, STRING, or SYMBOL |
static void |
main(String[] args)
|
String |
toString()
returns the string label, such as "CLS" associated with this valuetype |
static AlgernonValueType |
valueOf(String s)
|
Methods inherited from class org.algernon.kb.okbc.protege.AlgernonProtegeObject |
getAlgernon, getName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static int f_nValues
private static Map f_values
private String f_string
private int f_intValue
private Class f_javaType
private ValueType f_ValueType
public AlgernonProtegeValueType ANY
public AlgernonProtegeValueType BOOLEAN
public AlgernonProtegeValueType FLOAT
public AlgernonProtegeValueType FRAME
public AlgernonProtegeValueType INTEGER
public AlgernonProtegeValueType STRING
public AlgernonProtegeValueType SYMBOL
public AlgernonProtegeValueType VALUETYPE
public AlgernonProtegeValueType FOREIGN
Constructor Detail |
private AlgernonProtegeValueType(Algernon algy, String s, ValueType vt)
private AlgernonProtegeValueType(Algernon algy, String s, Class javaType)
public AlgernonProtegeValueType(Algernon algy)
Method Detail |
private void initializeValues()
public int hashCode()
public Object getImplementation()
AlgernonValueType
getImplementation
in interface AlgernonValueType
public int getIntValue()
AlgernonValueType
getIntValue
in interface AlgernonValueType
public Class getJavaType()
AlgernonValueType
getJavaType
in interface AlgernonValueType
public AlgernonValueType convertToAlgernonValueType(Object incomingVT)
convertToAlgernonValueType
in interface AlgernonValueType
public AlgernonValueType getAlgernonValueType(Object o)
AlgernonValueType
getAlgernonValueType
in interface AlgernonValueType
public static Collection getValueTypes()
public boolean isSimpleType()
isSimpleType
in interface AlgernonValueType
public String toString()
AlgernonValueType
toString
in interface AlgernonValueType
toString
in class AlgernonProtegeObject
public boolean equals(AlgernonProtegeValueType otherValueType)
public static AlgernonValueType valueOf(String s) throws AlgernonDataException
AlgernonDataException
public AlgernonValueType getValueType(Object o)
public Collection getValues()
getValues
in interface AlgernonValueType
public boolean canAssignToValueType(Object o, AlgernonValueType vt)
public static void main(String[] args)
|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |