Class ActionImpl
- java.lang.Object
-
- com.sun.identity.saml2.assertion.impl.ActionImpl
-
- All Implemented Interfaces:
Action
public class ActionImpl extends Object implements Action
This class is an implementation of interfaceAction. TheActionelement specifies an action on the specified resource for which permission is sought. Its type isActionType.<complexType name="ActionType"> <simpleContent> <extension base="<http://www.w3.org/2001/XMLSchema>string"> <attribute name="Namespace" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> </extension> </simpleContent> </complexType>
-
-
Constructor Summary
Constructors Constructor Description ActionImpl()Class constructor.ActionImpl(String xmlString)Class constructor withActionin xml string format.ActionImpl(Element element)Class constructor withActioninElementformat.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetNamespace()Returns the value of theNamespaceproperty.StringgetValue()Returns the value of the value property.booleanisMutable()Returns the mutability of the object.voidmakeImmutable()Makes the object immutable.voidsetNamespace(String value)Sets the value of theNamespaceproperty.voidsetValue(String value)Sets the value of the value property.StringtoXMLString()Returns a String representation of the element.StringtoXMLString(boolean includeNS, boolean declareNS)Returns a String representation of the element.
-
-
-
Constructor Detail
-
ActionImpl
public ActionImpl()
Class constructor. Caller may need to call setters to populate the object.
-
ActionImpl
public ActionImpl(Element element) throws SAML2Exception
Class constructor withActioninElementformat.- Throws:
SAML2Exception
-
ActionImpl
public ActionImpl(String xmlString) throws SAML2Exception
Class constructor withActionin xml string format.- Throws:
SAML2Exception
-
-
Method Detail
-
makeImmutable
public void makeImmutable()
Makes the object immutable.- Specified by:
makeImmutablein interfaceAction
-
isMutable
public boolean isMutable()
Returns the mutability of the object.
-
getValue
public String getValue()
Returns the value of the value property.- Specified by:
getValuein interfaceAction- Returns:
- A String label for the action.
- See Also:
setValue(String)
-
setValue
public void setValue(String value) throws SAML2Exception
Sets the value of the value property.- Specified by:
setValuein interfaceAction- Parameters:
value- A String lable for the action to be set.- Throws:
SAML2Exception- if the object is immutable.- See Also:
getValue()
-
getNamespace
public String getNamespace()
Returns the value of theNamespaceproperty.- Specified by:
getNamespacein interfaceAction- Returns:
- A String representing
Namespaceattribute. - See Also:
setNamespace(String)
-
setNamespace
public void setNamespace(String value) throws SAML2Exception
Sets the value of theNamespaceproperty.- Specified by:
setNamespacein interfaceAction- Parameters:
value- A String representingNamespaceattribute.- Throws:
SAML2Exception- if the object is immutable.- See Also:
getNamespace()
-
toXMLString
public String toXMLString() throws SAML2Exception
Returns a String representation of the element.- Specified by:
toXMLStringin interfaceAction- Returns:
- A string containing the valid XML for this element. By default name space name is prepended to the element name.
- Throws:
SAML2Exception- if the object does not conform to the schema.
-
toXMLString
public String toXMLString(boolean includeNS, boolean declareNS) throws SAML2Exception
Returns a String representation of the element.- Specified by:
toXMLStringin interfaceAction- Parameters:
includeNS- Determines whether or not the namespace qualifier is prepended to the Element when converteddeclareNS- Determines whether or not the namespace is declared within the Element.- Returns:
- A string containing the valid XML for this element
- Throws:
SAML2Exception- if the object does not conform to the schema.
-
-