@NotThreadSafe public class PSActive extends Object implements IPSClonableElement<PSActive>, IPSHasForeignElements, IPSHasMixedContent
PSActive
elements are only references from PSPhase
elements.Constructor and Description |
---|
PSActive() |
Modifier and Type | Method and Description |
---|---|
void |
addDir(PSDir aDir) |
void |
addEmph(PSEmph aEmph) |
void |
addForeignAttribute(String sAttrName,
String sAttrValue) |
void |
addForeignElement(com.helger.xml.microdom.IMicroElement aForeignElement) |
void |
addSpan(PSSpan aSpan) |
void |
addText(String sText)
Add a new text element.
|
com.helger.commons.collection.ext.ICommonsList<Object> |
getAllContentElements() |
com.helger.commons.collection.ext.ICommonsList<PSDir> |
getAllDirs() |
com.helger.commons.collection.ext.ICommonsList<PSEmph> |
getAllEmphs() |
com.helger.commons.collection.ext.ICommonsOrderedMap<String,String> |
getAllForeignAttributes() |
com.helger.commons.collection.ext.ICommonsList<com.helger.xml.microdom.IMicroElement> |
getAllForeignElements() |
com.helger.commons.collection.ext.ICommonsList<PSSpan> |
getAllSpans() |
com.helger.commons.collection.ext.ICommonsList<String> |
getAllTexts() |
com.helger.xml.microdom.IMicroElement |
getAsMicroElement() |
PSActive |
getClone() |
String |
getPattern() |
boolean |
hasAnyText() |
boolean |
hasForeignAttributes() |
boolean |
hasForeignElements() |
boolean |
isMinimal() |
boolean |
isValid(IPSErrorHandler aErrorHandler)
Check if this element is specified completely.
|
void |
setPattern(String sPattern) |
String |
toString() |
void |
validateCompletely(IPSErrorHandler aErrorHandler)
Check if this element is specified completely.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addForeignElements
addForeignAttributes
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 addForeignElement(@Nonnull com.helger.xml.microdom.IMicroElement aForeignElement)
addForeignElement
in interface IPSHasForeignElements
public boolean hasForeignElements()
hasForeignElements
in interface IPSHasForeignElements
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<com.helger.xml.microdom.IMicroElement> getAllForeignElements()
getAllForeignElements
in interface IPSHasForeignElements
public void addForeignAttribute(@Nonnull String sAttrName, @Nonnull String sAttrValue)
addForeignAttribute
in interface IPSHasForeignAttributes
public boolean hasForeignAttributes()
hasForeignAttributes
in interface IPSHasForeignAttributes
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsOrderedMap<String,String> getAllForeignAttributes()
getAllForeignAttributes
in interface IPSHasForeignAttributes
public void setPattern(@Nullable String sPattern)
sPattern
- The ID of the pattern to set active.@Nullable public String getPattern()
PSPattern
to be marked active. May be
null
.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 @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<PSDir> getAllDirs()
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<PSEmph> getAllEmphs()
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<PSSpan> getAllSpans()
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<Object> getAllContentElements()
getAllContentElements
in interface IPSHasMixedContent
String
, PSDir
, PSEmph
and
PSSpan
elements.@Nonnull public com.helger.xml.microdom.IMicroElement getAsMicroElement()
getAsMicroElement
in interface IPSElement
null
.@Nonnull public PSActive getClone()
getClone
in interface com.helger.commons.lang.ICloneable<PSActive>
Copyright © 2014–2016 Philip Helger. All rights reserved.