com.sun.identity.saml.assertion
Class  Attribute
java.lang.Object
  |
  +--com.sun.identity.saml.assertion.AttributeDesignator
        |
        +--com.sun.identity.saml.assertion.Attribute
- public class Attribute- extends AttributeDesignator
The  element specifies an attribute of the assertion subject. 
 The  element is an extension of the  element 
 that allows the attribute value to be specified.
| Constructor Summary | 
| Attribute(org.w3c.dom.Element element)Constructs an attribute element from an existing XML block.
 | 
| Attribute(java.lang.String name,
          java.lang.String nameSpace,
          java.util.List values)Constructs an instance of
 Attribute. | 
| Attribute(java.lang.String name,
          java.lang.String nameSpace,
          java.lang.String attributeValue)Constructs an instance of
 Attribute. | 
 
| Method Summary | 
|  void | addAttributeValue(org.w3c.dom.Element element)Add
 AttributeValueto the Attribute. | 
|  void | addAttributeValue(java.lang.String value)Add
 AttributeValueto the Attribute. | 
|  java.util.List | getAttributeValue()Returns
 AttributeValuefrom the Attribute. | 
|  java.lang.String | toString()Returns a String representation of the
 <saml:Attribute>element, | 
|  java.lang.String | toString(boolean includeNS,
         boolean declareNS)Returns a String representation of the
 <saml:Attribute>element. | 
 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
Attribute
public Attribute(org.w3c.dom.Element element)
          throws SAMLException
- Constructs an attribute element from an existing XML block.- 
- Parameters:
- element- representing a DOM tree element.
- Throws:
- SAMLException- if there is an error in the sender or in the
            element definition.
 
Attribute
public Attribute(java.lang.String name,
                 java.lang.String nameSpace,
                 java.util.List values)
          throws SAMLException
- Constructs an instance of Attribute.
- 
- Parameters:
- name- A String representing- AttributeName(the name
        of the attribute).
- nameSpace- A String representing the namespace in which- AttributeNameelements are interpreted.
- values- A List of DOM element representing the- AttributeValueobject.
- Throws:
- SAMLException- if there is an error in the sender or in the
            element definition.
 
Attribute
public Attribute(java.lang.String name,
                 java.lang.String nameSpace,
                 java.lang.String attributeValue)
          throws SAMLException
- Constructs an instance of Attribute.
- 
- Parameters:
- name- The name of the attribute.
- nameSpace- The namespace in which- AttributeNameelements are interpreted.
- attributeValue- an- AttributeValueobject.
- Throws:
- SAMLException- if there is an error in the sender or in
            the element definition.
 
getAttributeValue
public java.util.List getAttributeValue()
                                 throws SAMLException
- Returns AttributeValuefrom the Attribute.
- 
- Returns:
- A list of DOM Element representing the
 AttributeValueblock.
- Throws:
- SAMLException-
 
addAttributeValue
public void addAttributeValue(java.lang.String value)
                       throws SAMLException
- Add AttributeValueto the Attribute.
- 
- Parameters:
- value- A String representing- AttributeValue.
- Throws:
- SAMLException-
 
addAttributeValue
public void addAttributeValue(org.w3c.dom.Element element)
                       throws SAMLException
- Add AttributeValueto the Attribute.
- 
- Parameters:
- element- An Element object representing- AttributeValue.
- Throws:
- SAMLException-
 
toString
public java.lang.String toString()
- Returns a String representation of the
 <saml:Attribute>element,
- 
- Overrides:
- toStringin class- AttributeDesignator
 
- 
- 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:Attribute>element.
- 
- Overrides:
- toStringin class- AttributeDesignator
 
- 
- 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
 
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.