Package com.sun.identity.saml.assertion
Class AttributeDesignator
- java.lang.Object
-
- com.sun.identity.saml.assertion.AttributeDesignator
-
- Direct Known Subclasses:
Attribute
@SupportedAll public class AttributeDesignator extends Object
TheAttributeDesignatorelement 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.
-
-
Field Summary
Fields Modifier and Type Field Description protected String_attributeNameprotected String_attributeNameSpace
-
Constructor Summary
Constructors Modifier Constructor Description protectedAttributeDesignator()Default constructorAttributeDesignator(String name, String nameSpace)Constructs an instance ofAttributeDesignator.AttributeDesignator(Element element)Constructs an attribute designator element from an existing XML block.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttributeName()Returns attribute name from theAttributeDesignator.StringgetAttributeNamespace()Returns attribute name space from theAttributeDesignator.StringtoString()Returns a String representation of the<saml:AttributeDesignator>element.StringtoString(boolean includeNS, boolean declareNS)Returns a String representation of the<saml:AttributeDesignator>element.
-
-
-
Constructor Detail
-
AttributeDesignator
protected AttributeDesignator()
Default constructor
-
AttributeDesignator
public AttributeDesignator(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(String name, String nameSpace) throws SAMLException
Constructs an instance ofAttributeDesignator.- Parameters:
name- the name of the attribute.nameSpace- the namespace in whichAttributeNameelements are interpreted.- Throws:
SAMLException- if there is an error in the sender or in the element definition.
-
-
Method Detail
-
getAttributeName
public String getAttributeName()
Returns attribute name from theAttributeDesignator.- Returns:
- A String representing the attribute name.
-
getAttributeNamespace
public String getAttributeNamespace()
Returns attribute name space from theAttributeDesignator.- Returns:
- A String representing the attribute name space.
-
toString
public String toString()
Returns a String representation of the<saml:AttributeDesignator>element.
-
toString
public 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.
-
-