Class StatusMessageImpl
- java.lang.Object
-
- com.sun.identity.xacml.context.impl.StatusMessageImpl
-
- All Implemented Interfaces:
StatusMessage
public class StatusMessageImpl extends Object implements StatusMessage
TheStatusMessageelement is a container of one or moreStatusMessages issuded by authorization authority.Schema: <xs:element name="StatusMessage" type="xs:string"/>
-
-
Constructor Summary
Constructors Constructor Description StatusMessageImpl()Constructs aStatusMessageobjectStatusMessageImpl(String xml)Constructs aStatusMessageobject from an XML stringStatusMessageImpl(Element element)Constructs aStatusMessageobject from an XML DOM element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()Returns thevalueof this objectbooleanisMutable()Checks if the object is mutablevoidmakeImmutable()Makes the object immutablevoidsetValue(String value)Sets thevalueof this objectStringtoXMLString()Returns a string representationStringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a string representation
-
-
-
Constructor Detail
-
StatusMessageImpl
public StatusMessageImpl() throws XACMLExceptionConstructs aStatusMessageobject- Throws:
XACMLException
-
StatusMessageImpl
public StatusMessageImpl(String xml) throws XACMLException
Constructs aStatusMessageobject from an XML string- Parameters:
xml- string representing aStatusMessageobject- Throws:
SAMLException- if the XML string could not be processedXACMLException
-
StatusMessageImpl
public StatusMessageImpl(Element element) throws XACMLException
Constructs aStatusMessageobject from an XML DOM element- Parameters:
element- XML DOM element representing aStatusMessageobject- Throws:
SAMLException- if the DOM element could not be processedXACMLException
-
-
Method Detail
-
getValue
public String getValue()
Returns thevalueof this object- Specified by:
getValuein interfaceStatusMessage- Returns:
- the
valueof this object
-
setValue
public void setValue(String value) throws XACMLException
Sets thevalueof this object- Specified by:
setValuein interfaceStatusMessage- Throws:
XACMLException- if the object is immutable
-
toXMLString
public String toXMLString() throws XACMLException
Returns a string representation- Specified by:
toXMLStringin interfaceStatusMessage- Returns:
- a string representation
- Throws:
XACMLException- if conversion fails for any reason
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws XACMLException
Returns a string representation- Specified by:
toXMLStringin interfaceStatusMessage- Parameters:
includeNSPrefix- 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 representation
- Throws:
XACMLException- if conversion fails for any reason
-
isMutable
public boolean isMutable()
Checks if the object is mutable- Specified by:
isMutablein interfaceStatusMessage- Returns:
trueif the object is mutable,falseotherwise
-
makeImmutable
public void makeImmutable()
Makes the object immutable- Specified by:
makeImmutablein interfaceStatusMessage
-
-