Class Category

java.lang.Object
com.globalmentor.model.DefaultNamed<N>
com.globalmentor.model.DefaultComparableNamed<N>
com.globalmentor.model.DefaultComparableIDNamed<String,String>
io.guise.framework.Category
All Implemented Interfaces:
com.globalmentor.model.IDed<String>, com.globalmentor.model.Named<String>, Comparable<com.globalmentor.model.Named<String>>

public class Category extends com.globalmentor.model.DefaultComparableIDNamed<String,String>
A general category used in Guise.
Author:
Garret Wilson
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for a category with the same ID and name.
    Category(String id, String name)
    Constructor specifying the ID and name.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    Sets the categories.

    Methods inherited from class com.globalmentor.model.DefaultComparableIDNamed

    equals, getID, hashCode, toString

    Methods inherited from class com.globalmentor.model.DefaultComparableNamed

    compareTo

    Methods inherited from class com.globalmentor.model.DefaultNamed

    getName

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Constructor Details

    • Category

      public Category(String id)
      Constructor for a category with the same ID and name.
      Parameters:
      id - The ID of the category, which will also be used as the category's name.
    • Category

      public Category(String id, String name)
      Constructor specifying the ID and name.
      Parameters:
      id - The ID of the category.
      name - The name of the category.
  • Method Details

    • getCategories

      public Iterable<Category> getCategories()
      Returns:
      The read-only iterable of categories.
    • setCategories

      public void setCategories(List<Category> categories)
      Sets the categories.
      Parameters:
      categories - The list of new categories.