org.opensaml.saml2.core.impl
Class AttributeImpl

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.validation.AbstractValidatingXMLObject
          extended by org.opensaml.common.impl.AbstractSAMLObject
              extended by org.opensaml.saml2.core.impl.AttributeImpl
All Implemented Interfaces:
SAMLObject, Attribute, AttributeExtensibleXMLObject, ValidatingXMLObject, XMLObject
Direct Known Subclasses:
RequestedAttributeImpl

public class AttributeImpl
extends AbstractSAMLObject
implements Attribute

Concrete implementation of Attribute.


Field Summary
private  XMLObjectChildrenList<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  AttributeMap unknownAttributes
          "anyAttribute" attributes.
 
Fields inherited from interface org.opensaml.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
protected AttributeImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor.
 
Method Summary
 List<XMLObject> getAttributeValues()
          Gets the list of attribute values for this attribute.
 String getFriendlyName()
          Get the friendly name of this attribute.
 String getName()
          Get the name of this attribute.
 String getNameFormat()
          Get the name format of this attribute.
 List<XMLObject> getOrderedChildren()
          
 AttributeMap getUnknownAttributes()
          
 void setFriendlyName(String friendlyName)
          Sets the friendly name of this attribute.
 void setName(String name)
          Sets the name of this attribute.
 void setNameFormat(String nameFormat)
          Sets the name format of this attribute.
 
Methods inherited from class org.opensaml.common.impl.AbstractSAMLObject
equals, prepareForAssignment
 
Methods inherited from class org.opensaml.xml.validation.AbstractValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate, validateChildren
 
Methods inherited from class org.opensaml.xml.AbstractXMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensaml.xml.validation.ValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate
 
Methods inherited from interface org.opensaml.xml.XMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, 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 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()
Get the name of this attribute.

Specified by:
getName in interface Attribute
Returns:
the name of this attribute

setName

public void setName(String name)
Sets the name of this attribute.

Specified by:
setName in interface Attribute
Parameters:
name - 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 nameFormat)
Sets the name format of this attribute.

Specified by:
setNameFormat in interface Attribute
Parameters:
nameFormat - 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 friendlyName)
Sets the friendly name of this attribute.

Specified by:
setFriendlyName in interface Attribute
Parameters:
friendlyName - the friendly name of this attribute

getUnknownAttributes

public AttributeMap getUnknownAttributes()

Specified by:
getUnknownAttributes in interface AttributeExtensibleXMLObject

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()

Specified by:
getOrderedChildren in interface XMLObject


Copyright © 1999-2012. All Rights Reserved.