com.sun.identity.saml.assertion
クラス Attribute

java.lang.Object
  上位を拡張 com.sun.identity.saml.assertion.AttributeDesignator
      上位を拡張 com.sun.identity.saml.assertion.Attribute

public class Attribute
extends AttributeDesignator

The Attribute element specifies an attribute of the assertion subject. The Attribute element is an extension of the AttributeDesignator element that allows the attribute value to be specified.


フィールドの概要
protected  List _attributeValue
           
 
クラス com.sun.identity.saml.assertion.AttributeDesignator から継承されたフィールド
_attributeName, _attributeNameSpace
 
コンストラクタの概要
Attribute(Element element)
          Constructs an attribute element from an existing XML block.
Attribute(String name, String nameSpace, List values)
          Constructs an instance of Attribute.
Attribute(String name, String nameSpace, String attributeValue)
          Constructs an instance of Attribute.
 
メソッドの概要
 void addAttributeValue(Element element)
          Adds AttributeValue to the Attribute.
 void addAttributeValue(String value)
          Adds AttributeValue to the Attribute.
 List getAttributeValue()
          Returns AttributeValue from the Attribute.
 String toString()
          Returns a String representation of the <saml:Attribute> element,
 String toString(boolean includeNS, boolean declareNS)
          Returns a String representation of the <saml:Attribute> element.
 
クラス com.sun.identity.saml.assertion.AttributeDesignator から継承されたメソッド
getAttributeName, getAttributeNamespace
 

フィールドの詳細

_attributeValue

protected List _attributeValue
コンストラクタの詳細

Attribute

public Attribute(Element element)
          throws SAMLException
Constructs an attribute element from an existing XML block.

パラメータ:
element - representing a DOM tree element.
例外:
SAMLException - if there is an error in the sender or in the element definition.

Attribute

public Attribute(String name,
                 String nameSpace,
                 List values)
          throws SAMLException
Constructs an instance of Attribute.

パラメータ:
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.
例外:
SAMLException - if there is an error in the sender or in the element definition.

Attribute

public Attribute(String name,
                 String nameSpace,
                 String attributeValue)
          throws SAMLException
Constructs an instance of Attribute.

パラメータ:
name - The name of the attribute.
nameSpace - The namespace in which AttributeName elements are interpreted.
attributeValue - an AttributeValue object.
例外:
SAMLException - if there is an error in the sender or in the element definition.
メソッドの詳細

getAttributeValue

public List getAttributeValue()
                       throws SAMLException
Returns AttributeValue from the Attribute.

戻り値:
A list of DOM Element representing the AttributeValue block.
例外:
SAMLException

addAttributeValue

public void addAttributeValue(String value)
                       throws SAMLException
Adds AttributeValue to the Attribute.

パラメータ:
value - A String representing AttributeValue.
例外:
SAMLException

addAttributeValue

public void addAttributeValue(Element element)
                       throws SAMLException
Adds AttributeValue to the Attribute.

パラメータ:
element - An Element object representing AttributeValue.
例外:
SAMLException

toString

public String toString()
Returns a String representation of the <saml:Attribute> element,

オーバーライド:
クラス AttributeDesignator 内の toString
戻り値:
A string containing the valid XML for this element.

toString

public String toString(boolean includeNS,
                       boolean declareNS)
Returns a String representation of the <saml:Attribute> element.

オーバーライド:
クラス AttributeDesignator 内の toString
パラメータ:
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.
戻り値:
A string containing the valid XML for this element