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 of Attribute.
  • Field Details

    • 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 Details

    • AttributeImpl

      protected AttributeImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
      Constructor.
      Parameters:
      namespaceURI - the namespace the element is in
      elementLocalName - the local name of the XML element this Object represents
      namespacePrefix - the prefix for the given namespace
  • Method Details

    • getName

      public String getName()
      Get the name of this attribute.
      Specified by:
      getName in interface Attribute
      Returns:
      the name of this attribute
    • setName

      public void setName(String n)
      Sets the name of this attribute.
      Specified by:
      setName in interface Attribute
      Parameters:
      n - the name of this attribute
    • getNameFormat

      public String getNameFormat()
      Get the name format of this attribute.
      Specified by:
      getNameFormat in interface Attribute
      Returns:
      the name format of this attribute
    • setNameFormat

      public void setNameFormat(String format)
      Sets the name format of this attribute.
      Specified by:
      setNameFormat in interface Attribute
      Parameters:
      format - the name format of this attribute
    • getFriendlyName

      public String getFriendlyName()
      Get the friendly name of this attribute.
      Specified by:
      getFriendlyName in interface Attribute
      Returns:
      the friendly name of this attribute
    • setFriendlyName

      public void setFriendlyName(String fname)
      Sets the friendly name of this attribute.
      Specified by:
      setFriendlyName in interface Attribute
      Parameters:
      fname - the friendly name of this attribute
    • getUnknownAttributes

      public AttributeMap 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 interface AttributeExtensibleXMLObject
      Returns:
      a map of the attributes
    • getAttributeValues

      public List<XMLObject> getAttributeValues()
      Gets the list of attribute values for this attribute.
      Specified by:
      getAttributeValues in interface Attribute
      Returns:
      the list of attribute values for this attribute
    • getOrderedChildren

      public List<XMLObject> getOrderedChildren()
      Gets an unmodifiable list of child elements in the order that they will appear in the DOM.
      Specified by:
      getOrderedChildren in interface XMLObject
      Returns:
      ordered list of child elements