Class 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.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 object
        default_value - the default value for the object, as a String
        function - maps objects of this type to string representations