|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.balana.ctx.StatusDetail
public class StatusDetail
This class represents the StatusDetailType in the context schema. Because status detail is defined as a sequence of xs:any XML type, the data in this class must be generic, and it is up to the application developer to interpret the data appropriately.
Constructor Summary | |
---|---|
StatusDetail(List<MissingAttributeDetail> missingAttributeDetails)
Constructor that uses a List of MissingAttributeDetail s to define the status
detail. |
|
StatusDetail(String encoded)
Constructor that takes the text-encoded form of the XML to use as the status data. |
Method Summary | |
---|---|
String |
getEncoded()
Returns the text-encoded version of this data, if possible. |
static StatusDetail |
getInstance(Node root)
Creates an instance of a StatusDetail object based on the given DOM root node. |
List<MissingAttributeDetail> |
getMissingAttributeDetails()
Gets List of MissingAttributeDetail elements |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatusDetail(List<MissingAttributeDetail> missingAttributeDetails) throws IllegalArgumentException
List
of MissingAttributeDetail
s to define the status
detail. This is a common form of detail data, and can be used for things like providing the
information included with the missing-attribute status code.
missingAttributeDetails
- a List
of MissingAttributeDetail
s
IllegalArgumentException
- if there is a problem encoding the MissingAttributeDetail
spublic StatusDetail(String encoded) throws ParsingException
StatusDetail
XML tag, and the resulting
text must be valid XML or a ParsingException
will be thrown.
encoded
- a non-null String
that encodes the status detail
ParsingException
- if the encoded text is invalid XMLMethod Detail |
---|
public static StatusDetail getInstance(Node root) throws ParsingException
StatusDetail
object based on the given DOM root node.
The node must be a valid StatusDetailType root, or else a ParsingException
is
thrown.
root
- the DOM root of the StatusDetailType XML type
StatusDetail
object
ParsingException
- if the root node is invalidpublic List<MissingAttributeDetail> getMissingAttributeDetails()
MissingAttributeDetail
elements
List
of MissingAttributeDetail
public String getEncoded() throws IllegalStateException
String
form
constructor was used, this will just be the original text wrapped with the StatusData tag. If
the List
form constructor was used, it will be the encoded attribute data. If
this was created using the getInstance
method, then getEncoded
will
throw an exception.
IllegalStateException
- if this object was created using the getInstance
method
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |