|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Style
An indexing style. A set of indexing sytles make up a IndexRule
, which is then applied
to an IndexBuildItem
in order to assign indexing behavior to an annotation type.
We support an open-ended schema for styles. Each style has a name
and zero or
more getAttributes()
, where each attribute has a name and a value. Any given indexer
implementation can declare which styles it implements, and which attributes it supports. An
indexer should gracefully handle unknown styles or attributes and report them in an appropriate
manner.
The following styles and attributes are currently defined:
attribute mappings
, which
specify which how the features (properties) of the annotation should be indexed. XMLizable
interface and can be parsed from an XML
representation.
Field Summary | |
---|---|
static String |
ANNOTATION
Constant for the name of the Annotation style. |
static String |
BREAKING
Constant for the name of the Breaking style. |
static String |
TERM
Constant for the name of the Term style. |
Method Summary | |
---|---|
String |
getAttribute(String aName)
Gets the value of an attribute with the given name. |
Mapping[] |
getAttributeMappings()
Gets the mappings that specify which features (properties) of the annotation should be indexed, and under which names. |
Attribute[] |
getAttributes()
Gets the Attribute s for this style. |
String |
getName()
Gets the name of this style. |
void |
setAttributeMappings(Mapping[] aMappings)
Sets the mappings that specify which features (properties) of the annotation should be indexed, and under which names. |
void |
setAttributes(Attribute[] aAttributes)
Sets the Attribute s for this style. |
void |
setName(String aName)
Sets the name of this style. |
Methods inherited from interface org.apache.uima.util.XMLizable |
---|
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML |
Field Detail |
---|
static final String TERM
static final String BREAKING
static final String ANNOTATION
Method Detail |
---|
String getName()
String.intern()
ed so that they can
be compared with the == operator.
void setName(String aName)
String.intern()
ed so that they can
be compared with the == operator.
aName
- the name of this styleAttribute[] getAttributes()
Attribute
s for this style. See the class comment for a list of defined
attributes for each style name.
void setAttributes(Attribute[] aAttributes)
Attribute
s for this style. See the class comment for a list of defined
attributes for each style name.
aAttributes
- the attibutes for this style.String getAttribute(String aName)
aName
- name of an attribute
Mapping[] getAttributeMappings()
void setAttributeMappings(Mapping[] aMappings)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |