public final class AssertOrReport extends java.lang.Object implements XMLStreamable
# only failed assertions are reported
failed-assert =
element failed-assert {
attlist.assert-and-report, diagnostic-reference*, property-reference*, human-text
}
# only successful asserts are reported
successful-report =
element successful-report {
attlist.assert-and-report, diagnostic-reference*, property-reference*, human-text
}
attlist.assert-and-report =
attribute id { xsd:ID }?,
attribute location { text },
attribute test { text },
attribute role { xsd:NMTOKEN }?,
attribute flag { xsd:NMTOKEN }?
| Constructor and Description |
|---|
AssertOrReport() |
| Modifier and Type | Method and Description |
|---|---|
DiagnosticReference |
getDiagnosticReference(java.lang.String diagnostic) |
java.util.List<DiagnosticReference> |
getDiagnosticReferences() |
java.lang.String |
getDiagnosticText(java.lang.String diagnostic) |
java.lang.String |
getFlag() |
java.lang.String |
getId() |
java.lang.String |
getLocation() |
PropertyReference |
getPropertyReference(java.lang.String property) |
java.util.List<PropertyReference> |
getPropertyReferences() |
java.lang.String |
getPropertyText(java.lang.String property) |
java.lang.String |
getRole() |
java.lang.String |
getTest() |
HumanText |
getText() |
boolean |
isFailedAssert() |
java.lang.String |
toMessageString() |
java.lang.String |
toMessageString(boolean includeDiagnostics) |
void |
toXMLStream(javax.xml.stream.XMLStreamWriter xml) |
public boolean isFailedAssert()
public java.lang.String getId()
public java.lang.String getLocation()
public java.lang.String getTest()
public java.lang.String getRole()
public java.lang.String getFlag()
public java.util.List<DiagnosticReference> getDiagnosticReferences()
public java.util.List<PropertyReference> getPropertyReferences()
public PropertyReference getPropertyReference(java.lang.String property)
public DiagnosticReference getDiagnosticReference(java.lang.String diagnostic)
public java.lang.String getPropertyText(java.lang.String property)
public java.lang.String getDiagnosticText(java.lang.String diagnostic)
public HumanText getText()
public java.lang.String toMessageString()
public java.lang.String toMessageString(boolean includeDiagnostics)
public void toXMLStream(javax.xml.stream.XMLStreamWriter xml)
throws javax.xml.stream.XMLStreamException
toXMLStream in interface XMLStreamablejavax.xml.stream.XMLStreamException