Class StatusDetailImpl
- java.lang.Object
-
- com.sun.identity.xacml.context.impl.StatusDetailImpl
-
- All Implemented Interfaces:
StatusDetail
public class StatusDetailImpl extends Object implements StatusDetail
TheStatusCodeelement is a container of one or moreStatuss issuded by authorization authority. Schema:<xs:element name="StatusDetail" type="xacml-context:StatusDetailType"/> <xs:complexType name="StatusDetailType"> <xs:sequence> <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> <xs:sequence> <xs:complexType> >/pre>
-
-
Constructor Summary
Constructors Constructor Description StatusDetailImpl()Constructs aStatusDetailobjectStatusDetailImpl(String xml)Constructs aStatusDetailobject from an XML stringStatusDetailImpl(Element element)Constructs aStatusDetailobject from an XML DOM element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementgetElement()booleanisMutable()Checks if the object is mutablevoidmakeImmutable()Makes the object immutablevoidsetElement(Element element)StringtoXMLString()Returns a string representationStringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a string representation
-
-
-
Constructor Detail
-
StatusDetailImpl
public StatusDetailImpl() throws XACMLExceptionConstructs aStatusDetailobject- Throws:
XACMLException
-
StatusDetailImpl
public StatusDetailImpl(String xml) throws XACMLException
Constructs aStatusDetailobject from an XML string- Parameters:
xml- string representing aStatusDetailobject- Throws:
SAMLException- if the XML string could not be processedXACMLException
-
StatusDetailImpl
public StatusDetailImpl(Element element) throws XACMLException
Constructs aStatusDetailobject from an XML DOM element- Parameters:
element- XML DOM element representing aStatusDetailobject- Throws:
SAMLException- if the DOM element could not be processedXACMLException
-
-
Method Detail
-
getElement
public Element getElement()
- Specified by:
getElementin interfaceStatusDetail
-
setElement
public void setElement(Element element) throws XACMLException
- Specified by:
setElementin interfaceStatusDetail- Throws:
XACMLException
-
toXMLString
public String toXMLString() throws XACMLException
Returns a string representation- Specified by:
toXMLStringin interfaceStatusDetail- 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 interfaceStatusDetail- 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 interfaceStatusDetail- Returns:
trueif the object is mutable,falseotherwise
-
makeImmutable
public void makeImmutable()
Makes the object immutable- Specified by:
makeImmutablein interfaceStatusDetail
-
-