public class OntologyClassTreeObject
extends java.lang.Object
OntologyClassTree
Constructor and Description |
---|
OntologyClassTreeObject(OntologyClass ontologyClazz,
java.lang.Class<?> clazz)
Defines the Class belonging to the represented node.
|
OntologyClassTreeObject(OntologyClass ontologyClazz,
java.lang.String nodeTitle)
In case, that there is no class, a node can be
represented by a simple String.
|
Modifier and Type | Method and Description |
---|---|
OntologySingleClassDescription |
getClassDescription()
This returns the a ArrayList of Slots for a single
class out of the ontology-classes.
|
java.lang.String |
getClassReference()
Returns the full class-reference of the current ontology-sub-class.
|
java.lang.String |
getClassTextSimple()
Returns the simple class name from a class-reference.
|
OntologyClass |
getOntologyClass()
This method returns the instance of the OntologyClass which
belongs to the current Tree-Object.
|
java.lang.Class<?> |
getOntologySubClass()
returns the Class of the current ontology node.
|
OntologyClassTreeObject |
getParentOntologyClassTreeObject()
Gets the parent ontology class tree object.
|
java.lang.Class<?> |
getParentOntologySubClass()
Gets the parent ontology sub class.
|
javax.swing.table.DefaultTableModel |
getTableModel4Slot()
This returns the 'DefaultTableModel' for a single
class out of the ontology-classes.
|
boolean |
isAgentAction()
Checks if is agent action.
|
boolean |
isAID()
Checks if is a AID.
|
boolean |
isBaseOntology()
Checks if is base ontology.
|
boolean |
isClass()
Returns TRUE if the current Instance has an
real Ontology-Class.
|
boolean |
isConcept()
Checks if is concept.
|
boolean |
isPredicate()
Checks if is predicate.
|
void |
setIsAgentAction(boolean isAgentAction)
Sets the checks if is agent action.
|
void |
setIsAID(boolean isAID)
Sets the checks if is aid.
|
void |
setIsBaseOntology(boolean isBaseOntology)
Sets the checks if is base ontology.
|
void |
setIsConcept(boolean isConcept)
Sets the checks if is concept.
|
void |
setIsPredicate(boolean isPredicate)
Sets the checks if is predicate.
|
void |
setObjectTitle(java.lang.String ontologyTitle)
Allows to set the node title, even if there is a
concrete class (with reference and title).
|
void |
setParentOntologyClassTreeObject(OntologyClassTreeObject parentOntologyClassTreeObject)
Sets the parent ontology class tree object.
|
void |
setParentOntologySubClass(java.lang.Class<?> parentOntologySubClass)
Sets the parent ontology sub class.
|
java.lang.String |
toString()
returns the title of this node object.
|
public OntologyClassTreeObject(OntologyClass ontologyClazz, java.lang.Class<?> clazz)
ontologyClazz
- the ontology clazzclazz
- the clazzpublic OntologyClassTreeObject(OntologyClass ontologyClazz, java.lang.String nodeTitle)
ontologyClazz
- the ontology clazznodeTitle
- the node titlepublic java.lang.String toString()
toString
in class java.lang.Object
public boolean isClass()
public java.lang.String getClassTextSimple()
public java.lang.String getClassReference()
public OntologyClass getOntologyClass()
public java.lang.Class<?> getOntologySubClass()
public void setObjectTitle(java.lang.String ontologyTitle)
ontologyTitle
- the new object titlepublic javax.swing.table.DefaultTableModel getTableModel4Slot()
public OntologySingleClassDescription getClassDescription()
public void setIsBaseOntology(boolean isBaseOntology)
isBaseOntology
- the new checks if is base ontologypublic boolean isBaseOntology()
public void setIsAID(boolean isAID)
isAID
- the new checks if is aidpublic boolean isAID()
public void setIsConcept(boolean isConcept)
isConcept
- the new checks if is conceptpublic boolean isConcept()
public void setIsAgentAction(boolean isAgentAction)
isAgentAction
- the new checks if is agent actionpublic boolean isAgentAction()
public void setIsPredicate(boolean isPredicate)
isPredicate
- the new checks if is predicatepublic boolean isPredicate()
public void setParentOntologyClassTreeObject(OntologyClassTreeObject parentOntologyClassTreeObject)
parentOntologyClassTreeObject
- the parentOntologyClassTreeObject to setpublic OntologyClassTreeObject getParentOntologyClassTreeObject()
public java.lang.Class<?> getParentOntologySubClass()
public void setParentOntologySubClass(java.lang.Class<?> parentOntologySubClass)
parentOntologySubClass
- the new parent ontology sub class