Package com.tridion.meta
Class Category
java.lang.Object
com.tridion.meta.Category
The Category class contains a list of keywords.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKeyword(Keyword keyword) This allows addition of a keyword to the collection of keywords for this category.Keyword[]String[]Returns a string array of Keywords that are part of this Category.getName()Returns the name of this Category.voidsetKeywords(Keyword[] keywords) This allows setting of an array of keywords.voidsetKeywords(String[] keywordNames) Sets the Keywords for this Category to a new value.voidSets the name of this Category to a new value.
-
Constructor Details
-
Category
public Category()
-
-
Method Details
-
getName
Returns the name of this Category.- Returns:
- A String containing the name of this Category.
-
setName
Sets the name of this Category to a new value.- Parameters:
name- The new name for this Category.
-
getKeywords
Returns a string array of Keywords that are part of this Category.- Returns:
- a String array of keywords.
-
getKeywordList
-
setKeywords
Sets the Keywords for this Category to a new value.- Parameters:
keywordNames- The new array of Keywords.
-
setKeywords
This allows setting of an array of keywords.- Parameters:
keywords- The keywords to set for this category
-
addKeyword
This allows addition of a keyword to the collection of keywords for this category.- Parameters:
keyword- The keyword to add to the collection
-