|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object viper.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 attributeMethod Detail |
public java.lang.String getType()
AbstractAttribute
lvalue
or bbox
.
getType
in class Attribute
public java.lang.Object clone()
Attribute
clone
in class Attribute
public boolean possibleValueOf(java.lang.String S)
Attribute
possibleValueOf
in class Attribute
S
- the string to be tested
public boolean isValidRule(java.lang.String ruleName)
Filterable
isValidRule
in interface Filterable
isValidRule
in class Attribute
public Filterable.Rule convertRule(java.lang.String unparsedRule, java.util.List unparsedValues, ErrorWriter err) throws BadDataException
Attribute
convertRule
in interface Filterable
convertRule
in class Attribute
unparsedRule
- 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 |