org.opensaml.xacml.ctx.impl
Class ResultTypeImpl

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.ResultTypeImpl
All Implemented Interfaces:
ResultType, XACMLObject, ValidatingXMLObject, XMLObject

public class ResultTypeImpl
extends AbstractXACMLObject
implements ResultType

Concrete implementation of ResultType.


Field Summary
private  DecisionType decision
          The decision of the result.
private  ObligationsType obligations
          The obligations in this Result.
private  String resourceId
          Attribute resource id.
private  StatusType status
          List of the status of this result.
 
Fields inherited from interface org.opensaml.xacml.ctx.ResultType
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, RESOURCE_ID_ATTTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
 
Constructor Summary
protected ResultTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor.
 
Method Summary
 DecisionType getDecision()
          Returns the decision in the result.
 ObligationsType getObligations()
          Returns the list of Obligations in the result.
 List<XMLObject> getOrderedChildren()
          
 String getResourceId()
          Gets the ResourceId of the result.
 StatusType getStatus()
          Returns the status in the result.
 void setDecision(DecisionType decisionIn)
          Sets the decision in the result.
 void setObligations(ObligationsType obligationsIn)
          Sets the obligations for this result.
 void setResourceId(String newResourceId)
          Sets the ResourceId.
 void setStatus(StatusType statusIn)
          Sets the result status.
 
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

resourceId

private String resourceId
Attribute resource id.


decision

private DecisionType decision
The decision of the result.


status

private StatusType status
List of the status of this result.


obligations

private ObligationsType obligations
The obligations in this Result.

Constructor Detail

ResultTypeImpl

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

getDecision

public DecisionType getDecision()
Returns the decision in the result.

Specified by:
getDecision in interface ResultType
Returns:
XACMLDecision the decision in the result

getObligations

public ObligationsType getObligations()
Returns the list of Obligations in the result.

Specified by:
getObligations in interface ResultType
Returns:
the list of Obligations in the result

setObligations

public void setObligations(ObligationsType obligationsIn)
Sets the obligations for this result.

Specified by:
setObligations in interface ResultType
Parameters:
obligationsIn - obligations for this result

getResourceId

public String getResourceId()
Gets the ResourceId of the result.

Specified by:
getResourceId in interface ResultType
Returns:
The ResourceId of the subject

getStatus

public StatusType getStatus()
Returns the status in the result.

Specified by:
getStatus in interface ResultType
Returns:
the status in the result

setStatus

public void setStatus(StatusType statusIn)
Sets the result status.

Specified by:
setStatus in interface ResultType
Parameters:
statusIn - result status

setDecision

public void setDecision(DecisionType decisionIn)
Sets the decision in the result.

Specified by:
setDecision in interface ResultType
Parameters:
decisionIn - The decision in the result

setResourceId

public void setResourceId(String newResourceId)
Sets the ResourceId.

Specified by:
setResourceId in interface ResultType
Parameters:
newResourceId - is the ResourceId

getOrderedChildren

public List<XMLObject> getOrderedChildren()

Specified by:
getOrderedChildren in interface XMLObject


Copyright © 1999-2013. All Rights Reserved.