Class StatusCodeImpl
java.lang.Object
com.sun.identity.xacml.context.impl.StatusCodeImpl
- All Implemented Interfaces:
XmlSerializable
,StatusCode
The
StatusCode
element is a container of
one or more StatusCode
s issuded by authorization authority.-
Constructor Summary
ConstructorDescriptionConstructs aStatusCode
objectStatusCodeImpl
(String xml) Constructs aStatusCode
object from an XML stringStatusCodeImpl
(Element element) Constructs aStatusCode
object from an XML DOM element -
Method Summary
Modifier and TypeMethodDescriptionReturns theminorCodeValue
of this objectgetValue()
Returns thevalue
of this objectboolean
Checks if the object is mutablevoid
Makes the object immutablevoid
setMinorCodeValue
(String minorCodeValue) Sets theminorCodeValue
of this objectvoid
Sets thevalue
of this objecttoDocumentFragment
(Document document, boolean includeNSPrefix, boolean declareNS) Serializes the element into an XMLDocumentFragment
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sun.identity.xacml.context.StatusCode
toXMLString, toXMLString
-
Constructor Details
-
StatusCodeImpl
Constructs aStatusCode
object- Throws:
XACMLException
-
StatusCodeImpl
Constructs aStatusCode
object from an XML string- Parameters:
xml
- string representing aStatusCode
object- Throws:
XACMLException
- If the XML string could not be processed.
-
StatusCodeImpl
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 Details
-
getValue
Returns thevalue
of this object- Specified by:
getValue
in interfaceStatusCode
- Returns:
- the
value
of this object
-
setValue
Sets thevalue
of this object- Specified by:
setValue
in interfaceStatusCode
- Throws:
XACMLException
- if the object is immutable
-
getMinorCodeValue
Returns theminorCodeValue
of this object- Specified by:
getMinorCodeValue
in interfaceStatusCode
- Returns:
- the
minorCodeValue
of this object
-
setMinorCodeValue
Sets theminorCodeValue
of this object- Specified by:
setMinorCodeValue
in interfaceStatusCode
- Throws:
XACMLException
- if the object is immutable
-
toDocumentFragment
public DocumentFragment toDocumentFragment(Document document, boolean includeNSPrefix, boolean declareNS) throws com.sun.identity.saml2.common.SAML2Exception Description copied from interface:XmlSerializable
Serializes the element into an XMLDocumentFragment
. A default implementation is provided for compatibility with legacy code that implementsXmlSerializable.toXMLString()
, but it is highly recommended to override this method.- Specified by:
toDocumentFragment
in interfaceXmlSerializable
- Parameters:
document
- the parentDocument
to create the document fragment from.includeNSPrefix
- whether to include a namespace prefix in the document elements.declareNS
- whether to declare any namespaces or assume that they are already declared.- Returns:
- the XML document fragment representing this SAML2 element.
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the element cannot be serialized 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
-