Package edu.uci.ics.jung.io.graphml
Class AbstractMetadata
- java.lang.Object
-
- edu.uci.ics.jung.io.graphml.AbstractMetadata
-
- All Implemented Interfaces:
Metadata
- Direct Known Subclasses:
EdgeMetadata
,EndpointMetadata
,GraphMetadata
,HyperEdgeMetadata
,NodeMetadata
,PortMetadata
public abstract class AbstractMetadata extends java.lang.Object implements Metadata
Abstract base class for metadata - implements the property functionality
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface edu.uci.ics.jung.io.graphml.Metadata
Metadata.MetadataType
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.lang.String>
properties
-
Constructor Summary
Constructors Constructor Description AbstractMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addData(DataMetadata data)
java.util.Map<java.lang.String,java.lang.String>
getProperties()
Gets any properties that were associated with this metadata in the GraphMLjava.lang.String
getProperty(java.lang.String key)
java.lang.String
setProperty(java.lang.String key, java.lang.String value)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.uci.ics.jung.io.graphml.Metadata
getMetadataType
-
-
-
-
Method Detail
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
Description copied from interface:Metadata
Gets any properties that were associated with this metadata in the GraphML- Specified by:
getProperties
in interfaceMetadata
- Returns:
- GraphML properties
-
getProperty
public java.lang.String getProperty(java.lang.String key)
-
setProperty
public java.lang.String setProperty(java.lang.String key, java.lang.String value)
-
addData
public void addData(DataMetadata data)
-
-