com.sun.identity.saml.assertion
Class Action

java.lang.Object
  |
  +--com.sun.identity.saml.assertion.Action

public class Action
extends java.lang.Object

This class is designed for <Action> element in SAML core assertion. The Actions Element specifies an action on specified resource for which permission is sought.


Constructor Summary
Action(org.w3c.dom.Element element)
          Constructs an action element from an existing XML block.
Action(java.lang.String namespace, java.lang.String action)
          Convenience constructor of <Action>
 
Method Summary
 java.lang.String getAction()
          Get the action string
 java.lang.String getNameSpace()
          get the namespace of Action
 java.lang.String toString()
          Create a String representation of the element
 java.lang.String toString(boolean includeNS, boolean declareNS)
          Create a String representation of the element
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Action

public Action(org.w3c.dom.Element element)
       throws SAMLException
Constructs an action element from an existing XML block.
Parameters:
element - representing a DOM tree element.
Throws:
SAMLException - f there is an error in the sender or in the element definition.

Action

public Action(java.lang.String namespace,
              java.lang.String action)
       throws SAMLException
Convenience constructor of <Action>
Parameters:
namespace - The attribute "namespace" of <Action> element
action - A String representing an action
Throws:
SAMLException - if there is an error in the sender or in the element definition.
Method Detail

getAction

public java.lang.String getAction()
Get the action string
Returns:
A String representing the action

getNameSpace

public java.lang.String getNameSpace()
get the namespace of Action
Returns:
A String representing the name space of the action

toString

public java.lang.String toString()
Create a String representation of the element
Overrides:
toString in class java.lang.Object
Returns:
A string containing the valid XML for this element

toString

public java.lang.String toString(boolean includeNS,
                                 boolean declareNS)
Create a String representation of the element
Parameters:
includeNS - : Determines whether or not the namespace qualifier is prepended to the Element when converted
declareNS - : Determines whether or not the namespace is declared within the Element.
Returns:
A string containing the valid XML for this element