Interface Def

  • All Known Implementing Classes:
    ColumnDef, RowDef

    public interface Def
    Helper interface to handle similar column-def/row-def stuff.
    Author:
    Christian Pape
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean containsCategory​(java.lang.String name)
      Checks whether this column/row def uses the given category.
      java.util.List<Category> getCategories()
      Returns the list of categories used by this column/row def.
      java.util.Set<java.lang.String> getCategoryNames()
      Returns a set of category names used by this column/row def.
      java.lang.String getLabel()
      Returns the label of this column/row def.
      java.util.Optional<java.lang.String> getReportCategory()
      Returns the report-category attribute of this column/row def.
      void setLabel​(java.lang.String label)
      Sets the label of this column/row def
      void setReportCategory​(java.lang.String reportCategory)
      Sets the report-category attribute of this column/row def
    • Method Detail

      • getLabel

        java.lang.String getLabel()
        Returns the label of this column/row def.
        Returns:
        the label
      • getReportCategory

        java.util.Optional<java.lang.String> getReportCategory()
        Returns the report-category attribute of this column/row def.
        Returns:
        the report-category attribute
      • getCategories

        java.util.List<Category> getCategories()
        Returns the list of categories used by this column/row def.
        Returns:
        the list of categories
      • getCategoryNames

        java.util.Set<java.lang.String> getCategoryNames()
        Returns a set of category names used by this column/row def.
        Returns:
        the set of category names
      • setLabel

        void setLabel​(java.lang.String label)
        Sets the label of this column/row def
        Parameters:
        label - the label to be used
      • setReportCategory

        void setReportCategory​(java.lang.String reportCategory)
        Sets the report-category attribute of this column/row def
        Parameters:
        reportCategory - the report-category attribute to be used
      • containsCategory

        boolean containsCategory​(java.lang.String name)
        Checks whether this column/row def uses the given category.
        Parameters:
        name - the nam eof the category to be checked
        Returns:
        true, if used by this column/row def, false otherwise