org.apache.lucene.util.AttributeCategoryAttributeImplpublic interface CategoryAttribute
extends org.apache.lucene.util.Attribute
CategoryPath
and additional properties.| Modifier and Type | Method | Description |
|---|---|---|
void |
addProperty(CategoryProperty property) |
Add a property.
|
void |
clear() |
Resets this attribute to its initial value: a null category path and no
properties.
|
void |
clearProperties() |
Clear all properties.
|
CategoryAttribute |
clone() |
Clone this
CategoryAttribute. |
CategoryPath |
getCategoryPath() |
Returns the value of this attribute: a category path.
|
CategoryProperty |
getProperty(Class<? extends CategoryProperty> propertyClass) |
Get a property of a certain property class.
|
CategoryProperty |
getProperty(Collection<Class<? extends CategoryProperty>> propertyClasses) |
Get a property of one of given property classes.
|
Set<Class<? extends CategoryProperty>> |
getPropertyClasses() |
Get all the active property classes.
|
void |
remove(Class<? extends CategoryProperty> propertyClass) |
Remove an property of a certain property class.
|
void |
set(CategoryAttribute other) |
Set the content of this
CategoryAttribute from another
CategoryAttribute object. |
void |
setCategoryPath(CategoryPath cp) |
Sets the category path value of this attribute.
|
void set(CategoryAttribute other)
CategoryAttribute from another
CategoryAttribute object.other - The CategoryAttribute to take the content from.void setCategoryPath(CategoryPath cp)
cp - A category path. May not be null.CategoryPath getCategoryPath()
void addProperty(CategoryProperty property) throws UnsupportedOperationException
getProperty(Class) with this property class .property - The property to add.UnsupportedOperationException - When attempting to add a property of a class that was added
before and merge is prohibited.CategoryProperty getProperty(Class<? extends CategoryProperty> propertyClass)
propertyClass - The required property class.CategoryProperty getProperty(Collection<Class<? extends CategoryProperty>> propertyClasses)
propertyClasses - The property classes.Set<Class<? extends CategoryProperty>> getPropertyClasses()
null if
there are no properties.CategoryAttribute clone()
CategoryAttribute.CategoryAttribute.void clear()
void clearProperties()
void remove(Class<? extends CategoryProperty> propertyClass)
propertyClass - The required property class.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.