@NotThreadSafe public class PSDiagnostics extends Object implements IPSElement, IPSOptionalElement, IPSHasForeignElements, IPSHasIncludes
| Constructor and Description |
|---|
PSDiagnostics() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDiagnostic(PSDiagnostic aDiagnostic) |
void |
addForeignAttribute(String sAttrName,
String sAttrValue) |
void |
addForeignElement(com.helger.xml.microdom.IMicroElement aForeignElement) |
void |
addInclude(PSInclude aInclude)
Add an include to this object.
|
com.helger.commons.collection.ext.ICommonsList<PSDiagnostic> |
getAllDiagnostics() |
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<PSInclude> |
getAllIncludes() |
com.helger.xml.microdom.IMicroElement |
getAsMicroElement() |
PSDiagnostic |
getDiagnosticOfID(String sID) |
boolean |
hasAnyInclude() |
boolean |
hasForeignAttributes() |
boolean |
hasForeignElements() |
boolean |
isMinimal() |
boolean |
isValid(IPSErrorHandler aErrorHandler)
Check if this element is specified completely.
|
String |
toString() |
void |
validateCompletely(IPSErrorHandler aErrorHandler)
Check if this element is specified completely.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddForeignElementsaddForeignAttributespublic 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 void addInclude(@Nonnull PSInclude aInclude)
IPSHasIncludesaddInclude in interface IPSHasIncludesaInclude - The include to be added. May not be null.public boolean hasAnyInclude()
hasAnyInclude in interface IPSHasIncludestrue if at least one include is present in this
object.@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<PSInclude> getAllIncludes()
getAllIncludes in interface IPSHasIncludesnull.public void addDiagnostic(@Nonnull PSDiagnostic aDiagnostic)
@Nullable public PSDiagnostic getDiagnosticOfID(@Nullable String sID)
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<PSDiagnostic> getAllDiagnostics()
@Nonnull public com.helger.xml.microdom.IMicroElement getAsMicroElement()
getAsMicroElement in interface IPSElementnull.Copyright © 2014–2016 Philip Helger. All rights reserved.