com.sun.identity.saml.assertion
Class AttributeDesignator

java.lang.Object
  |
  +--com.sun.identity.saml.assertion.AttributeDesignator
Direct Known Subclasses:
Attribute

public class AttributeDesignator
extends java.lang.Object

The element identifies an attribute name within an attribute namespace. The element is used in an attribute query to request that attribute values within a specific namespace be returned.


Constructor Summary
AttributeDesignator(org.w3c.dom.Element element)
          This constructor builds an attribute designator element from an existing XML block.
AttributeDesignator(java.lang.String name, java.lang.String nameSpace)
          Constructor
 
Method Summary
 java.lang.String getAttributeName()
          Get attribute name from the AttributeDesignator
 java.lang.String getAttributeNamespace()
          get attribute name space from the AttributeDesignator
 java.lang.String toString()
          Create a String representation of the element
 java.lang.String toString(boolean includeNS, boolean declareNS)
          Create a String representation of the element
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeDesignator

public AttributeDesignator(org.w3c.dom.Element element)
                    throws SAMLException
This constructor builds an attribute designator element from an existing XML block.
Parameters:
element - : representing a DOM tree element
Throws:
SAMLException: - An SAMLException implies that there is an error in the sender or in the element definition.

AttributeDesignator

public AttributeDesignator(java.lang.String name,
                           java.lang.String nameSpace)
                    throws SAMLException
Constructor
Parameters:
name: - A String representing AttributeName (the name of the attribute).
nameSpace: - A String representing the namespace in which AttributeName elements are interpreted.
Throws:
SAMLException: - An SAMLException implies that there is an error in the sender or in the element definition.
Method Detail

getAttributeName

public java.lang.String getAttributeName()
Get attribute name from the AttributeDesignator
Returns:
A String representing the attribute name

getAttributeNamespace

public java.lang.String getAttributeNamespace()
get attribute name space from the AttributeDesignator
Returns:
A String representing the attribute name space

toString

public java.lang.String toString()
Create a String representation of the element
Overrides:
toString in class java.lang.Object
Returns:
A string containing the valid XML for this element

toString

public java.lang.String toString(boolean includeNS,
                                 boolean declareNS)
Create a String representation of the element
Parameters:
includeNS: - Determines whether or not the namespace qualifier is prepended to the Element when converted
declareNS: - Determines whether or not the namespace is declared within the Element.
Returns:
A string containing the valid XML for this element