|
|||||||||||
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_number
This attribute represents a number type, so that integers and doubles can be compared.
Nested Class Summary | |
protected static class |
Attribute_number.NumberValue
|
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_number()
Empty constructor for static values. |
|
Attribute_number(Attribute old)
Copies the old attribute. |
|
Attribute_number(boolean mobile)
Attributes for OBJECT type should use this constructor, with mobile set to true. |
Method Summary | |
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 |
Methods inherited from class viper.descriptors.attributes.Attribute |
clone, compareTo, compose, crop, getCompositionType, getExtraConfig, getStaticValue, getValue, getValues, getValueToString, getXMLFormat, getXMLFormat, isCompositionType, isType, nullXML, nullXML, parseExtraConfig, passes, possibleValueOf, 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_number()
public Attribute_number(boolean mobile)
mobile
- Descriptor that holds this Attribute is of type OBJECTpublic Attribute_number(Attribute old)
old
- the old attributeMethod Detail |
public java.lang.String getType()
AbstractAttribute
lvalue
or bbox
.
getType
in class Attribute
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 |