Package com.helger.schematron.pure.model
Interface IPSHasID
- All Known Implementing Classes:
PSAssertReport,PSDiagnostic,PSP,PSPattern,PSPhase,PSRule,PSSchema
public interface IPSHasID
Base interface for all elements that may have an ID.
IHasID<String> is not used here, because it requires an ID
to be present!- Author:
- Philip Helger
-
Method Summary
-
Method Details
-
getID
- Returns:
- The optional ID of this element. May be
null.
-
hasID
default boolean hasID()- Returns:
trueif an ID is present,falseotherwise.
-
setID
Set an ID for this object.- Parameters:
sID- The ID to be set. May benull.
-