|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectaminePlatform.kernel.ontology.CS
aminePlatform.kernel.ontology.Individual
Title : ontology.Individual Class
Description : It implements the CS for an individual. Individual has a description, inherited from its superclass CS.
Copyright: Copyright (c) Adil KABBAJ, 2004-2009
Field Summary |
Fields inherited from class aminePlatform.kernel.ontology.CS |
S_CONTEXT, S_CSRULE, S_SITUATION, S_TYPE |
Constructor Summary | |
Individual(Type type)
Create an Individual with the specified type as Type of the Individual |
|
Individual(Type type,
java.lang.Object description)
|
Method Summary | |
java.lang.Object |
getDescription()
Get the description of the current Individual. |
Type |
getType()
Get the (immediate) type of the current individual. |
boolean |
isConform(Type typeCS)
Check if the current individual is conform to the specified type (the parameter typeCS) : check that typeCS is the immediate type or a superType of the immediate type of the current individual. |
static boolean |
isIndividual(java.lang.Object obj)
Check if the specified Object obj is an Individual CS |
boolean |
isType(Type type)
Check if the specified type is the (immediate) type of the current Individual |
void |
removeDescription()
Remove the description of the current Individual. |
void |
setDescription(java.lang.Object description)
Set the description of the current Individual to description. |
void |
setType(Type type)
Set the specified type as the type of the current Individual |
protected org.jdom.Element |
toContent(Ontology ontology)
For the current individual add the element that specifies its content to the XML ontology document. |
protected org.jdom.Element |
toCSKind(java.lang.String key)
For the current individual add the element that specifies its kind to the XML ontology document. |
java.lang.String |
toString(Lexicon lexicon)
Implement the method toString(Lexicon) specified in the interface ToString. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Individual(Type type)
type
- The Type of the current Individualpublic Individual(Type type, java.lang.Object description)
Method Detail |
public static boolean isIndividual(java.lang.Object obj)
obj
- An object
public java.lang.Object getDescription()
getDescription
in class CS
public void setDescription(java.lang.Object description)
setDescription
in class CS
description
- The (new) description for the current Individualpublic void removeDescription()
removeDescription
in class CS
public Type getType()
public void setType(Type type)
type
- A Type CSpublic boolean isType(Type type)
type
- A Type CS
public boolean isConform(Type typeCS)
typeCS
- A Type CS
public java.lang.String toString(Lexicon lexicon) throws ToStringException
CS
toString
in interface ToString
toString
in class CS
lexicon
- Lexicon to use for the textual formulation
ToStringException
protected org.jdom.Element toCSKind(java.lang.String key)
toCSKind
in class CS
key
-
protected org.jdom.Element toContent(Ontology ontology)
toContent
in class CS
ontology
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |