Interface IPSHasTexts

All Known Subinterfaces:
IPSHasMixedContent
All Known Implementing Classes:
PSActive, PSAssertReport, PSDiagnostic, PSDir, PSEmph, PSP, PSSpan, PSTitle

public interface IPSHasTexts
Base interface for all Schematron objects having text children (as Strings)
Author:
Philip Helger
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addText(String sText)
    Add a new text element.
    com.helger.commons.collection.impl.ICommonsList<String>
     
    boolean
     
  • Method Details

    • addText

      void addText(@Nonnull String sText)
      Add a new text element.
      Parameters:
      sText - The text to be added. May not be null.
    • hasAnyText

      boolean hasAnyText()
      Returns:
      true if at least one text element is contained, false if not
    • getAllTexts

      @Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsList<String> getAllTexts()
      Returns:
      A copy of all contained text elements. Never null.