|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodel.OntologyObject
public class OntologyObject
This is the base class for all objects listed in a map. Note: not all ontology objects contain a graphical representation, therefore it is necessary that a graphical representation exists before modifying the graphics.
Field Summary | |
---|---|
private java.util.HashMap<java.lang.String,Attribute> |
attributes
the object properties |
private GraphicalObject |
graphics
the graphics of the object |
private java.util.ArrayList<java.lang.String> |
hierarchy
the inheritance hierarchy of the object |
private java.util.ArrayList<History> |
history
the history of the object |
private long |
ID
a unique identifier |
Constructor Summary | |
---|---|
OntologyObject(long ID,
java.util.ArrayList<java.lang.String> hierarchy,
java.util.HashSet<Attribute> attributes)
Constructs an ontology object. |
Method Summary | |
---|---|
Attribute |
getAttribute(java.lang.String attribute)
Gets the attribute object for the specied attribute name. |
java.util.Set<java.lang.String> |
getAttributes()
Gets the names of the attributes. |
java.lang.String |
getAttributeValue(java.lang.String attribute)
Gets the value of an attribute. |
int |
getDepth()
Gets the depth of the object. |
GraphicalObject |
getGraphics()
Gets the graphics for the object. |
java.util.ArrayList<History> |
getHistory()
Gets the object history. |
java.lang.Long |
getID()
Gets the object unique identifier. |
java.lang.String |
getType()
Gets the object type. |
boolean |
instanceOf(java.lang.String type)
Checks if the object is an instance of the specified type. |
boolean |
isMoveable()
Gets if the object is moveable. |
void |
setAttribute(java.lang.String attribute,
java.lang.String value)
Sets the value of attribute. |
void |
setAttributes(java.util.Collection<Attribute> attributes)
|
void |
setGraphics(GraphicalObject graphics)
Sets the object graphics. |
void |
setHierarchy(java.util.ArrayList<java.lang.String> hierarchy)
Sets the object hierarchy. |
void |
setHistory(java.util.ArrayList<History> history)
Sets the object history. |
void |
setSelected(boolean selected)
Sets the object as selected. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private long ID
private java.util.ArrayList<java.lang.String> hierarchy
private java.util.HashMap<java.lang.String,Attribute> attributes
private java.util.ArrayList<History> history
private GraphicalObject graphics
Constructor Detail |
---|
public OntologyObject(long ID, java.util.ArrayList<java.lang.String> hierarchy, java.util.HashSet<Attribute> attributes)
ID
- - a unique identifierhierarchy
- - the inheritance hierarchy of the objectattributes
- - the object propertiesMethod Detail |
---|
public void setHierarchy(java.util.ArrayList<java.lang.String> hierarchy)
hierarchy
- - the hierarchypublic boolean instanceOf(java.lang.String type)
type
- - the class name
public boolean isMoveable()
public int getDepth()
public void setSelected(boolean selected)
public java.util.ArrayList<History> getHistory()
public void setGraphics(GraphicalObject graphics)
public GraphicalObject getGraphics()
public void setHistory(java.util.ArrayList<History> history)
public java.lang.String getType()
public java.lang.Long getID()
public java.lang.String getAttributeValue(java.lang.String attribute)
public Attribute getAttribute(java.lang.String attribute)
public void setAttributes(java.util.Collection<Attribute> attributes)
attributes
- public java.util.Set<java.lang.String> getAttributes()
public void setAttribute(java.lang.String attribute, java.lang.String value)
attribute
- - the attribute namevalue
- - the new attribute value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |