Class Category

java.lang.Object
com.tridion.meta.Category

public class Category extends Object
The Category class contains a list of keywords.
  • Constructor Details

    • Category

      public Category()
  • Method Details

    • getName

      public String getName()
      Returns the name of this Category.
      Returns:
      A String containing the name of this Category.
    • setName

      public void setName(String name)
      Sets the name of this Category to a new value.
      Parameters:
      name - The new name for this Category.
    • getKeywords

      public String[] getKeywords()
      Returns a string array of Keywords that are part of this Category.
      Returns:
      a String array of keywords.
    • getKeywordList

      public Keyword[] getKeywordList()
    • setKeywords

      public void setKeywords(String[] keywordNames)
      Sets the Keywords for this Category to a new value.
      Parameters:
      keywordNames - The new array of Keywords.
    • setKeywords

      public void setKeywords(Keyword[] keywords)
      This allows setting of an array of keywords.
      Parameters:
      keywords - The keywords to set for this category
    • addKeyword

      public void addKeyword(Keyword keyword)
      This allows addition of a keyword to the collection of keywords for this category.
      Parameters:
      keyword - The keyword to add to the collection