Constructor and Description |
---|
StatusImpl()
Constructs a
Status object |
StatusImpl(Element element)
Constructs a
Status object from an XML DOM element |
StatusImpl(String xml)
Constructs a
Status object from an XML string |
Modifier and Type | Method and Description |
---|---|
StatusCode |
getStatusCode()
Returns the
StatusCode of this object |
StatusDetail |
getStatusDetail()
Returns the
StatusDetail of this object |
StatusMessage |
getStatusMessage()
Returns the
StatusMessage of this object |
boolean |
isMutable()
Checks if the object is mutable
|
void |
makeImmutable()
Makes the object immutable
|
void |
setStatusCode(StatusCode statusCode)
Sets the
StatusCode of this object |
void |
setStatusDetail(StatusDetail statusDetail)
Sets the
StatusDetail of this object |
void |
setStatusMessage(StatusMessage statusMessage)
Sets the
StatusMessage of this object |
String |
toXMLString()
Returns a string representation
|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns a string representation
|
public StatusImpl() throws XACMLException
Status
objectXACMLException
public StatusImpl(String xml) throws XACMLException
Status
object from an XML stringxml
- string representing a Status
objectXACMLException
- If the XML string could not be processed.public StatusImpl(Element element) throws XACMLException
Status
object from an XML DOM elementelement
- XML DOM element representing a Status
objectXACMLException
- If the DOM element could not be processed.public StatusCode getStatusCode()
StatusCode
of this objectgetStatusCode
in interface Status
StatusCode
of this objectpublic void setStatusCode(StatusCode statusCode) throws XACMLException
StatusCode
of this objectsetStatusCode
in interface Status
XACMLException
- if the object is immutablepublic StatusMessage getStatusMessage()
StatusMessage
of this objectgetStatusMessage
in interface Status
StatusMessage
of this objectpublic void setStatusMessage(StatusMessage statusMessage) throws XACMLException
StatusMessage
of this objectsetStatusMessage
in interface Status
XACMLException
- if the object is immutablepublic StatusDetail getStatusDetail()
StatusDetail
of this objectgetStatusDetail
in interface Status
StatusDetail
of this objectpublic void setStatusDetail(StatusDetail statusDetail) throws XACMLException
StatusDetail
of this objectsetStatusDetail
in interface Status
XACMLException
- if the object is immutablepublic String toXMLString() throws XACMLException
toXMLString
in interface Status
XACMLException
- if conversion fails for any reasonpublic String toXMLString(boolean includeNSPrefix, boolean declareNS) throws XACMLException
toXMLString
in interface Status
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()
public void makeImmutable()
makeImmutable
in interface Status
Copyright © 2010-2018, ForgeRock All Rights Reserved.