Package com.helger.schematron.pure.model
Class PSInclude
java.lang.Object
com.helger.schematron.pure.model.PSInclude
- All Implemented Interfaces:
IPSElement
A single Schematron include-element.
The required href attribute references an external well-formed XML document whose document element is a Schematron element of a type which is allowed by the grammar for Schematron at the current position in the schema. The external document is inserted in place of the include element.
The required href attribute references an external well-formed XML document whose document element is a Schematron element of a type which is allowed by the grammar for Schematron at the current position in the schema. The external document is inserted in place of the include element.
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.helger.xml.microdom.IMicroElementgetHref()booleanbooleanisValid(IPSErrorHandler aErrorHandler) Check if this element is specified completely.voidtoString()voidvalidateCompletely(IPSErrorHandler aErrorHandler) Check if this element is specified completely.
-
Constructor Details
-
PSInclude
public PSInclude()
-
-
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.
-
setHref
- Parameters:
sHref- The path to the object to include. May benull.
-
getHref
- Returns:
- The path to the object to include. May be
null.
-
getAsMicroElement
- Specified by:
getAsMicroElementin interfaceIPSElement- Returns:
- The XML representation of this element. Never
null.
-
toString
-