Package com.helger.schematron.pure.model
Class PSDiagnostics
java.lang.Object
com.helger.schematron.pure.model.PSDiagnostics
- All Implemented Interfaces:
IPSElement,IPSHasForeignAttributes,IPSHasForeignElements,IPSHasIncludes,IPSOptionalElement
@NotThreadSafe
public class PSDiagnostics
extends Object
implements IPSElement, IPSOptionalElement, IPSHasForeignElements, IPSHasIncludes
A single Schematron diagnostics-element.
A section containing individual diagnostic elements.
An implementation is not required to make use of this element.
A section containing individual diagnostic elements.
An implementation is not required to make use of this element.
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDiagnostic(PSDiagnostic aDiagnostic) voidaddForeignAttribute(String sAttrName, String sAttrValue) voidaddForeignElement(com.helger.xml.microdom.IMicroElement aForeignElement) voidaddInclude(PSInclude aInclude) Add an include to this object.com.helger.commons.collection.impl.ICommonsList<PSDiagnostic>com.helger.commons.collection.impl.ICommonsList<com.helger.xml.microdom.IMicroElement>com.helger.commons.collection.impl.ICommonsList<PSInclude>com.helger.xml.microdom.IMicroElementgetDiagnosticOfID(String sID) booleanbooleanbooleanbooleanbooleanisValid(IPSErrorHandler aErrorHandler) Check if this element is specified completely.toString()voidvalidateCompletely(IPSErrorHandler aErrorHandler) Check if this element is specified completely.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.schematron.pure.model.IPSHasForeignAttributes
addForeignAttributesMethods inherited from interface com.helger.schematron.pure.model.IPSHasForeignElements
addForeignElements
-
Constructor Details
-
PSDiagnostics
public PSDiagnostics()
-
-
Method Details
-
isValid
Description copied from interface:IPSElementCheck if this element is specified completely. This method stops at the first encountered error.- Specified by:
isValidin interfaceIPSElement- Parameters:
aErrorHandler- The error handler where the error details are stored. May not benull.- Returns:
trueif all mandatory fields are set and the element is valid,falseotherwise.
-
validateCompletely
Description copied from interface:IPSElementCheck if this element is specified completely. This method performs all validations independent of the number of encountered error.- Specified by:
validateCompletelyin interfaceIPSElement- Parameters:
aErrorHandler- The error handler where the error details are stored. May not benull.
-
isMinimal
public boolean isMinimal()- Specified by:
isMinimalin interfaceIPSElement- Returns:
trueif this element conforms to the Schematron minimal syntax,falseotherwise.
-
addForeignElement
- Specified by:
addForeignElementin interfaceIPSHasForeignElements
-
hasForeignElements
public boolean hasForeignElements()- Specified by:
hasForeignElementsin interfaceIPSHasForeignElements
-
getAllForeignElements
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<com.helger.xml.microdom.IMicroElement> getAllForeignElements()- Specified by:
getAllForeignElementsin interfaceIPSHasForeignElements
-
addForeignAttribute
- Specified by:
addForeignAttributein interfaceIPSHasForeignAttributes
-
hasForeignAttributes
public boolean hasForeignAttributes()- Specified by:
hasForeignAttributesin interfaceIPSHasForeignAttributes
-
getAllForeignAttributes
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsOrderedMap<String,String> getAllForeignAttributes()- Specified by:
getAllForeignAttributesin interfaceIPSHasForeignAttributes
-
addInclude
Description copied from interface:IPSHasIncludesAdd an include to this object.- Specified by:
addIncludein interfaceIPSHasIncludes- Parameters:
aInclude- The include to be added. May not benull.
-
hasAnyInclude
public boolean hasAnyInclude()- Specified by:
hasAnyIncludein interfaceIPSHasIncludes- Returns:
trueif at least one include is present in this object.
-
getAllIncludes
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<PSInclude> getAllIncludes()- Specified by:
getAllIncludesin interfaceIPSHasIncludes- Returns:
- A list of all contained includes. Never
null.
-
addDiagnostic
-
getDiagnosticOfID
-
getAllDiagnostics
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<PSDiagnostic> getAllDiagnostics() -
getAsMicroElement
- Specified by:
getAsMicroElementin interfaceIPSElement- Returns:
- The XML representation of this element. Never
null.
-
toString
-