Package edu.uci.ics.jung.io
Class GraphMLMetadata<T>
- java.lang.Object
-
- edu.uci.ics.jung.io.GraphMLMetadata<T>
-
public class GraphMLMetadata<T> extends java.lang.Object
Maintains information relating to data for the specified type. This includes a Function from objects to their values, a default value, and a description.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
default_value
The default value for objects of this type.java.lang.String
description
The description of this data type.com.google.common.base.Function<T,java.lang.String>
transformer
A Function mapping objects to string representations of their values.
-
Constructor Summary
Constructors Constructor Description GraphMLMetadata(java.lang.String description, java.lang.String default_value, com.google.common.base.Function<T,java.lang.String> function)
Creates a new instance with the specified description, default value, and function.
-
-
-
Field Detail
-
description
public java.lang.String description
The description of this data type.
-
default_value
public java.lang.String default_value
The default value for objects of this type.
-
transformer
public com.google.common.base.Function<T,java.lang.String> transformer
A Function mapping objects to string representations of their values.
-
-
Constructor Detail
-
GraphMLMetadata
public GraphMLMetadata(java.lang.String description, java.lang.String default_value, com.google.common.base.Function<T,java.lang.String> function)
Creates a new instance with the specified description, default value, and function.- Parameters:
description
- a textual description of the objectdefault_value
- the default value for the object, as a Stringfunction
- maps objects of this type to string representations
-
-