Class StatusCodeImpl
- java.lang.Object
-
- com.sun.identity.xacml.context.impl.StatusCodeImpl
-
- All Implemented Interfaces:
XmlSerializable,StatusCode
@SupportedAll public class StatusCodeImpl extends Object implements StatusCode
TheStatusCodeelement is a container of one or moreStatusCodes issuded by authorization authority.
-
-
Constructor Summary
Constructors Constructor Description StatusCodeImpl()Constructs aStatusCodeobjectStatusCodeImpl(String xml)Constructs aStatusCodeobject from an XML stringStatusCodeImpl(Element element)Constructs aStatusCodeobject from an XML DOM element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMinorCodeValue()Returns theminorCodeValueof this objectStringgetValue()Returns thevalueof this objectbooleanisMutable()Checks if the object is mutablevoidmakeImmutable()Makes the object immutablevoidsetMinorCodeValue(String minorCodeValue)Sets theminorCodeValueof this objectvoidsetValue(String value)Sets thevalueof this objectDocumentFragmenttoDocumentFragment(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 Detail
-
StatusCodeImpl
public StatusCodeImpl() throws XACMLExceptionConstructs aStatusCodeobject- Throws:
XACMLException
-
StatusCodeImpl
public StatusCodeImpl(String xml) throws XACMLException
Constructs aStatusCodeobject from an XML string- Parameters:
xml- string representing aStatusCodeobject- Throws:
XACMLException- If the XML string could not be processed.
-
StatusCodeImpl
public StatusCodeImpl(Element element) throws XACMLException
Constructs aStatusCodeobject from an XML DOM element- Parameters:
element- XML DOM element representing aStatusCodeobject- Throws:
XACMLException- If the DOM element could not be processed.
-
-
Method Detail
-
getValue
public String getValue()
Returns thevalueof this object- Specified by:
getValuein interfaceStatusCode- Returns:
- the
valueof this object
-
setValue
public void setValue(String value) throws XACMLException
Sets thevalueof this object- Specified by:
setValuein interfaceStatusCode- Throws:
XACMLException- if the object is immutable
-
getMinorCodeValue
public String getMinorCodeValue()
Returns theminorCodeValueof this object- Specified by:
getMinorCodeValuein interfaceStatusCode- Returns:
- the
minorCodeValueof this object
-
setMinorCodeValue
public void setMinorCodeValue(String minorCodeValue) throws XACMLException
Sets theminorCodeValueof this object- Specified by:
setMinorCodeValuein interfaceStatusCode- Throws:
XACMLException- if the object is immutable
-
toDocumentFragment
public DocumentFragment toDocumentFragment(Document document, boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Description copied from interface:XmlSerializableSerializes 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:
toDocumentFragmentin interfaceXmlSerializable- Parameters:
document- the parentDocumentto 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:
SAML2Exception- if the element cannot be serialized for any reason.
-
isMutable
public boolean isMutable()
Checks if the object is mutable- Specified by:
isMutablein interfaceStatusCode- Returns:
trueif the object is mutable,falseotherwise
-
makeImmutable
public void makeImmutable()
Makes the object immutable- Specified by:
makeImmutablein interfaceStatusCode
-
-