org.opensaml.xacml.policy.impl
Class AttributeValueTypeImpl

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.validation.AbstractValidatingXMLObject
          extended by org.opensaml.xacml.impl.AbstractXACMLObject
              extended by org.opensaml.xacml.policy.impl.AttributeValueTypeImpl
All Implemented Interfaces:
AttributeValueType, ExpressionType, XACMLObject, AttributeExtensibleXMLObject, ElementExtensibleXMLObject, ValidatingXMLObject, XMLObject
Direct Known Subclasses:
AttributeAssignmentTypeImpl

public class AttributeValueTypeImpl
extends AbstractXACMLObject
implements AttributeValueType

Implementation of AttributeValueType.


Field Summary
private  String dataType
          Data type.
private  String textContent
          Text content of value element.
private  AttributeMap unknownAttributes
          "any" attributes.
private  IndexedXMLObjectChildrenList<XMLObject> unknownElements
          "any" elements.
 
Fields inherited from interface org.opensaml.xacml.policy.AttributeValueType
DATA_TYPE_ATTRIB_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, SCHEMA_TYPE_LOCAL_NAME, SCHEMA_TYPE_NAME
 
Fields inherited from interface org.opensaml.xacml.policy.ExpressionType
DEFAULT_ELEMENT_NAME_XACML20
 
Constructor Summary
protected AttributeValueTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor.
 
Method Summary
 String getDataType()
          Gets the data type of the designated attribute.
 List<XMLObject> getOrderedChildren()
          
 AttributeMap getUnknownAttributes()
          
 List<XMLObject> getUnknownXMLObjects()
          
 List<XMLObject> getUnknownXMLObjects(QName typeOrName)
          
 String getValue()
          Gets the text content of the element.
 void setDataType(String type)
          Sets the data type of the designated attribute.
 void setValue(String value)
          Sets the text content of the element.
 
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, equals, 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

dataType

private String dataType
Data type.


textContent

private String textContent
Text content of value element.


unknownElements

private IndexedXMLObjectChildrenList<XMLObject> unknownElements
"any" elements.


unknownAttributes

private AttributeMap unknownAttributes
"any" attributes.

Constructor Detail

AttributeValueTypeImpl

protected AttributeValueTypeImpl(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

getDataType

public String getDataType()
Gets the data type of the designated attribute.

Specified by:
getDataType in interface AttributeValueType
Returns:
data type of the designated attribute

setDataType

public void setDataType(String type)
Sets the data type of the designated attribute.

Specified by:
setDataType in interface AttributeValueType
Parameters:
type - data type of the designated attribute

getOrderedChildren

public List<XMLObject> getOrderedChildren()

Specified by:
getOrderedChildren in interface XMLObject

getUnknownAttributes

public AttributeMap getUnknownAttributes()

Specified by:
getUnknownAttributes in interface AttributeExtensibleXMLObject

getUnknownXMLObjects

public List<XMLObject> getUnknownXMLObjects()

Specified by:
getUnknownXMLObjects in interface ElementExtensibleXMLObject

getUnknownXMLObjects

public List<XMLObject> getUnknownXMLObjects(QName typeOrName)

Specified by:
getUnknownXMLObjects in interface ElementExtensibleXMLObject

getValue

public String getValue()
Gets the text content of the element.

Specified by:
getValue in interface AttributeValueType
Returns:
text content of the element

setValue

public void setValue(String value)
Sets the text content of the element. NOTE because the library does not support mixed content setting textual content will prohibit element content.

Specified by:
setValue in interface AttributeValueType
Parameters:
value - text content of the element


Copyright © 1999-2012. All Rights Reserved.