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 <AttributeDesignator>
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)
Constructs an attribute designator element from an existing XML block. |
AttributeDesignator(java.lang.String name,
java.lang.String nameSpace)
Constructs an instance of AttributeDesignator . |
Method Summary |
java.lang.String |
getAttributeName()
Returns attribute name from the AttributeDesignator . |
java.lang.String |
getAttributeNamespace()
Returns attribute name space from the
AttributeDesignator . |
java.lang.String |
toString()
Returns a String representation of the
<saml:AttributeDesignator> element. |
java.lang.String |
toString(boolean includeNS,
boolean declareNS)
Returns a String representation of the
<saml:AttributeDesignator> element. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AttributeDesignator
public AttributeDesignator(org.w3c.dom.Element element)
throws SAMLException
- Constructs an attribute designator element from an existing XML block.
- Parameters:
element
- representing a DOM tree element.- Throws:
SAMLException
- if 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
- Constructs an instance of
AttributeDesignator
.
- Parameters:
name
- the name of the attribute.nameSpace
- the namespace in which AttributeName
elements are interpreted.- Throws:
SAMLException
- if there is an error in the sender or in the
element definition.
getAttributeName
public java.lang.String getAttributeName()
- Returns attribute name from the
AttributeDesignator
.
- Returns:
- A String representing the attribute name.
getAttributeNamespace
public java.lang.String getAttributeNamespace()
- Returns attribute name space from the
AttributeDesignator
.
- Returns:
- A String representing the attribute name space.
toString
public java.lang.String toString()
- Returns a String representation of the
<saml:AttributeDesignator>
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)
- Returns a String representation of the
<saml:AttributeDesignator>
element.
- Parameters:
includeNS
- Determines whether or not the namespace qualifier is
to the Element when converteddeclareNS
- Determines whether or not the namespace is declared
within the Element.- Returns:
- A string containing the valid XML for this element.
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.