Package com.helger.schematron.pure.model
Class PSValueOf
java.lang.Object
com.helger.schematron.pure.model.PSValueOf
- All Implemented Interfaces:
com.helger.commons.lang.ICloneable<PSValueOf>,IPSClonableElement<PSValueOf>,IPSElement,IPSHasForeignAttributes
@NotThreadSafe
public class PSValueOf
extends Object
implements IPSClonableElement<PSValueOf>, IPSHasForeignAttributes
A single Schematron value-of-element.
Finds or calculates values from the instance document to allow clearer assertions and diagnostics. The required select attribute is an expression evaluated in the current context that returns a string.
Variable references in the select attribute are resolved in the scope of the current schema, phase, pattern and rule.
An implementation which does not report natural-language assertions is not required to make use of this element.
Finds or calculates values from the instance document to allow clearer assertions and diagnostics. The required select attribute is an expression evaluated in the current context that returns a string.
Variable references in the select attribute are resolved in the scope of the current schema, phase, pattern and rule.
An implementation which does not report natural-language assertions is not required to make use of this element.
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddForeignAttribute(String sAttrName, String sAttrValue) com.helger.xml.microdom.IMicroElementgetClone()booleanbooleanbooleanisValid(IPSErrorHandler aErrorHandler) Check if this element is specified completely.static PSValueOfFactory method to create a newPSValueOfwith a certain "select" valuevoidSet the expression to retrieve the value oftoString()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
addForeignAttributes
-
Constructor Details
-
PSValueOf
public PSValueOf()
-
-
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.
-
getAllForeignAttributes
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsOrderedMap<String,String> getAllForeignAttributes()- Specified by:
getAllForeignAttributesin interfaceIPSHasForeignAttributes
-
hasForeignAttributes
public boolean hasForeignAttributes()- Specified by:
hasForeignAttributesin interfaceIPSHasForeignAttributes
-
addForeignAttribute
- Specified by:
addForeignAttributein interfaceIPSHasForeignAttributes
-
getSelect
- Returns:
- The select expression string. May be
null.
-
setSelect
Set the expression to retrieve the value of- Parameters:
sSelect- The select expression string. May benull.
-
getAsMicroElement
- Specified by:
getAsMicroElementin interfaceIPSElement- Returns:
- The XML representation of this element. Never
null.
-
getClone
- Specified by:
getClonein interfacecom.helger.commons.lang.ICloneable<PSValueOf>
-
toString
-
ofSelect
Factory method to create a newPSValueOfwith a certain "select" value- Parameters:
sSelect- The "select" value to be used. May benull.- Returns:
- Never
null. - Since:
- 6.2.3
-