issrg.ac.attributes
Class PMIXMLPolicy

java.lang.Object
  extended by issrg.ac.AttributeValue
      extended by issrg.ac.DistinctAttribute
          extended by issrg.ac.attributes.PMIXMLPolicy
All Implemented Interfaces:
java.lang.Cloneable

public class PMIXMLPolicy
extends DistinctAttribute

This is the class for the PMI XML Policy attribute.


Field Summary
static java.lang.String PMI_XML_POLICY_ATTRIBUTE_OID
          This is the OID of the Attribute
protected  java.lang.String policy
           
 
Fields inherited from class issrg.ac.AttributeValue
data
 
Constructor Summary
protected PMIXMLPolicy()
           
  PMIXMLPolicy(ASN1Object ao)
          This constructor builds a PMIXMLPolicy given ASN1Object of its value.
 
Method Summary
 java.lang.Object clone()
           
 void decode(ASN1Object ao)
          This method decodes a given ASN1Object and sets the policy XML as the value of this ASN1Object.
 java.lang.String getPolicy()
          Returns the XML of the Policy as a String.
static void registerMe()
          This method registers this class with the Attribute class, so it will automatically pick up the class for parsing PMI XML Policies.
 void setPolicy(java.lang.String policy)
          Sets the XML of the Policy as a String.
 ASN1Object toASN1Object()
          This method returns the ASN1Object of the PMIXMLPolicy attribute value.
 java.lang.String toString(int indent)
           
 
Methods inherited from class issrg.ac.DistinctAttribute
isDecoded
 
Methods inherited from class issrg.ac.AttributeValue
getRawAttribute, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PMI_XML_POLICY_ATTRIBUTE_OID

public static final java.lang.String PMI_XML_POLICY_ATTRIBUTE_OID
This is the OID of the Attribute

See Also:
Constant Field Values

policy

protected java.lang.String policy
Constructor Detail

PMIXMLPolicy

protected PMIXMLPolicy()

PMIXMLPolicy

public PMIXMLPolicy(ASN1Object ao)
             throws CodingException
This constructor builds a PMIXMLPolicy given ASN1Object of its value.

Parameters:
ao - - ASN1Object of the value of the PMIXMLPolicy attribute
Throws:
CodingException
Method Detail

registerMe

public static void registerMe()
This method registers this class with the Attribute class, so it will automatically pick up the class for parsing PMI XML Policies.


getPolicy

public java.lang.String getPolicy()
Returns the XML of the Policy as a String.


setPolicy

public void setPolicy(java.lang.String policy)
Sets the XML of the Policy as a String.


toASN1Object

public ASN1Object toASN1Object()
This method returns the ASN1Object of the PMIXMLPolicy attribute value.

Overrides:
toASN1Object in class AttributeValue
Returns:
UTF8String containing the Policy XML as its value.

decode

public void decode(ASN1Object ao)
            throws CodingException
This method decodes a given ASN1Object and sets the policy XML as the value of this ASN1Object.

Overrides:
decode in class AttributeValue
Parameters:
ao - - the ASN1Object; must be a UTF8String or PrintableString whose value is the policy XML
Throws:
CodingException

toString

public java.lang.String toString(int indent)

clone

public java.lang.Object clone()
Overrides:
clone in class AttributeValue