Class MetaData


  • public class MetaData
    extends java.lang.Object
    Metadata object for the DAX API
    Version:
    $Revision$
    Author:
    gmehta
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  MetaData.JsonSerializer
      Custom serializer for YAML representation of a MetaData k,v pair
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String mKey
      Metadata Key
      protected java.lang.String mType
      Metadata type
      protected java.lang.String mValue
      Metadata value
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        MetaData​(MetaData m)
      Copy constructor
        MetaData​(java.lang.String key, java.lang.String value)
      Create a new Metadata object
      private MetaData​(java.lang.String type, java.lang.String key, java.lang.String value)
      Create a new Metadata object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      MetaData clone()
      Create a copy of this Metdata Object
      java.lang.String getKey()
      Get the key of this metadata object
      private java.lang.String getType()
      Get the type of the metdata object
      java.lang.String getValue()
      Get the value of the metdata object
      MetaData setValue​(java.lang.String value)
      Set the value of the metadata
      void toXML​(edu.isi.pegasus.common.util.XMLWriter writer)  
      void toXML​(edu.isi.pegasus.common.util.XMLWriter writer, int indent)  
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mKey

        protected java.lang.String mKey
        Metadata Key
      • mType

        protected java.lang.String mType
        Metadata type
      • mValue

        protected java.lang.String mValue
        Metadata value
    • Constructor Detail

      • MetaData

        public MetaData​(MetaData m)
        Copy constructor
        Parameters:
        m - the MetaData object being copied from
      • MetaData

        public MetaData​(java.lang.String key,
                        java.lang.String value)
        Create a new Metadata object
        Parameters:
        key - the key
        value - the value
      • MetaData

        private MetaData​(java.lang.String type,
                         java.lang.String key,
                         java.lang.String value)
        Create a new Metadata object
        Parameters:
        type - type of metadata
        key - the key
        value - the value
    • Method Detail

      • clone

        public MetaData clone()
        Create a copy of this Metdata Object
        Overrides:
        clone in class java.lang.Object
        Returns:
        clone of the object
      • setValue

        public MetaData setValue​(java.lang.String value)
        Set the value of the metadata
        Parameters:
        value - value to be set for metadata attribute
        Returns:
        MetaData
      • getKey

        public java.lang.String getKey()
        Get the key of this metadata object
        Returns:
        the key
      • getType

        private java.lang.String getType()
        Get the type of the metdata object
        Returns:
        the type
      • getValue

        public java.lang.String getValue()
        Get the value of the metdata object
        Returns:
        the value
      • toXML

        public void toXML​(edu.isi.pegasus.common.util.XMLWriter writer)
      • toXML

        public void toXML​(edu.isi.pegasus.common.util.XMLWriter writer,
                          int indent)