Class StatusCodeImpl
- java.lang.Object
-
- com.sun.identity.xacml.context.impl.StatusCodeImpl
-
- All Implemented Interfaces:
StatusCode
public class StatusCodeImpl extends Object implements StatusCode
TheStatusCodeelement is a container of one or moreStatusCodes issuded by authorization authority.Schema: <xs:element name="StatusCode" type="xacml-context:StatusCodeType"/> <xs:complexType name="StatusCodeType"> <xs:sequence> <xs:element ref="xacml-context:StatusCode" minOccurs="0"/> <xs:sequence> <xs:attribute name="Value" type="xs:anyURI" use="required"/> <xs:complexType>
-
-
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 objectStringtoXMLString()Returns a string representationStringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a string representation
-
-
-
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:
SAMLException- if the XML string could not be processedXACMLException
-
StatusCodeImpl
public StatusCodeImpl(Element element) throws XACMLException
Constructs aStatusCodeobject from an XML DOM element- Parameters:
element- XML DOM element representing aStatusCodeobject- Throws:
SAMLException- if the DOM element could not be processedXACMLException
-
-
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
-
toXMLString
public String toXMLString() throws XACMLException
Returns a string representation- Specified by:
toXMLStringin 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:
toXMLStringin 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:
isMutablein interfaceStatusCode- Returns:
trueif the object is mutable,falseotherwise
-
makeImmutable
public void makeImmutable()
Makes the object immutable- Specified by:
makeImmutablein interfaceStatusCode
-
-