public interface Style extends XMLizable, Serializable
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.| Modifier and Type | Field and Description | 
|---|---|
| static String | ANNOTATIONConstant for the name of the Annotation style. | 
| static String | BREAKINGConstant for the name of the Breaking style. | 
| static String | TERMConstant for the name of the Term style. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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  Attributes 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  Attributes for this style. | 
| void | setName(String aName)Sets the name of this style. | 
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXMLstatic final String TERM
static final String BREAKING
static final String ANNOTATION
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()
Attributes for this style. See the class comment for a list of defined
 attributes for each style name.void setAttributes(Attribute[] aAttributes)
Attributes for this style. See the class comment for a list of defined
 attributes for each style name.aAttributes - the attributes for this style.String getAttribute(String aName)
aName - name of an attributeMapping[] getAttributeMappings()
void setAttributeMappings(Mapping[] aMappings)
aMappings - an array of objects that each specify a mapping from a CAS feature name to the name
          under which this feature should be recorded in the index.Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.