Algernon Software

org.algernon.kb
Interface AlgernonValueType

All Known Implementing Classes:
AlgernonProtegeValueType

public interface AlgernonValueType

Description of the class


Field Summary
static AlgernonValueType ANY
          The Algernon Value Types All data members in interfaces are implicitly public static final
static AlgernonValueType BOOLEAN
           
static AlgernonValueType FLOAT
           
static AlgernonValueType FOREIGN
           
static AlgernonValueType FRAME
           
static AlgernonValueType INTEGER
           
static AlgernonValueType STRING
           
static AlgernonValueType SYMBOL
           
static AlgernonValueType VALUETYP
           
 
Method Summary
 AlgernonValueType convertToAlgernonValueType(Object incomingValueType)
          Convert a given value type (such as Protege's ValueType) to an AlgernonValueType.
 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()
           
 boolean isSimpleType()
          Predicate that returns true if this AlgernonValueType is a BOOLEAN, NUMBER, FLOAT, STRING, or SYMBOL
 String toString()
          returns the string label, such as "CLS" associated with this valuetype
 

Field Detail

ANY

public static final AlgernonValueType ANY
The Algernon Value Types All data members in interfaces are implicitly public static final


BOOLEAN

public static final AlgernonValueType BOOLEAN

FLOAT

public static final AlgernonValueType FLOAT

FRAME

public static final AlgernonValueType FRAME

INTEGER

public static final AlgernonValueType INTEGER

STRING

public static final AlgernonValueType STRING

SYMBOL

public static final AlgernonValueType SYMBOL

VALUETYP

public static final AlgernonValueType VALUETYP

FOREIGN

public static final AlgernonValueType FOREIGN
Method Detail

getImplementation

public Object getImplementation()
returns the low level type associated with this class.


getIntValue

public int getIntValue()
returns the int value associated with this valuetype


getJavaType

public Class getJavaType()
returns the java class associated with this valuetype


getAlgernonValueType

public AlgernonValueType getAlgernonValueType(Object o)
returns the AlgernonValueType associated with the java object


convertToAlgernonValueType

public AlgernonValueType convertToAlgernonValueType(Object incomingValueType)
Convert a given value type (such as Protege's ValueType) to an AlgernonValueType.


getValues

public Collection getValues()

isSimpleType

public boolean isSimpleType()
Predicate that returns true if this AlgernonValueType is a BOOLEAN, NUMBER, FLOAT, STRING, or SYMBOL


toString

public String toString()
returns the string label, such as "CLS" associated with this valuetype


Algernon Software