Class Profile


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

      Nested Classes 
      Modifier and Type Class Description
      static class  Profile.NAMESPACE
      Supported NAMESPACES.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String mKey
      Key of the profile
      protected java.lang.String mNamespace
      Namespace of the profile
      protected java.lang.String mValue
      Value of the profile
    • Constructor Summary

      Constructors 
      Constructor Description
      Profile​(Profile p)
      Copy constructor
      Profile​(Profile.NAMESPACE namespace, java.lang.String key, java.lang.String value)
      Create a new Profile object
      Profile​(java.lang.String namespace, java.lang.String key)
      Create a new Profile object
      Profile​(java.lang.String namespace, java.lang.String key, java.lang.String value)
      Create a new Profile object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Profile clone()
      Create a copy of this Profile
      java.lang.String getKey()
      Get the key of this Profile
      java.lang.String getNameSpace()
      Get the namespace of this profile
      java.lang.String getValue()
      Get the value of this profile
      Profile setValue​(java.lang.String value)
      Set the value of this Profile
      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

      • mNamespace

        protected java.lang.String mNamespace
        Namespace of the profile
      • mKey

        protected java.lang.String mKey
        Key of the profile
      • mValue

        protected java.lang.String mValue
        Value of the profile
    • Constructor Detail

      • Profile

        public Profile​(java.lang.String namespace,
                       java.lang.String key)
        Create a new Profile object
        Parameters:
        namespace - the namespace
        key - the key
      • Profile

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

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

        public Profile​(Profile p)
        Copy constructor
        Parameters:
        p - Profile t copy from
    • Method Detail

      • getKey

        public java.lang.String getKey()
        Get the key of this Profile
        Returns:
        the key
      • getNameSpace

        public java.lang.String getNameSpace()
        Get the namespace of this profile
        Returns:
        the namespace
      • getValue

        public java.lang.String getValue()
        Get the value of this profile
        Returns:
        the value
      • setValue

        public Profile setValue​(java.lang.String value)
        Set the value of this Profile
        Parameters:
        value - value to be set for the profile
        Returns:
        Profile
      • clone

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

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

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