Class StatusCodeImpl
- java.lang.Object
-
- com.sun.identity.saml2.protocol.impl.StatusCodeImpl
-
- All Implemented Interfaces:
StatusCode
public class StatusCodeImpl extends Object implements StatusCode
This class defines methods forStatusCodeelement.
-
-
Constructor Summary
Constructors Constructor Description StatusCodeImpl()Constructs theStatusCodeObject.StatusCodeImpl(String xmlString)Constructs theStatusCodeObject.StatusCodeImpl(Element element)Constructs theStatusCodeObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatusCodegetStatusCode()Returns the value of the statusCode property.StringgetValue()Returns the status code value of the value property.booleanisMutable()Returns value true if object is mutable.voidmakeImmutable()Makes this object immutable.voidsetStatusCode(StatusCode value)Sets the value of the statusCode property.voidsetValue(String value)Sets the status code value of the value property.StringtoXMLString()Returns theStatusCodein an XML document String format based on theStatusCodeschema described above.StringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns theStatusCodein an XML document String format based on theStatusCodeschema described above.
-
-
-
Constructor Detail
-
StatusCodeImpl
public StatusCodeImpl()
Constructs theStatusCodeObject.
-
StatusCodeImpl
public StatusCodeImpl(Element element) throws SAML2Exception
Constructs theStatusCodeObject.- Parameters:
element- the Document Element ofStatusCodeobject.- Throws:
SAML2Exception- ifStatusCodecannot be created.
-
StatusCodeImpl
public StatusCodeImpl(String xmlString) throws SAML2Exception
Constructs theStatusCodeObject.- Parameters:
xmlString- the XML String representation of this object.- Throws:
SAML2Exception- ifStatusCodecannot be created.
-
-
Method Detail
-
getStatusCode
public StatusCode getStatusCode()
Returns the value of the statusCode property.- Specified by:
getStatusCodein interfaceStatusCode- Returns:
- the value of the statusCode property
- See Also:
setStatusCode(StatusCode)
-
setStatusCode
public void setStatusCode(StatusCode value) throws SAML2Exception
Sets the value of the statusCode property.- Specified by:
setStatusCodein interfaceStatusCode- Parameters:
value- the value of the statusCode property to be set- Throws:
SAML2Exception- if the object is immutable- See Also:
getStatusCode()
-
getValue
public String getValue()
Returns the status code value of the value property.- Specified by:
getValuein interfaceStatusCode- Returns:
- the value of the value property
- See Also:
setValue(String)
-
setValue
public void setValue(String value) throws SAML2Exception
Sets the status code value of the value property.- Specified by:
setValuein interfaceStatusCode- Parameters:
value- the value of the value property to be set- Throws:
SAML2Exception- if the object is immutable- See Also:
getValue()
-
toXMLString
public String toXMLString() throws SAML2Exception
Returns theStatusCodein an XML document String format based on theStatusCodeschema described above.- Specified by:
toXMLStringin interfaceStatusCode- Returns:
- An XML String representing the
StatusCode. - Throws:
SAML2Exception- if some error occurs during conversion toString.
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Returns theStatusCodein an XML document String format based on theStatusCodeschema described above.- 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 XML String representing the
StatusCode. - Throws:
SAML2Exception- if some error occurs during conversion toString.
-
makeImmutable
public void makeImmutable()
Makes this object immutable.- Specified by:
makeImmutablein interfaceStatusCode
-
isMutable
public boolean isMutable()
Returns value true if object is mutable.- Specified by:
isMutablein interfaceStatusCode- Returns:
- true if object is mutable.
-
-