Class AttributeImpl

  • All Implemented Interfaces:
    org.opensaml.core.xml.AttributeExtensibleXMLObject, org.opensaml.core.xml.XMLObject, org.opensaml.saml.common.SAMLObject, org.opensaml.saml.saml2.core.Attribute
    Direct Known Subclasses:
    RequestedAttributeImpl

    public class AttributeImpl
    extends org.opensaml.core.xml.AbstractXMLObject
    implements org.opensaml.saml.saml2.core.Attribute
    Concrete implementation of Attribute.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.opensaml.core.xml.util.XMLObjectChildrenList<org.opensaml.core.xml.XMLObject> attributeValues
      List of attribute values for this attribute.
      private String friendlyName
      Human readable name of the attribute.
      private String name
      Name of the attribute.
      private String nameFormat
      Format of the name of the attribute.
      private org.opensaml.core.xml.util.AttributeMap unknownAttributes
      "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
      protected AttributeImpl​(String namespaceURI, String elementLocalName, String namespacePrefix)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      List<org.opensaml.core.xml.XMLObject> getAttributeValues()
      String getFriendlyName()
      String getName()
      String getNameFormat()
      List<org.opensaml.core.xml.XMLObject> getOrderedChildren()
      org.opensaml.core.xml.util.AttributeMap getUnknownAttributes()
      void setFriendlyName​(String fname)
      void setName​(String n)
      void setNameFormat​(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 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 org.opensaml.core.xml.util.AttributeMap unknownAttributes
        "anyAttribute" attributes.
      • attributeValues

        private final org.opensaml.core.xml.util.XMLObjectChildrenList<org.opensaml.core.xml.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 in
        elementLocalName - the local name of the XML element this Object represents
        namespacePrefix - the prefix for the given namespace
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface org.opensaml.saml.saml2.core.Attribute
      • setName

        public void setName​(String n)
        Specified by:
        setName in interface org.opensaml.saml.saml2.core.Attribute
      • getNameFormat

        public String getNameFormat()
        Specified by:
        getNameFormat in interface org.opensaml.saml.saml2.core.Attribute
      • setNameFormat

        public void setNameFormat​(String format)
        Specified by:
        setNameFormat in interface org.opensaml.saml.saml2.core.Attribute
      • getFriendlyName

        public String getFriendlyName()
        Specified by:
        getFriendlyName in interface org.opensaml.saml.saml2.core.Attribute
      • setFriendlyName

        public void setFriendlyName​(String fname)
        Specified by:
        setFriendlyName in interface org.opensaml.saml.saml2.core.Attribute
      • getUnknownAttributes

        public org.opensaml.core.xml.util.AttributeMap getUnknownAttributes()
        Specified by:
        getUnknownAttributes in interface org.opensaml.core.xml.AttributeExtensibleXMLObject
      • getAttributeValues

        public List<org.opensaml.core.xml.XMLObject> getAttributeValues()
        Specified by:
        getAttributeValues in interface org.opensaml.saml.saml2.core.Attribute
      • getOrderedChildren

        public List<org.opensaml.core.xml.XMLObject> getOrderedChildren()
        Specified by:
        getOrderedChildren in interface org.opensaml.core.xml.XMLObject