aminePlatform.kernel.ontology
Class IndexedType

java.lang.Object
  extended byaminePlatform.kernel.ontology.CS
      extended byaminePlatform.kernel.ontology.Type
          extended byaminePlatform.kernel.ontology.IndexedType
All Implemented Interfaces:
Node, java.io.Serializable, ToString

public class IndexedType
extends Type

Title: IndexedType Class

Description: This class is used especially in the context of KnowledgeBase Class.

It is used as a reference/index to a Type in the associated Ontology.

Copyright : Copyright (c) Adil KABBAJ 2004-2009

See Also:
Serialized Form

Field Summary
 
Fields inherited from class aminePlatform.kernel.ontology.CS
S_CONTEXT, S_CSRULE, S_SITUATION, S_TYPE
 
Constructor Summary
IndexedType()
           
IndexedType(Type type)
           
 
Method Summary
 java.lang.Object getCanon()
          Get the canon of the current Type.
 java.lang.Object getDefinition()
          Get the definition of the current Type.
 Type getIndex()
           
 void setIndex(Type type)
           
protected  org.jdom.Element toContent(Ontology ontology)
          For the current type add the element that specifies its content to the XML ontology document.
protected  org.jdom.Element toCSKind(java.lang.String key)
          For the current type 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 aminePlatform.kernel.ontology.Type
clear, finalize, getArraySubTypes, getArraySuperTypes, getComSubTypes, getComSuperTypes, getDirectSubTypes, getDirectSuperTypes, getIndividuals, getMaxComSubType, getMinComSuperType, getSubTypes, getSuperTypes, hasCanon, hasDefinition, isConceptType, isRelationType, isSubType, isSuperType, isType, removeCanon, removeDefinition, setCanon, setDefinition
 
Methods inherited from class aminePlatform.kernel.ontology.CS
addCSRule, addCSRule, addIncomeEdge, addOutcomeEdge, addSituation, canBeRemoved, copyNode, detach, getAdjacentNodes, getArrayOfChildren, getArrayOfFathers, getChildren, getContent, getCSRuleAt, getCSRules, getCSRulesAntecedent, getCSRulesConcequence, getDescription, getEdges, getFathers, getImmSubTypes, getImmSuperTypes2, getIncomeEdges, getLeftTopPoint, getMetaphors, getNbrChildren, getNbrCSRules, getNbrFathers, getNbrSituations, getNumberofEdges, getOutcomeEdges, getSituationAt, getSituations, getSituationsDescription, hasContentToDisplay, isAntecedent, isChild, isConceptType, isContext, isCS, isCSRule, isDescendant, isFather, isIndexedType, isIndividual, isMetaphor, isRelationType, isSituation, isType, link, removeCSRuleAt, removeDescription, removeLink, removeLink, removeLinkToSituation, removeSituationAt, setChildren, setDescription, setFathers, setIncomeEdges, setLeftTopPoint, setOutcomeEdges, setRectangle, toChildren, toDisplayString, toFathers, toLexicon, toXml
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexedType

public IndexedType()

IndexedType

public IndexedType(Type type)
Method Detail

getIndex

public Type getIndex()

setIndex

public void setIndex(Type type)

getDefinition

public java.lang.Object getDefinition()
Description copied from class: Type
Get the definition of the current Type.

Overrides:
getDefinition in class Type
Returns:
the definition of the current Type. The returned object should be casted to a particular description scheme (like CG or any other structure implemented in Java).

getCanon

public java.lang.Object getCanon()
Description copied from class: Type
Get the canon of the current Type.

Overrides:
getCanon in class Type
Returns:
the canon of the current Type. The returned object should be casted to a particular description scheme.

toString

public java.lang.String toString(Lexicon lexicon)
                          throws ToStringException
Description copied from class: CS
Implement the method toString(Lexicon) specified in the interface ToString. It is in fact overriden in the sub-classes of CS

Specified by:
toString in interface ToString
Overrides:
toString in class Type
Throws:
ToStringException

toCSKind

protected org.jdom.Element toCSKind(java.lang.String key)
Description copied from class: Type
For the current type add the element that specifies its kind to the XML ontology document.

Overrides:
toCSKind in class Type
Returns:
cselement.

toContent

protected org.jdom.Element toContent(Ontology ontology)
Description copied from class: Type
For the current type add the element that specifies its content to the XML ontology document.

Overrides:
toContent in class Type
Returns:
content.