aminePlatform.kernel.ontology
Class Metaphor

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

public class Metaphor
extends Situation
implements java.io.Serializable

Title : Metaphor Class

Description : Metaphor extends Situation. Metaphor stores all the information needed for a treatment of metaphor.

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
Metaphor(java.lang.Object description)
           
Metaphor(java.lang.Object mObject, Type sourceType, Type targetType)
           
Metaphor(java.lang.Object mObject, Type sourceType, Type targetType, java.lang.Object description)
           
 
Method Summary
 java.lang.Object getMetaphoricalObject()
           
 Type getSourceType()
           
 Type getTargetType()
           
static boolean isMetaphor(java.lang.Object obj)
           
 void setMetaphoricalObject(java.lang.Object mObject)
           
 void setSourceType(Type srceType)
           
 void setTargetType(Type trgtType)
           
protected  org.jdom.Element toContent(Ontology ontology)
          For the current Metaphor add the element that specifies its content to the XML ontology document.
protected  org.jdom.Element toCSKind(java.lang.String key)
          For the current metaphor add the element that specifies its kind to the XML ontology document.
 
Methods inherited from class aminePlatform.kernel.ontology.Situation
getDescription, getIndexingTypes, isSituation, removeDescription, setDescription, toString
 
Methods inherited from class aminePlatform.kernel.ontology.CS
addCSRule, addCSRule, addIncomeEdge, addOutcomeEdge, addSituation, canBeRemoved, clear, copyNode, detach, finalize, getAdjacentNodes, getArrayOfChildren, getArrayOfFathers, getChildren, getContent, getCSRuleAt, getCSRules, getCSRulesAntecedent, getCSRulesConcequence, 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, removeLink, removeLink, removeLinkToSituation, removeSituationAt, setChildren, 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

Metaphor

public Metaphor(java.lang.Object mObject,
                Type sourceType,
                Type targetType,
                java.lang.Object description)

Metaphor

public Metaphor(java.lang.Object mObject,
                Type sourceType,
                Type targetType)

Metaphor

public Metaphor(java.lang.Object description)
Method Detail

getMetaphoricalObject

public java.lang.Object getMetaphoricalObject()

setMetaphoricalObject

public void setMetaphoricalObject(java.lang.Object mObject)

getSourceType

public Type getSourceType()

setSourceType

public void setSourceType(Type srceType)

getTargetType

public Type getTargetType()

setTargetType

public void setTargetType(Type trgtType)

isMetaphor

public static boolean isMetaphor(java.lang.Object obj)

toCSKind

protected org.jdom.Element toCSKind(java.lang.String key)
For the current metaphor add the element that specifies its kind to the XML ontology document.

Overrides:
toCSKind in class Situation
Returns:
cselement.

toContent

protected org.jdom.Element toContent(Ontology ontology)
For the current Metaphor add the element that specifies its content to the XML ontology document.

Overrides:
toContent in class Situation
Returns:
content.