@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.
|
List<String> |
getAllTexts() |
com.phloc.commons.microdom.IMicroElement |
getAsMicroElement() |
String |
getAsText() |
PSEmph |
getClone() |
boolean |
hasAnyText() |
boolean |
isMinimal() |
boolean |
isValid(com.phloc.commons.log.InMemoryLogger aLogger) |
String |
toString() |
public boolean isValid(@Nonnull com.phloc.commons.log.InMemoryLogger aLogger)
isValid in interface IPSElementaLogger - The logger 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 boolean isMinimal()
isMinimal in interface IPSElementtrue if this element conforms to the Schematron
minimal syntax, false otherwise.public void addText(@Nonnull@Nonempty String sText)
IPSHasTextsaddText in interface IPSHasTextssText - The text to be added. May not be null.public boolean hasAnyText()
hasAnyText in interface IPSHasTextstrue if at least one text element is contained,
false if not@Nonnull @ReturnsMutableCopy public List<String> getAllTexts()
getAllTexts in interface IPSHasTextsnull.@Nonnull public com.phloc.commons.microdom.IMicroElement getAsMicroElement()
getAsMicroElement in interface IPSElementnull.@Nonnull public PSEmph getClone()
getClone in interface com.phloc.commons.ICloneable<PSEmph>Copyright © 2006–2014 phloc systems. All rights reserved.