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
public class AttributeImpl extends AbstractXMLObject implements Attribute
Concrete implementation ofAttribute.
-
-
Field Summary
Fields Modifier and Type Field Description private XMLObjectChildrenList<XMLObject>attributeValuesList of attribute values for this attribute.private StringfriendlyNameHuman readable name of the attribute.private StringnameName of the attribute.private StringnameFormatFormat of the name of the attribute.private AttributeMapunknownAttributes"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
Constructors Modifier Constructor Description protectedAttributeImpl(String namespaceURI, String elementLocalName, String namespacePrefix)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<XMLObject>getAttributeValues()StringgetFriendlyName()StringgetName()StringgetNameFormat()List<XMLObject>getOrderedChildren()AttributeMapgetUnknownAttributes()voidsetFriendlyName(String fname)voidsetName(String n)voidsetNameFormat(String format)-
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 Detail
-
name
private String name
Name of the attribute.
-
nameFormat
private String nameFormat
Format of the name of the attribute.
-
friendlyName
private String friendlyName
Human readable name of the attribute.
-
unknownAttributes
private AttributeMap unknownAttributes
"anyAttribute" attributes.
-
attributeValues
private final XMLObjectChildrenList<XMLObject> attributeValues
List of attribute values for this attribute.
-
-
Constructor Detail
-
AttributeImpl
protected AttributeImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
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 Detail
-
getNameFormat
public String getNameFormat()
- Specified by:
getNameFormatin interfaceAttribute
-
setNameFormat
public void setNameFormat(String format)
- Specified by:
setNameFormatin interfaceAttribute
-
getFriendlyName
public String getFriendlyName()
- Specified by:
getFriendlyNamein interfaceAttribute
-
setFriendlyName
public void setFriendlyName(String fname)
- Specified by:
setFriendlyNamein interfaceAttribute
-
getUnknownAttributes
public AttributeMap getUnknownAttributes()
- Specified by:
getUnknownAttributesin interfaceAttributeExtensibleXMLObject
-
getAttributeValues
public List<XMLObject> getAttributeValues()
- Specified by:
getAttributeValuesin interfaceAttribute
-
getOrderedChildren
public List<XMLObject> getOrderedChildren()
- Specified by:
getOrderedChildrenin interfaceXMLObject
-
-