public interface ClassificationCategory
ClassificationCategory
is the building unit of a Classification
as a classification
is made of categories arranged in a tree-like structure.
A category:
- has a parent category, except for the root category which is the root of the category tree.
- can have sub categories.
- can have one or more ClassificationAttribute
s.
- can have Product
s assigned to it.
Since 6.2Modifier and Type | Method and Description |
---|---|
ClassificationAttribute |
getAttribute(java.lang.String name)
Returns the classification attribute defined by the given name.
|
java.util.List<ClassificationAttribute> |
getAttributes()
Returns an ordered list of all the attributes by taking the direct attributes of this category and those
defined for the ancestor categories.
|
Classification |
getClassification()
Returns the classification which this category belongs to.
|
java.lang.String |
getDescription()
Returns the description of the category.
|
java.util.List<ClassificationAttribute> |
getDirectAttributes()
Returns an ordered list of attributes that are directly defined for this category.
|
java.lang.Iterable<Product> |
getDirectProducts()
Returns an iterable of products that are directly assigned to this category.
|
ClassificationCategory |
getParentCategory()
Returns the parent category.
|
java.lang.String |
getPath()
Returns the path of the category if represented in the repository.
|
java.lang.Iterable<Product> |
getProducts()
Returns an iterable of the products belonging to this category.
|
java.util.List<ClassificationCategory> |
getSubCategories()
Returns the sub categories.
|
ClassificationCategory |
getSubCategory(java.lang.String name)
Returns the classification category defined by the given name.
|
java.lang.String |
getTitle()
Returns the title of the category.
|
boolean |
hasDirectProduct(Product product)
Returns true if the product is directly assigned to the category.
|
boolean |
hasProduct(Product product)
Returns true if the product belongs to the category.
|
boolean |
isRootCategory()
Returns true if the category is the root category of the classification.
|
java.lang.String getTitle()
java.lang.String getDescription()
java.lang.String getPath()
Classification getClassification()
boolean isRootCategory()
java.util.List<ClassificationAttribute> getDirectAttributes()
getAttributes()
java.util.List<ClassificationAttribute> getAttributes()
ClassificationAttribute getAttribute(java.lang.String name)
name
- The attribute nameClassificationAttribute
or null if it does not existClassificationCategory getParentCategory()
java.util.List<ClassificationCategory> getSubCategories()
ClassificationCategory getSubCategory(java.lang.String name)
name
- The category nameClassificationCategory
or null if it does not existjava.lang.Iterable<Product> getDirectProducts()
java.lang.Iterable<Product> getProducts()
boolean hasDirectProduct(Product product)
product
- product to be checkedboolean hasProduct(Product product)
product
- product to be checked"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"