Class GraphMLElement
- java.lang.Object
-
- org.opennms.features.graphml.model.GraphMLElement
-
- Direct Known Subclasses:
GraphML
,GraphMLEdge
,GraphMLGraph
,GraphMLNode
public abstract class GraphMLElement extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
GraphMLElement.GraphMLElementVisitor<T>
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
ID
-
Constructor Summary
Constructors Constructor Description GraphMLElement()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <T> T
accept(GraphMLElement.GraphMLElementVisitor<T> visitor)
boolean
equals(java.lang.Object obj)
java.lang.String
getId()
java.util.HashMap<java.lang.String,java.lang.Object>
getProperties()
<T> T
getProperty(java.lang.String key)
<T> T
getProperty(java.lang.String key, T defaultValue)
int
hashCode()
void
setId(java.lang.String id)
void
setProperty(java.lang.String key, java.lang.Object value)
java.lang.String
toString()
-
-
-
Field Detail
-
ID
protected static final java.lang.String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String id)
-
getProperty
public <T> T getProperty(java.lang.String key)
-
getProperty
public <T> T getProperty(java.lang.String key, T defaultValue)
-
setProperty
public void setProperty(java.lang.String key, java.lang.Object value)
-
getProperties
public java.util.HashMap<java.lang.String,java.lang.Object> getProperties()
-
accept
public abstract <T> T accept(GraphMLElement.GraphMLElementVisitor<T> visitor)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-