public abstract class PartitionElement extends Object implements Element
| Modifier and Type | Field and Description |
|---|---|
protected Element |
baseElement |
protected PartitionGraph |
graph |
| Modifier | Constructor and Description |
|---|---|
protected |
PartitionElement(Element baseElement,
PartitionGraph partitionGraph) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
Element |
getBaseElement() |
Object |
getId()
An identifier that is unique to its inheriting class.
|
String |
getPartition() |
<T> T |
getProperty(String key)
Return the object value associated with the provided string key.
|
Set<String> |
getPropertyKeys()
Return all the keys associated with the element.
|
int |
hashCode() |
void |
remove()
Remove the element from the graph.
|
<T> T |
removeProperty(String key)
Un-assigns a key/value property from the element.
|
void |
setPartition(String partition) |
void |
setProperty(String key,
Object value)
Assign a key/value property to the element.
|
String |
toString() |
protected Element baseElement
protected PartitionGraph graph
protected PartitionElement(Element baseElement, PartitionGraph partitionGraph)
public void setProperty(String key, Object value)
ElementsetProperty in interface Elementkey - the string key of the propertyvalue - the object value o the propertypublic <T> T getProperty(String key)
ElementgetProperty in interface Elementkey - the key of the key/value propertypublic <T> T removeProperty(String key)
ElementremoveProperty in interface Elementkey - the key of the property to remove from the elementpublic Set<String> getPropertyKeys()
ElementgetPropertyKeys in interface Elementpublic Object getId()
Elementpublic Element getBaseElement()
public String getPartition()
public void setPartition(String partition)
public void remove()
ElementCopyright © 2010-2014. All Rights Reserved.