Class StatusCodeImpl
- java.lang.Object
-
- com.sun.identity.xacml.context.impl.StatusCodeImpl
-
- All Implemented Interfaces:
StatusCode
@SupportedAll public class StatusCodeImpl extends Object implements StatusCode
TheStatusCode
element is a container of one or moreStatusCode
s issuded by authorization authority.
-
-
Constructor Summary
Constructors Constructor Description StatusCodeImpl()
Constructs aStatusCode
objectStatusCodeImpl(String xml)
Constructs aStatusCode
object from an XML stringStatusCodeImpl(Element element)
Constructs aStatusCode
object from an XML DOM element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMinorCodeValue()
Returns theminorCodeValue
of this objectString
getValue()
Returns thevalue
of this objectboolean
isMutable()
Checks if the object is mutablevoid
makeImmutable()
Makes the object immutablevoid
setMinorCodeValue(String minorCodeValue)
Sets theminorCodeValue
of this objectvoid
setValue(String value)
Sets thevalue
of this objectString
toXMLString()
Returns a string representationString
toXMLString(boolean includeNSPrefix, boolean declareNS)
Returns a string representation
-
-
-
Constructor Detail
-
StatusCodeImpl
public StatusCodeImpl() throws XACMLException
Constructs aStatusCode
object- Throws:
XACMLException
-
StatusCodeImpl
public StatusCodeImpl(String xml) throws XACMLException
Constructs aStatusCode
object from an XML string- Parameters:
xml
- string representing aStatusCode
object- Throws:
XACMLException
- If the XML string could not be processed.
-
StatusCodeImpl
public StatusCodeImpl(Element element) throws XACMLException
Constructs aStatusCode
object from an XML DOM element- Parameters:
element
- XML DOM element representing aStatusCode
object- Throws:
XACMLException
- If the DOM element could not be processed.
-
-
Method Detail
-
getValue
public String getValue()
Returns thevalue
of this object- Specified by:
getValue
in interfaceStatusCode
- Returns:
- the
value
of this object
-
setValue
public void setValue(String value) throws XACMLException
Sets thevalue
of this object- Specified by:
setValue
in interfaceStatusCode
- Throws:
XACMLException
- if the object is immutable
-
getMinorCodeValue
public String getMinorCodeValue()
Returns theminorCodeValue
of this object- Specified by:
getMinorCodeValue
in interfaceStatusCode
- Returns:
- the
minorCodeValue
of this object
-
setMinorCodeValue
public void setMinorCodeValue(String minorCodeValue) throws XACMLException
Sets theminorCodeValue
of this object- Specified by:
setMinorCodeValue
in interfaceStatusCode
- Throws:
XACMLException
- if the object is immutable
-
toXMLString
public String toXMLString() throws XACMLException
Returns a string representation- Specified by:
toXMLString
in interfaceStatusCode
- 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:
toXMLString
in interfaceStatusCode
- 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:
isMutable
in interfaceStatusCode
- Returns:
true
if the object is mutable,false
otherwise
-
makeImmutable
public void makeImmutable()
Makes the object immutable- Specified by:
makeImmutable
in interfaceStatusCode
-
-