public class BasicOntology extends Ontology implements SL0Vocabulary
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BOOLEAN |
static java.lang.String |
BYTE_SEQUENCE |
static java.lang.String |
CONTENT_ELEMENT_LIST |
static java.lang.String |
DATE |
static java.lang.String |
FLOAT |
static java.lang.String |
INTEGER |
static java.lang.String |
STRING |
ACLMSG, ACLMSG_BYTE_SEQUENCE_CONTENT, ACLMSG_CONTENT, ACLMSG_CONVERSATION_ID, ACLMSG_ENCODING, ACLMSG_IN_REPLY_TO, ACLMSG_LANGUAGE, ACLMSG_ONTOLOGY, ACLMSG_PERFORMATIVE, ACLMSG_PROTOCOL, ACLMSG_RECEIVERS, ACLMSG_REPLY_BY, ACLMSG_REPLY_TO, ACLMSG_REPLY_WITH, ACLMSG_SENDER, ACTION, ACTION_ACTION, ACTION_ACTOR, AID, AID_ADDRESSES, AID_NAME, AID_RESOLVERS, DONE, DONE_ACTION, DONE_CONDITION, EQUALS, EQUALS_LEFT, EQUALS_RIGHT, FALSE_PROPOSITION, RESULT, RESULT_ACTION, RESULT_ITEMS, RESULT_VALUE, SEQUENCE, SET, TRUE_PROPOSITION
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
adjustPrimitiveValue(java.lang.Object srcValue,
java.lang.Class destClass)
Convert, if possible, the numeric value srcValue into an instance of destClass
|
static Ontology |
getInstance()
Returns the singleton instance of the
BasicOntology . |
ObjectSchema |
getSchema(java.lang.Class clazz)
Redefine the
getSchema() method to take into
account java primitives. |
ObjectSchema |
getSchema(java.lang.String name)
Redefine the
getSchema() method to take into
account ACL performatives. |
static java.lang.Object |
resolveNumericValue(java.lang.Object srcValue,
java.lang.Class destClass)
Deprecated.
Use adjustPrimitiveValue() instead
|
add, add, checkIsTerm, createConceptSlotFunction, dump, dump, externalizeSlotValue, fromObject, getActionNames, getClassForElement, getConceptNames, getIntrospector, getName, getOwnActionNames, getOwnConceptNames, getOwnPredicateNames, getPredicateNames, getReferencedSchemas, internalizeSlotValue, isBaseOntology, toObject, toString, useConceptSlotsAsFunctions
public static final java.lang.String STRING
public static final java.lang.String FLOAT
public static final java.lang.String INTEGER
public static final java.lang.String BOOLEAN
public static final java.lang.String DATE
public static final java.lang.String BYTE_SEQUENCE
public static final java.lang.String CONTENT_ELEMENT_LIST
public static Ontology getInstance()
BasicOntology
.BasicOntology
public ObjectSchema getSchema(java.lang.String name) throws OntologyException
getSchema()
method to take into
account ACL performatives.getSchema
in class Ontology
name
- the name of the schema in the vocabulary.null
if the schema is not found.OntologyException
public ObjectSchema getSchema(java.lang.Class clazz) throws OntologyException
getSchema()
method to take into
account java primitives.getSchema
in class Ontology
clazz
- the class whose associated schema must be retrieved.null
if the schema is not found.OntologyException
public static java.lang.Object adjustPrimitiveValue(java.lang.Object srcValue, java.lang.Class destClass)
public static java.lang.Object resolveNumericValue(java.lang.Object srcValue, java.lang.Class destClass)