org.opensaml.xacml.ctx.impl
Class ResourceTypeImpl

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.ctx.impl.ResourceTypeImpl
All Implemented Interfaces:
ResourceType, XACMLObject, ValidatingXMLObject, XMLObject

public class ResourceTypeImpl
extends AbstractXACMLObject
implements ResourceType

Concrete implementation of ResourceType.


Field Summary
private  XMLObjectChildrenList<AttributeType> attributes
          Lists of the attributes in the subject.
private  ResourceContentType resourceContent
          Resources content.
 
Fields inherited from interface org.opensaml.xacml.ctx.ResourceType
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, TYPE_LOCAL_NAME, TYPE_NAME
 
Constructor Summary
protected ResourceTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor.
 
Method Summary
 List<AttributeType> getAttributes()
          Returns the list of attributes in the resource.
 List<XMLObject> getOrderedChildren()
          
 ResourceContentType getResourceContent()
          Gets the content of the resource.
 void setResourceContent(ResourceContentType content)
          Sets the content of the resource.
 
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

attributes

private XMLObjectChildrenList<AttributeType> attributes
Lists of the attributes in the subject.


resourceContent

private ResourceContentType resourceContent
Resources content.

Constructor Detail

ResourceTypeImpl

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

getAttributes

public List<AttributeType> getAttributes()
Returns the list of attributes in the resource.

Specified by:
getAttributes in interface ResourceType
Returns:
the list of attributes in the resource

getOrderedChildren

public List<XMLObject> getOrderedChildren()

Specified by:
getOrderedChildren in interface XMLObject

getResourceContent

public ResourceContentType getResourceContent()
Gets the content of the resource.

Specified by:
getResourceContent in interface ResourceType
Returns:
content of the resource

setResourceContent

public void setResourceContent(ResourceContentType content)
Sets the content of the resource.

Specified by:
setResourceContent in interface ResourceType
Parameters:
content - content of the resource


Copyright © 1999-2012. All Rights Reserved.