@NotThreadSafe public class PSDiagnostic extends Object implements IPSClonableElement<PSDiagnostic>, IPSOptionalElement, IPSHasID, IPSHasForeignElements, IPSHasMixedContent, IPSHasRichGroup
| Constructor and Description |
|---|
PSDiagnostic() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDir(PSDir aDir) |
void |
addEmph(PSEmph aEmph) |
void |
addForeignAttribute(String sAttrName,
String sAttrValue) |
void |
addForeignAttributes(Map<String,String> aForeignAttrs) |
void |
addForeignElement(com.helger.commons.microdom.IMicroElement aForeignElement) |
void |
addForeignElements(List<com.helger.commons.microdom.IMicroElement> aForeignElements) |
void |
addSpan(PSSpan aSpan) |
void |
addText(String sText)
Add a new text element.
|
void |
addValueOf(PSValueOf aValueOf) |
List<Object> |
getAllContentElements() |
List<PSDir> |
getAllDirs() |
List<PSEmph> |
getAllEmphs() |
Map<String,String> |
getAllForeignAttributes() |
List<com.helger.commons.microdom.IMicroElement> |
getAllForeignElements() |
List<PSSpan> |
getAllSpans() |
List<String> |
getAllTexts() |
List<PSValueOf> |
getAllValueOfs() |
com.helger.commons.microdom.IMicroElement |
getAsMicroElement() |
PSDiagnostic |
getClone() |
String |
getID() |
PSRichGroup |
getRich() |
PSRichGroup |
getRichClone() |
boolean |
hasAnyText() |
boolean |
hasForeignAttributes() |
boolean |
hasForeignElements() |
boolean |
hasID() |
boolean |
hasRich() |
boolean |
isMinimal() |
boolean |
isValid(IPSErrorHandler aErrorHandler)
Check if this element is specified completely.
|
void |
setID(String sID)
Set an ID for this object.
|
void |
setRich(PSRichGroup aRich)
Overwrite any existing rich group.
|
String |
toString() |
void |
validateCompletely(IPSErrorHandler aErrorHandler)
Check if this element is specified completely.
|
public boolean isValid(@Nonnull IPSErrorHandler aErrorHandler)
IPSElementisValid in interface IPSElementaErrorHandler - 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)
IPSElementvalidateCompletely in interface IPSElementaErrorHandler - The error handler where the error details are stored. May not be
null.public boolean isMinimal()
isMinimal in interface IPSElementtrue if this element conforms to the Schematron
minimal syntax, false otherwise.public void addForeignElement(@Nonnull com.helger.commons.microdom.IMicroElement aForeignElement)
addForeignElement in interface IPSHasForeignElementspublic void addForeignElements(@Nonnull List<com.helger.commons.microdom.IMicroElement> aForeignElements)
addForeignElements in interface IPSHasForeignElementspublic boolean hasForeignElements()
hasForeignElements in interface IPSHasForeignElements@Nonnull @ReturnsMutableCopy public List<com.helger.commons.microdom.IMicroElement> getAllForeignElements()
getAllForeignElements in interface IPSHasForeignElementspublic void addForeignAttribute(@Nonnull String sAttrName, @Nonnull String sAttrValue)
addForeignAttribute in interface IPSHasForeignAttributespublic void addForeignAttributes(@Nonnull Map<String,String> aForeignAttrs)
addForeignAttributes in interface IPSHasForeignAttributespublic boolean hasForeignAttributes()
hasForeignAttributes in interface IPSHasForeignAttributes@Nonnull @ReturnsMutableCopy public Map<String,String> getAllForeignAttributes()
getAllForeignAttributes in interface IPSHasForeignAttributespublic void setID(@Nullable String sID)
IPSHasIDpublic boolean hasID()
public void setRich(@Nullable PSRichGroup aRich)
IPSHasRichGroupsetRich in interface IPSHasRichGroupaRich - The new rich group to set. May be null.public boolean hasRich()
hasRich in interface IPSHasRichGrouptrue if a rich group is present, false
otherwise.@Nullable public PSRichGroup getRich()
getRich in interface IPSHasRichGroupnull if none is
present.@Nullable public PSRichGroup getRichClone()
getRichClone in interface IPSHasRichGroupnull if no rich group
is present at this object.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 @ReturnsMutableCopy public List<Object> getAllContentElements()
getAllContentElements in interface IPSHasMixedContentString, PSValueOf, PSEmph,
PSDir and PSSpan elements.@Nonnull public com.helger.commons.microdom.IMicroElement getAsMicroElement()
getAsMicroElement in interface IPSElementnull.@Nonnull public PSDiagnostic getClone()
getClone in interface com.helger.commons.lang.ICloneable<PSDiagnostic>Copyright © 2014–2015 Philip Helger. All rights reserved.