|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jade.onto.SlotDescriptor
Descriptor class for the slots of ontological roles. Instances of this class are used to describe the characteristics of the slots of a role in an ontology.
| Constructor Summary | |
SlotDescriptor(int c,
java.lang.String t,
boolean o)
Build the descriptor for an unnamed slot. |
|
SlotDescriptor(java.lang.String n,
int c,
java.lang.String t,
boolean o)
Build the descriptor for a named slot. |
|
| Method Summary | |
int |
getCategory()
Get the category of a slot. |
java.lang.String |
getName()
Get the name of a slot. |
java.lang.String |
getType()
Get the name of the type of the values of this slot. |
boolean |
hasPrimitiveType()
|
boolean |
isComplex()
Tells whether a slot is complex. |
boolean |
isOptional()
Tells whether a slot is optional. |
boolean |
isPrimitive()
Tells whethet the slot is primitive. |
boolean |
isSet()
Tells whether a slot is set or a sequence. |
java.lang.String |
toString()
return a String representation of the object, just for debugging purposes |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public SlotDescriptor(java.lang.String n,
int c,
java.lang.String t,
boolean o)
n - The name of the described slot.c - A symbolic constant identifying the category of the slot (i.e.
one value between
Ontology.FRAME_SLOT , Ontology.SET_SLOT, Ontology.SEQUENCE_SLOT,
Ontology.PRIMITIVE_SLOT, Ontology.ANY_SLOT. )t - The name of the type of the values allowed for this slot, (i.e.
one value between Ontology.STRING_TYPE, Ontology.XXX_TYPE ,
or, in case of a FRAME_SLOT, the name of the role in the ontology the value
of this slot is an instance ofo - One of Ontology.M (for mandatory slots) and
Ontology.O (for optional slots).
public SlotDescriptor(int c,
java.lang.String t,
boolean o)
| Method Detail |
public java.lang.String getName()
"" if the slot is unnamed.public int getCategory()
public java.lang.String getType()
java.lang.Integer or java.lang.String); for complex types, the name
of the specific concept is returned.public boolean hasPrimitiveType()
public boolean isOptional()
true if the slot described by this object is optional
in its ontological role, false otherwise.public boolean isComplex()
true if the category of the slot described by this
object is Ontology.FRAME_SLOT
false otherwise.public boolean isSet()
true if the category of the slot described by this
object is Ontology.SET_SLOT or Ontology.SEQUENCE_SLOT)
false otherwise.public boolean isPrimitive()
true if the category of the slot described by this
object is Ontology.PRIMITIVE_SLOT
false otherwise.public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||