element
that allows the attribute value to be specified.
Constructor Summary |
Attribute(org.w3c.dom.Element element)
This constructor builds an attribute element from an existing XML block |
Attribute(java.lang.String name,
java.lang.String nameSpace,
java.util.List values)
Constructor |
Attribute(java.lang.String name,
java.lang.String nameSpace,
java.lang.String attributeValue)
Constructor |
Method Summary |
void |
addAttributeValue(org.w3c.dom.Element element)
Add AttributeValue to the Attribute |
void |
addAttributeValue(java.lang.String value)
Add AttributeValue to the Attribute |
java.util.List |
getAttributeValue()
Get AttributeValue from the Attribute |
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 |
Attribute
public Attribute(org.w3c.dom.Element element)
throws SAMLException
- This constructor builds an attribute 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.
Attribute
public Attribute(java.lang.String name,
java.lang.String nameSpace,
java.util.List values)
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.values:A
- List of DOM element representing the AttributeValue object- Throws:
SAMLException:
- An SAMLException implies that 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
- Constructor
- Parameters:
name:
- A String representing AttributeName (the name of the
attribute).nameSpace:
- A String representing the namespace in which
AttributeName elements are interpreted.attributeValue:
- A String representing an AttributeValue object- Throws:
SAMLException:
- An SAMLException implies that there is an error
in the sender or in the element definition.
getAttributeValue
public java.util.List getAttributeValue()
throws SAMLException
- Get AttributeValue from the Attribute
- Returns:
- A list of DOM Element representing the AttributeValue block
addAttributeValue
public void addAttributeValue(java.lang.String value)
throws SAMLException
- Add AttributeValue to the Attribute
- Parameters:
value
- : A String representing AttributeValue
addAttributeValue
public void addAttributeValue(org.w3c.dom.Element element)
throws SAMLException
- Add AttributeValue to the Attribute
- Parameters:
attributeValue
- : An Elemnt object representing AttributeValue
toString
public java.lang.String toString()
- Create a String representation of the element
- Overrides:
toString
in class AttributeDesignator
- 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
- Overrides:
toString
in class AttributeDesignator
- Parameters:
includeNS
- : Determines whether or not the namespace qualifier
is prepended 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