Package edu.uci.ics.jung.io.graphml
Class GraphMetadata
- java.lang.Object
-
- edu.uci.ics.jung.io.graphml.AbstractMetadata
-
- edu.uci.ics.jung.io.graphml.GraphMetadata
-
- All Implemented Interfaces:
Metadata
public class GraphMetadata extends AbstractMetadata
Metadata structure for the 'graph' GraphML element.- See Also:
- "http://graphml.graphdrawing.org/specification.html"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGraphMetadata.EdgeDefault-
Nested classes/interfaces inherited from interface edu.uci.ics.jung.io.graphml.Metadata
Metadata.MetadataType
-
-
Constructor Summary
Constructors Constructor Description GraphMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEdgeMetadata(java.lang.Object edge, EdgeMetadata metadata)voidaddHyperEdgeMetadata(java.lang.Object edge, HyperEdgeMetadata metadata)voidaddNodeMetadata(java.lang.Object vertex, NodeMetadata metadata)java.lang.StringgetDescription()GraphMetadata.EdgeDefaultgetEdgeDefault()java.util.Map<java.lang.Object,EdgeMetadata>getEdgeMap()EdgeMetadatagetEdgeMetadata(java.lang.Object edge)java.lang.StringgetEdgeProperty(java.lang.Object edge, java.lang.String key)Gets the property for the given edge object.java.lang.ObjectgetGraph()java.util.Map<java.lang.Object,HyperEdgeMetadata>getHyperEdgeMap()HyperEdgeMetadatagetHyperEdgeMetadata(java.lang.Object edge)java.lang.StringgetId()Metadata.MetadataTypegetMetadataType()Gets the metadata type of this object.java.util.Map<java.lang.Object,NodeMetadata>getNodeMap()NodeMetadatagetNodeMetadata(java.lang.Object vertex)java.lang.StringgetVertexProperty(java.lang.Object vertex, java.lang.String key)Gets the property for the given vertex object.voidsetDescription(java.lang.String desc)voidsetEdgeDefault(GraphMetadata.EdgeDefault edgeDefault)voidsetGraph(java.lang.Object graph)voidsetId(java.lang.String id)-
Methods inherited from class edu.uci.ics.jung.io.graphml.AbstractMetadata
addData, getProperties, getProperty, setProperty
-
-
-
-
Method Detail
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String id)
-
getEdgeDefault
public GraphMetadata.EdgeDefault getEdgeDefault()
-
setEdgeDefault
public void setEdgeDefault(GraphMetadata.EdgeDefault edgeDefault)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String desc)
-
addNodeMetadata
public void addNodeMetadata(java.lang.Object vertex, NodeMetadata metadata)
-
getNodeMetadata
public NodeMetadata getNodeMetadata(java.lang.Object vertex)
-
getNodeMap
public java.util.Map<java.lang.Object,NodeMetadata> getNodeMap()
-
addEdgeMetadata
public void addEdgeMetadata(java.lang.Object edge, EdgeMetadata metadata)
-
getEdgeMetadata
public EdgeMetadata getEdgeMetadata(java.lang.Object edge)
-
getEdgeMap
public java.util.Map<java.lang.Object,EdgeMetadata> getEdgeMap()
-
addHyperEdgeMetadata
public void addHyperEdgeMetadata(java.lang.Object edge, HyperEdgeMetadata metadata)
-
getHyperEdgeMetadata
public HyperEdgeMetadata getHyperEdgeMetadata(java.lang.Object edge)
-
getHyperEdgeMap
public java.util.Map<java.lang.Object,HyperEdgeMetadata> getHyperEdgeMap()
-
getGraph
public java.lang.Object getGraph()
-
setGraph
public void setGraph(java.lang.Object graph)
-
getMetadataType
public Metadata.MetadataType getMetadataType()
Description copied from interface:MetadataGets the metadata type of this object.- Returns:
- the metadata type
-
getVertexProperty
public java.lang.String getVertexProperty(java.lang.Object vertex, java.lang.String key) throws java.lang.IllegalArgumentExceptionGets the property for the given vertex object.- Parameters:
vertex- the subject vertexkey- the property key- Returns:
- the property value
- Throws:
java.lang.IllegalArgumentException- thrown if there is no metadata associated with the provided vertex object.
-
getEdgeProperty
public java.lang.String getEdgeProperty(java.lang.Object edge, java.lang.String key) throws java.lang.IllegalArgumentExceptionGets the property for the given edge object.- Parameters:
edge- the subject edge.key- the property key- Returns:
- the property value
- Throws:
java.lang.IllegalArgumentException- thrown if there is no metadata associated with the provided edge object.
-
-