Class ResultTypeImpl

All Implemented Interfaces:
XMLObject, ResultType, XACMLObject

public class ResultTypeImpl extends AbstractXACMLObject implements ResultType
Concrete implementation of ResultType.
  • Field Details

    • 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 Details

    • ResultTypeImpl

      protected ResultTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
      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 Details

    • getDecision

      public DecisionType getDecision()
      Returns the decision in the result.
      Specified by:
      getDecision in interface ResultType
      XACMLDecision the decision in the result
    • getObligations

      public ObligationsType getObligations()
      Returns the list of Obligations in the result.
      Specified by:
      getObligations in interface ResultType
      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
      obligationsIn - obligations for this result
    • getResourceId

      public String getResourceId()
      Gets the ResourceId of the result.
      Specified by:
      getResourceId in interface ResultType
      The ResourceId of the subject
    • getStatus

      public StatusType getStatus()
      Returns the status in the result.
      Specified by:
      getStatus in interface ResultType
      the status in the result
    • setStatus

      public void setStatus(StatusType statusIn)
      Sets the result status.
      Specified by:
      setStatus in interface ResultType
      statusIn - result status
    • setDecision

      public void setDecision(DecisionType decisionIn)
      Sets the decision in the result.
      Specified by:
      setDecision in interface ResultType
      decisionIn - The decision in the result
    • setResourceId

      public void setResourceId(String newResourceId)
      Sets the ResourceId.
      Specified by:
      setResourceId in interface ResultType
      newResourceId - is the ResourceId
    • getOrderedChildren

      public List<XMLObject> getOrderedChildren()
      Gets an unmodifiable list of child elements in the order that they will appear in the DOM.
      Specified by:
      getOrderedChildren in interface XMLObject
      ordered list of child elements