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

    Modifier and Type
    Method
    Description
     
    default boolean
     
    void
    Set an ID for this object.
  • Method Details

    • getID

      @Nullable String getID()
      Returns:
      The optional ID of this element. May be null.
    • hasID

      default boolean hasID()
      Returns:
      true if an ID is present, false otherwise.
    • setID

      void setID(@Nullable String sID)
      Set an ID for this object.
      Parameters:
      sID - The ID to be set. May be null.