@NotThreadSafe public class PSDiagnostics extends Object implements IPSElement, IPSOptionalElement, IPSHasForeignElements, IPSHasIncludes
Constructor and Description |
---|
PSDiagnostics() |
Modifier and Type | Method and Description |
---|---|
void |
addDiagnostic(PSDiagnostic aDiagnostic) |
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 |
addInclude(PSInclude aInclude)
Add an include to this object.
|
List<PSDiagnostic> |
getAllDiagnostics() |
Map<String,String> |
getAllForeignAttributes() |
List<com.helger.commons.microdom.IMicroElement> |
getAllForeignElements() |
List<PSInclude> |
getAllIncludes() |
com.helger.commons.microdom.IMicroElement |
getAsMicroElement() |
PSDiagnostic |
getDiagnosticOfID(String sID) |
boolean |
hasAnyInclude() |
boolean |
hasForeignAttributes() |
boolean |
hasForeignElements() |
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 addForeignElement(@Nonnull com.helger.commons.microdom.IMicroElement aForeignElement)
addForeignElement
in interface IPSHasForeignElements
public void addForeignElements(@Nonnull List<com.helger.commons.microdom.IMicroElement> aForeignElements)
addForeignElements
in interface IPSHasForeignElements
public boolean hasForeignElements()
hasForeignElements
in interface IPSHasForeignElements
@Nonnull @ReturnsMutableCopy public List<com.helger.commons.microdom.IMicroElement> getAllForeignElements()
getAllForeignElements
in interface IPSHasForeignElements
public void addForeignAttribute(@Nonnull String sAttrName, @Nonnull String sAttrValue)
addForeignAttribute
in interface IPSHasForeignAttributes
public void addForeignAttributes(@Nonnull Map<String,String> aForeignAttrs)
addForeignAttributes
in interface IPSHasForeignAttributes
public boolean hasForeignAttributes()
hasForeignAttributes
in interface IPSHasForeignAttributes
@Nonnull @ReturnsMutableCopy public Map<String,String> getAllForeignAttributes()
getAllForeignAttributes
in interface IPSHasForeignAttributes
public void addInclude(@Nonnull PSInclude aInclude)
IPSHasIncludes
addInclude
in interface IPSHasIncludes
aInclude
- The include to be added. May not be null
.public boolean hasAnyInclude()
hasAnyInclude
in interface IPSHasIncludes
true
if at least one include is present in this
object.@Nonnull @ReturnsMutableCopy public List<PSInclude> getAllIncludes()
getAllIncludes
in interface IPSHasIncludes
null
.public void addDiagnostic(@Nonnull PSDiagnostic aDiagnostic)
@Nullable public PSDiagnostic getDiagnosticOfID(@Nullable String sID)
@Nonnull @ReturnsMutableCopy public List<PSDiagnostic> getAllDiagnostics()
@Nonnull public com.helger.commons.microdom.IMicroElement getAsMicroElement()
getAsMicroElement
in interface IPSElement
null
.Copyright © 2014–2015 Philip Helger. All rights reserved.