public abstract class Element extends Object implements ElementId
Elements
are the fundamental building blocks of the Graph.
Elements should have identifier(s), an group and an optional collection of properties.
Elements are designed so that multiple elements can share the same identifier(s) but are distinguished via their
group.
Equals has been overridden to check groups are equal. NOTE - it does not compare property values.
ElementId.Matches
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_GROUP |
Modifier and Type | Method and Description |
---|---|
void |
copyProperties(Properties properties) |
abstract Element |
emptyClone() |
boolean |
equals(Object obj) |
Element |
getElement() |
String |
getGroup() |
abstract Object |
getIdentifier(IdentifierType identifierType) |
Properties |
getProperties() |
Object |
getProperty(String name) |
int |
hashCode() |
void |
putProperty(String name,
Object value) |
Object |
removeProperty(String propName) |
Element |
shallowClone() |
boolean |
shallowEquals(Element element) |
boolean |
shallowEquals(Object obj) |
String |
toString() |
getClassName, isEqual, isRelated, setClassName
public static final String DEFAULT_GROUP
public void copyProperties(Properties properties)
public Properties getProperties()
public String getGroup()
public boolean shallowEquals(Object obj)
public boolean shallowEquals(Element element)
public abstract Element emptyClone()
public Element shallowClone()
public abstract Object getIdentifier(IdentifierType identifierType)
public Element getElement()
Copyright © 2022. All rights reserved.