|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectviper.descriptors.attributes.AbstractAttribute
viper.descriptors.attributes.Attribute
viper.descriptors.attributes.Attribute_svalue
This Attribute describes a String of characters. This class implements various distance functions on strings, specifically edit (Levenshtein) and Hamming distances, as well as equality. For composition, it just sticks the two strings together, so it is not commutative.
| Nested Class Summary |
| Nested classes inherited from class viper.filters.Filterable |
Filterable.Rule |
| Field Summary |
| Fields inherited from class viper.descriptors.attributes.Attribute |
composition, compositionTolerance, compositionType, errors, value |
| Constructor Summary | |
Attribute_svalue()
Constructs a new static string-valued attribute. |
|
Attribute_svalue(Attribute old)
Copies the old attribute. |
|
Attribute_svalue(boolean dynamic)
Constructs a new string-values attribute. |
|
| Method Summary | |
java.lang.Object |
clone()
Returns a clone of this Attribute. |
Filterable.Rule |
convertRule(java.lang.String unparsedRule,
java.util.List unparsedValues,
ErrorWriter err)
This converts a rule into the proper format for the data type. |
java.lang.String |
getType()
Returns the Attribute type, eg lvalue or bbox. |
boolean |
isValidRule(java.lang.String ruleName)
Tell if a name is a valid rule or not |
boolean |
possibleValueOf(java.lang.String S)
Determines if this Attribute can take the value specified. |
| Methods inherited from class viper.descriptors.attributes.Attribute |
compareTo, compose, crop, getCompositionType, getExtraConfig, getStaticValue, getValue, getValues, getValueToString, getXMLFormat, getXMLFormat, isCompositionType, isType, nullXML, nullXML, parseExtraConfig, passes, possibleValueOf, setCompositionType, setDefaultValue, setDefaultValue, setExtraConfig, setFrameSpan, setName, setOutputWidth, setStaticValue, setValue, setValue, setValue, setValue, setValue, toString |
| Methods inherited from class viper.descriptors.attributes.AbstractAttribute |
getArchetype, getDefault, getExtraConfigInXML, getExtraConfigString, getName, isDynamic, loadAttributeType, named, named, parseAnInt, resetDefault, setArchetype, setArchetype, setArchetype, setDynamic |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Attribute_svalue()
public Attribute_svalue(boolean dynamic)
dynamic - if the attribute can take on different
values over timepublic Attribute_svalue(Attribute old)
old - the old attribute| Method Detail |
public java.lang.String getType()
AbstractAttributelvalue or bbox.
getType in class Attributepublic java.lang.Object clone()
Attribute
clone in class Attributepublic boolean possibleValueOf(java.lang.String S)
Attribute
possibleValueOf in class AttributeS - the string to be tested
public boolean isValidRule(java.lang.String ruleName)
Filterable
isValidRule in interface FilterableisValidRule in class Attribute
public Filterable.Rule convertRule(java.lang.String unparsedRule,
java.util.List unparsedValues,
ErrorWriter err)
throws BadDataException
Attribute
convertRule in interface FilterableconvertRule in class AttributeunparsedRule - the rule to convertunparsedValues - the valueserr - the error stream
BadDataException - if there is an error in the rule or values
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||