@NotThreadSafe public class PSAssertReport extends Object implements IPSElement, IPSHasFlag, IPSHasForeignElements, IPSHasMixedContent, IPSHasID, IPSHasRichGroup, IPSHasLinkableGroup
| Constructor and Description |
|---|
PSAssertReport(boolean bIsAssert) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDir(PSDir aDir) |
void |
addEmph(PSEmph aEmph) |
void |
addForeignAttribute(String sAttrName,
String sAttrValue) |
void |
addForeignElement(com.helger.xml.microdom.IMicroElement aForeignElement) |
void |
addName(PSName aName) |
void |
addSpan(PSSpan aSpan) |
void |
addText(String sText)
Add a new text element.
|
void |
addValueOf(PSValueOf aValueOf) |
com.helger.commons.collection.ext.ICommonsList<Object> |
getAllContentElements() |
com.helger.commons.collection.ext.ICommonsList<String> |
getAllDiagnostics() |
com.helger.commons.collection.ext.ICommonsList<PSDir> |
getAllDirs() |
com.helger.commons.collection.ext.ICommonsList<PSEmph> |
getAllEmphs() |
com.helger.commons.collection.ext.ICommonsOrderedMap<String,String> |
getAllForeignAttributes() |
com.helger.commons.collection.ext.ICommonsList<com.helger.xml.microdom.IMicroElement> |
getAllForeignElements() |
com.helger.commons.collection.ext.ICommonsList<PSName> |
getAllNames() |
com.helger.commons.collection.ext.ICommonsList<PSSpan> |
getAllSpans() |
com.helger.commons.collection.ext.ICommonsList<String> |
getAllTexts() |
com.helger.commons.collection.ext.ICommonsList<PSValueOf> |
getAllValueOfs() |
com.helger.xml.microdom.IMicroElement |
getAsMicroElement() |
String |
getFlag()
The name of a Boolean flag variable.
|
String |
getID() |
PSLinkableGroup |
getLinkable() |
PSRichGroup |
getRich() |
String |
getTest() |
boolean |
hasAnyText() |
boolean |
hasForeignAttributes() |
boolean |
hasForeignElements() |
boolean |
isAssert() |
boolean |
isMinimal() |
boolean |
isReport() |
boolean |
isValid(IPSErrorHandler aErrorHandler)
Check if this element is specified completely.
|
void |
setDiagnostics(com.helger.commons.collection.ext.ICommonsList<String> aDiagnostics)
Set the diagnostics, as an IDREFS value (multiple IDREF values separated by
spaces)
|
void |
setDiagnostics(String sDiagnostics)
Set the diagnostics, as an IDREFS value (multiple IDREF values separated by
spaces)
|
void |
setFlag(String sFlag) |
void |
setID(String sID)
Set an ID for this object.
|
void |
setLinkable(PSLinkableGroup aLinkable)
Overwrite any existing linkable group.
|
void |
setRich(PSRichGroup aRich)
Overwrite any existing rich group.
|
void |
setTest(String sTest) |
String |
toString() |
void |
validateCompletely(IPSErrorHandler aErrorHandler)
Check if this element is specified completely.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddForeignElementsaddForeignAttributesgetRichClone, hasRichgetLinkableClone, hasLinkablepublic boolean isValid(@Nonnull IPSErrorHandler aErrorHandler)
IPSElementisValid in interface IPSElementaErrorHandler - The error handler where the error details are stored. May not be
null.true if all mandatory fields are set and the element
is valid, false otherwise.public void validateCompletely(@Nonnull IPSErrorHandler aErrorHandler)
IPSElementvalidateCompletely in interface IPSElementaErrorHandler - The error handler where the error details are stored. May not be
null.public boolean isMinimal()
isMinimal in interface IPSElementtrue if this element conforms to the Schematron
minimal syntax, false otherwise.public void addForeignElement(@Nonnull com.helger.xml.microdom.IMicroElement aForeignElement)
addForeignElement in interface IPSHasForeignElementspublic boolean hasForeignElements()
hasForeignElements in interface IPSHasForeignElements@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<com.helger.xml.microdom.IMicroElement> getAllForeignElements()
getAllForeignElements in interface IPSHasForeignElementspublic void addForeignAttribute(@Nonnull String sAttrName, @Nonnull String sAttrValue)
addForeignAttribute in interface IPSHasForeignAttributespublic boolean hasForeignAttributes()
hasForeignAttributes in interface IPSHasForeignAttributes@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsOrderedMap<String,String> getAllForeignAttributes()
getAllForeignAttributes in interface IPSHasForeignAttributespublic boolean isAssert()
public boolean isReport()
@Nullable public String getFlag()
IPSHasFlaggetFlag in interface IPSHasFlagpublic void setID(@Nullable String sID)
IPSHasIDpublic void setDiagnostics(@Nullable String sDiagnostics)
sDiagnostics - The value to be set. May be null.public void setDiagnostics(@Nullable com.helger.commons.collection.ext.ICommonsList<String> aDiagnostics)
aDiagnostics - The value to be set. May be null.@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<String> getAllDiagnostics()
PSDiagnostic elements.public void setRich(@Nullable PSRichGroup aRich)
IPSHasRichGroupsetRich in interface IPSHasRichGroupaRich - The new rich group to set. May be null.@Nullable public PSRichGroup getRich()
getRich in interface IPSHasRichGroupnull if none is
present.public void setLinkable(@Nullable PSLinkableGroup aLinkable)
IPSHasLinkableGroupsetLinkable in interface IPSHasLinkableGroupaLinkable - The new linkable group to set. May be null.@Nullable public PSLinkableGroup getLinkable()
getLinkable in interface IPSHasLinkableGroupnull if none is
present.public void addText(@Nonnull @Nonempty String sText)
IPSHasTextsaddText in interface IPSHasTextssText - The text to be added. May not be null.public boolean hasAnyText()
hasAnyText in interface IPSHasTextstrue if at least one text element is contained,
false if not@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<String> getAllTexts()
getAllTexts in interface IPSHasTextsnull.@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<PSName> getAllNames()
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<PSValueOf> getAllValueOfs()
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<PSEmph> getAllEmphs()
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<PSDir> getAllDirs()
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<PSSpan> getAllSpans()
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<Object> getAllContentElements()
getAllContentElements in interface IPSHasMixedContentString, PSName, PSValueOf,
PSEmph, PSDir and PSSpan elements.@Nonnull public com.helger.xml.microdom.IMicroElement getAsMicroElement()
getAsMicroElement in interface IPSElementnull.Copyright © 2014–2016 Philip Helger. All rights reserved.