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
-
-
Constructor Summary
Constructors Constructor Description AbstractMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddData(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.StringgetProperty(java.lang.String key)java.lang.StringsetProperty(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:MetadataGets any properties that were associated with this metadata in the GraphML- Specified by:
getPropertiesin 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)
-
-