@NotThreadSafe public class PSEmph extends Object implements IPSClonableElement<PSEmph>, IPSOptionalElement, IPSHasTexts
Constructor and Description |
---|
PSEmph() |
Modifier and Type | Method and Description |
---|---|
void |
addText(String sText)
Add a new text element.
|
com.helger.commons.collection.ext.ICommonsList<String> |
getAllTexts() |
com.helger.xml.microdom.IMicroElement |
getAsMicroElement() |
String |
getAsText() |
PSEmph |
getClone() |
boolean |
hasAnyText() |
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.
|
public boolean isValid(@Nonnull IPSErrorHandler aErrorHandler)
IPSElement
isValid
in interface IPSElement
aErrorHandler
- 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)
IPSElement
validateCompletely
in interface IPSElement
aErrorHandler
- The error handler where the error details are stored. May not be
null
.public boolean isMinimal()
isMinimal
in interface IPSElement
true
if this element conforms to the Schematron
minimal syntax, false
otherwise.public void addText(@Nonnull @Nonempty String sText)
IPSHasTexts
addText
in interface IPSHasTexts
sText
- The text to be added. May not be null
.public boolean hasAnyText()
hasAnyText
in interface IPSHasTexts
true
if at least one text element is contained,
false
if not@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<String> getAllTexts()
getAllTexts
in interface IPSHasTexts
null
.@Nonnull public com.helger.xml.microdom.IMicroElement getAsMicroElement()
getAsMicroElement
in interface IPSElement
null
.@Nonnull public PSEmph getClone()
getClone
in interface com.helger.commons.lang.ICloneable<PSEmph>
Copyright © 2014–2017 Philip Helger. All rights reserved.