public class StatusMessageImpl extends Object implements StatusMessage
StatusMessage
element is a container of
one or more StatusMessage
s issuded by authorization authority.Constructor and Description |
---|
StatusMessageImpl()
Constructs a
StatusMessage object |
StatusMessageImpl(Element element)
Constructs a
StatusMessage object from an XML DOM element |
StatusMessageImpl(String xml)
Constructs a
StatusMessage object from an XML string |
Modifier and Type | Method and Description |
---|---|
String |
getValue()
Returns the
value of this object |
boolean |
isMutable()
Checks if the object is mutable
|
void |
makeImmutable()
Makes the object immutable
|
void |
setValue(String value)
Sets the
value of this object |
String |
toXMLString()
Returns a string representation
|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns a string representation
|
public StatusMessageImpl() throws XACMLException
StatusMessage
objectXACMLException
public StatusMessageImpl(String xml) throws XACMLException
StatusMessage
object from an XML stringxml
- string representing a StatusMessage
objectXACMLException
- If the XML string could not be processed.public StatusMessageImpl(Element element) throws XACMLException
StatusMessage
object from an XML DOM elementelement
- XML DOM element representing a StatusMessage
objectXACMLException
- If the DOM element could not be processed.public String getValue()
value
of this objectgetValue
in interface StatusMessage
value
of this objectpublic void setValue(String value) throws XACMLException
value
of this objectsetValue
in interface StatusMessage
XACMLException
- if the object is immutablepublic String toXMLString() throws XACMLException
toXMLString
in interface StatusMessage
XACMLException
- if conversion fails for any reasonpublic String toXMLString(boolean includeNSPrefix, boolean declareNS) throws XACMLException
toXMLString
in interface StatusMessage
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.XACMLException
- if conversion fails for any reasonpublic boolean isMutable()
isMutable
in interface StatusMessage
true
if the object is mutable,
false
otherwisepublic void makeImmutable()
makeImmutable
in interface StatusMessage
Copyright © 2010-2018, ForgeRock All Rights Reserved.