|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.nlpir.irf.conversion.ConversionRule
The class models a rule for use in converting tagged data into Document objects
| Field Summary | |
int |
action
A code indicating what conversion action is to be taken when this rule is applied |
static int |
CONVERT
Possible action code - convert data associated with this tag |
static int |
NONE
Possible action code - ignore data associated with this tag |
static int |
START_DOCUMENT
Possible action code - create a new document |
java.lang.String |
tag
The tag whose presence in the raw data triggers the application of this rule |
java.lang.reflect.Field |
targetField
An instance of a field to be created by this rule |
java.lang.Class |
targetFieldClass
An instance of the class for a field to be created by this rule |
| Constructor Summary | |
ConversionRule()
Creates an empty conversion rule |
|
ConversionRule(java.lang.String tag,
int action,
java.lang.String targetFieldName,
java.lang.String targetFieldClassName,
java.lang.String targetDocClassName)
Creates a conversion rule based on the specified parameters |
|
| Method Summary | |
java.lang.String |
getTag()
Returns the tag for this rule |
java.lang.String |
toString()
Returns a string representation of the rule |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public java.lang.String tag
public int action
public static final int NONE
public static final int CONVERT
public static final int START_DOCUMENT
public java.lang.reflect.Field targetField
public java.lang.Class targetFieldClass
| Constructor Detail |
public ConversionRule()
public ConversionRule(java.lang.String tag,
int action,
java.lang.String targetFieldName,
java.lang.String targetFieldClassName,
java.lang.String targetDocClassName)
tag - the triggering the rule's applicationaction - the code for the conversion action to be carried outthe - name of the field to be createdthe - name field class to be createdthe - name document class to be created| Method Detail |
public java.lang.String getTag()
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||