Package com.helger.schematron.pure.model
Class PSEmph
java.lang.Object
com.helger.schematron.pure.model.PSEmph
- All Implemented Interfaces:
com.helger.commons.lang.ICloneable<PSEmph>,IPSClonableElement<PSEmph>,IPSElement,IPSHasTexts,IPSOptionalElement
@NotThreadSafe
public class PSEmph
extends Object
implements IPSClonableElement<PSEmph>, IPSOptionalElement, IPSHasTexts
A single Schematron emph-element.
A portion of text that should be rendered with some emphasis.
An implementation is not required to make use of this element.
A portion of text that should be rendered with some emphasis.
An implementation is not required to make use of this element.
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a new text element.com.helger.commons.collection.impl.ICommonsList<String>com.helger.xml.microdom.IMicroElementgetClone()booleanbooleanbooleanisValid(IPSErrorHandler aErrorHandler) Check if this element is specified completely.toString()voidvalidateCompletely(IPSErrorHandler aErrorHandler) Check if this element is specified completely.
-
Constructor Details
-
PSEmph
public PSEmph()
-
-
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.
-
addText
Description copied from interface:IPSHasTextsAdd a new text element.- Specified by:
addTextin interfaceIPSHasTexts- Parameters:
sText- The text to be added. May not benull.
-
hasAnyText
public boolean hasAnyText()- Specified by:
hasAnyTextin interfaceIPSHasTexts- Returns:
trueif at least one text element is contained,falseif not
-
getAllTexts
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<String> getAllTexts()- Specified by:
getAllTextsin interfaceIPSHasTexts- Returns:
- A copy of all contained text elements. Never
null.
-
getAsText
-
getAsMicroElement
- Specified by:
getAsMicroElementin interfaceIPSElement- Returns:
- The XML representation of this element. Never
null.
-
getClone
- Specified by:
getClonein interfacecom.helger.commons.lang.ICloneable<PSEmph>
-
toString
-