org.opensaml.saml2.metadata.impl
Class RequestedAttributeImpl

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
                  extended by org.opensaml.saml2.metadata.impl.RequestedAttributeImpl
All Implemented Interfaces:
SAMLObject, Attribute, RequestedAttribute, AttributeExtensibleXMLObject, ValidatingXMLObject, XMLObject

public class RequestedAttributeImpl
extends AttributeImpl
implements RequestedAttribute

Concrete implementation of RequestedAttribute


Field Summary
private  XSBooleanValue isRequired
          isRequired attribute
 
Fields inherited from interface org.opensaml.saml2.metadata.RequestedAttribute
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, IS_REQUIRED_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
 
Fields inherited from interface org.opensaml.saml2.core.Attribute
BASIC, FRIENDLY_NAME_ATTRIB_NAME, NAME_ATTTRIB_NAME, NAME_FORMAT_ATTRIB_NAME, UNSPECIFIED, URI_REFERENCE
 
Constructor Summary
protected RequestedAttributeImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor
 
Method Summary
 List<XMLObject> getOrderedChildren()
          
 Boolean isRequired()
          Checks to see if this requested attribute is also required.
 XSBooleanValue isRequiredXSBoolean()
          Checks to see if this requested attribute is also required.
 void setIsRequired(Boolean newIsRequired)
          Sets if this requested attribute is also required.
 void setIsRequired(XSBooleanValue newIsRequired)
          Sets if this requested attribute is also required.
 
Methods inherited from class org.opensaml.saml2.core.impl.AttributeImpl
getAttributeValues, getFriendlyName, getName, getNameFormat, getUnknownAttributes, setFriendlyName, setName, setNameFormat
 
Methods inherited from class org.opensaml.common.impl.AbstractSAMLObject
equals, hashCode, 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, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensaml.saml2.core.Attribute
getAttributeValues, getFriendlyName, getName, getNameFormat, setFriendlyName, setName, setNameFormat
 
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
 
Methods inherited from interface org.opensaml.xml.AttributeExtensibleXMLObject
getUnknownAttributes
 

Field Detail

isRequired

private XSBooleanValue isRequired
isRequired attribute

Constructor Detail

RequestedAttributeImpl

protected RequestedAttributeImpl(String namespaceURI,
                                 String elementLocalName,
                                 String namespacePrefix)
Constructor

Parameters:
namespaceURI -
elementLocalName -
namespacePrefix -
Method Detail

isRequired

public Boolean isRequired()
Checks to see if this requested attribute is also required.

Specified by:
isRequired in interface RequestedAttribute
Returns:
true if this attribute is required

isRequiredXSBoolean

public XSBooleanValue isRequiredXSBoolean()
Checks to see if this requested attribute is also required.

Specified by:
isRequiredXSBoolean in interface RequestedAttribute
Returns:
true if this attribute is required

setIsRequired

public void setIsRequired(Boolean newIsRequired)
Sets if this requested attribute is also required. Boolean values will be marshalled to either "true" or "false".

Specified by:
setIsRequired in interface RequestedAttribute
Parameters:
newIsRequired - true if this attribute is required

setIsRequired

public void setIsRequired(XSBooleanValue newIsRequired)
Sets if this requested attribute is also required.

Specified by:
setIsRequired in interface RequestedAttribute
Parameters:
newIsRequired - true if this attribute is required

getOrderedChildren

public List<XMLObject> getOrderedChildren()

Specified by:
getOrderedChildren in interface XMLObject
Overrides:
getOrderedChildren in class AttributeImpl


Copyright © 1999-2013. All Rights Reserved.