Class RowDef

  • All Implemented Interfaces:
    java.io.Serializable, Def

    public class RowDef
    extends java.lang.Object
    implements Def, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RowDef()  
      RowDef​(java.lang.String label, java.lang.String... categories)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCategory​(java.lang.String category)  
      void addCategory​(Category category)  
      boolean containsCategory​(java.lang.String name)
      Checks whether this column/row def uses the given category.
      boolean equals​(java.lang.Object obj)  
      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.
      int hashCode()  
      boolean removeCategory​(Category category)  
      void setCategories​(java.util.List<Category> categories)  
      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
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RowDef

        public RowDef()
      • RowDef

        public RowDef​(java.lang.String label,
                      java.lang.String... categories)
    • Method Detail

      • getLabel

        public java.lang.String getLabel()
        Description copied from interface: Def
        Returns the label of this column/row def.
        Specified by:
        getLabel in interface Def
        Returns:
        the label
      • setLabel

        public void setLabel​(java.lang.String label)
        Description copied from interface: Def
        Sets the label of this column/row def
        Specified by:
        setLabel in interface Def
        Parameters:
        label - the label to be used
      • getReportCategory

        public java.util.Optional<java.lang.String> getReportCategory()
        Description copied from interface: Def
        Returns the report-category attribute of this column/row def.
        Specified by:
        getReportCategory in interface Def
        Returns:
        the report-category attribute
      • setReportCategory

        public void setReportCategory​(java.lang.String reportCategory)
        Description copied from interface: Def
        Sets the report-category attribute of this column/row def
        Specified by:
        setReportCategory in interface Def
        Parameters:
        reportCategory - the report-category attribute to be used
      • getCategories

        public java.util.List<Category> getCategories()
        Description copied from interface: Def
        Returns the list of categories used by this column/row def.
        Specified by:
        getCategories in interface Def
        Returns:
        the list of categories
      • setCategories

        public void setCategories​(java.util.List<Category> categories)
      • addCategory

        public void addCategory​(Category category)
      • addCategory

        public void addCategory​(java.lang.String category)
      • removeCategory

        public boolean removeCategory​(Category category)
      • getCategoryNames

        public java.util.Set<java.lang.String> getCategoryNames()
        Description copied from interface: Def
        Returns a set of category names used by this column/row def.
        Specified by:
        getCategoryNames in interface Def
        Returns:
        the set of category names
      • containsCategory

        public boolean containsCategory​(java.lang.String name)
        Description copied from interface: Def
        Checks whether this column/row def uses the given category.
        Specified by:
        containsCategory in interface Def
        Parameters:
        name - the nam eof the category to be checked
        Returns:
        true, if used by this column/row def, false otherwise
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object