Class AttributeImpl
java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
org.opensaml.saml.saml2.core.impl.AttributeImpl
- All Implemented Interfaces:
AttributeExtensibleXMLObject
,XMLObject
,SAMLObject
,Attribute
- Direct Known Subclasses:
RequestedAttributeImpl
Concrete implementation of
Attribute
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final XMLObjectChildrenList<XMLObject>
List of attribute values for this attribute.private String
Human readable name of the attribute.private String
Name of the attribute.private String
Format of the name of the attribute.private AttributeMap
"anyAttribute" attributes.Fields inherited from interface org.opensaml.saml.saml2.core.Attribute
BASIC, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, FRIENDLY_NAME_ATTRIB_NAME, NAME_ATTTRIB_NAME, NAME_FORMAT_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME, UNSPECIFIED, URI_REFERENCE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AttributeImpl
(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of attribute values for this attribute.Get the friendly name of this attribute.getName()
Get the name of this attribute.Get the name format of this attribute.Gets an unmodifiable list of child elements in the order that they will appear in the DOM.Gets a mutable map of the attributes.void
setFriendlyName
(String fname) Sets the friendly name of this attribute.void
Sets the name of this attribute.void
setNameFormat
(String format) Sets the name format of this attribute.Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
Field Details
-
name
Name of the attribute. -
nameFormat
Format of the name of the attribute. -
friendlyName
Human readable name of the attribute. -
unknownAttributes
"anyAttribute" attributes. -
attributeValues
List of attribute values for this attribute.
-
-
Constructor Details
-
AttributeImpl
Constructor.- Parameters:
namespaceURI
- the namespace the element is inelementLocalName
- the local name of the XML element this Object representsnamespacePrefix
- the prefix for the given namespace
-
-
Method Details
-
getName
Get the name of this attribute. -
setName
Sets the name of this attribute. -
getNameFormat
Get the name format of this attribute.- Specified by:
getNameFormat
in interfaceAttribute
- Returns:
- the name format of this attribute
-
setNameFormat
Sets the name format of this attribute.- Specified by:
setNameFormat
in interfaceAttribute
- Parameters:
format
- the name format of this attribute
-
getFriendlyName
Get the friendly name of this attribute.- Specified by:
getFriendlyName
in interfaceAttribute
- Returns:
- the friendly name of this attribute
-
setFriendlyName
Sets the friendly name of this attribute.- Specified by:
setFriendlyName
in interfaceAttribute
- Parameters:
fname
- the friendly name of this attribute
-
getUnknownAttributes
Gets a mutable map of the attributes. The map key is the namespace qualified name of the attribute, the map value is the value of the attribute.- Specified by:
getUnknownAttributes
in interfaceAttributeExtensibleXMLObject
- Returns:
- a map of the attributes
-
getAttributeValues
Gets the list of attribute values for this attribute.- Specified by:
getAttributeValues
in interfaceAttribute
- Returns:
- the list of attribute values for this attribute
-
getOrderedChildren
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.- Specified by:
getOrderedChildren
in interfaceXMLObject
- Returns:
- ordered list of child elements
-