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