|
Carrot2 v3.6.0-SNAPSHOT
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.util.attribute.metadata.CommonMetadata
org.carrot2.util.attribute.metadata.AttributeMetadata
public class AttributeMetadata
Human-readable metadata about an attribute. Metadata contains such elements as title, label and description.
| Field Summary |
|---|
| Fields inherited from class org.carrot2.util.attribute.metadata.CommonMetadata |
|---|
description, label, title |
| Constructor Summary | |
|---|---|
AttributeMetadata()
|
|
AttributeMetadata(String title,
String label,
String description)
|
|
AttributeMetadata(String title,
String label,
String description,
String group,
AttributeLevel level)
|
|
| Method Summary | |
|---|---|
String |
getGroup()
Returns the label of the group this attribute belongs to or null if
the attribute is not assigned to any group. |
AttributeLevel |
getLevel()
Returns the attribute level (basic, medium, advanced) or null if the
attribute has no level assigned. |
void |
setGroup(String group)
|
void |
setLevel(AttributeLevel level)
|
String |
toString()
|
| Methods inherited from class org.carrot2.util.attribute.metadata.CommonMetadata |
|---|
getDescription, getLabel, getLabelOrTitle, getTitle, setDescription, setLabel, setTitle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeMetadata()
public AttributeMetadata(String title,
String label,
String description)
public AttributeMetadata(String title,
String label,
String description,
String group,
AttributeLevel level)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getGroup()
null if
the attribute is not assigned to any group.
public void setGroup(String group)
public AttributeLevel getLevel()
null if the
attribute has no level assigned.
public void setLevel(AttributeLevel level)
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||