viper.descriptors.attributes
Class Attribute_fvalue

java.lang.Object
  extended byviper.descriptors.attributes.AbstractAttribute
      extended byviper.descriptors.attributes.Attribute
          extended byviper.descriptors.attributes.Attribute_number
              extended byviper.descriptors.attributes.Attribute_fvalue
All Implemented Interfaces:
java.lang.Cloneable, Filterable

public class Attribute_fvalue
extends Attribute_number
implements java.lang.Cloneable

This attribute represents a doubleing point value.


Nested Class Summary
 
Nested classes inherited from class viper.descriptors.attributes.Attribute_number
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_fvalue()
          Create an empty Attribute. toString will return an empty String until more is known.
Attribute_fvalue(Attribute old)
          Copies the old attribute
Attribute_fvalue(boolean mobile)
          Attributes for OBJECT type should use this constructor, with mobile set to true.
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this Attribute.
 java.lang.String getType()
          Returns the Attribute type, eg lvalue or bbox.
 boolean possibleValueOf(java.lang.String S)
          Determines if this Attribute can take the value specified.
 
Methods inherited from class viper.descriptors.attributes.Attribute_number
convertRule, isValidRule
 
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

Attribute_fvalue

public Attribute_fvalue()
Create an empty Attribute. toString will return an empty String until more is known.


Attribute_fvalue

public Attribute_fvalue(boolean mobile)
Attributes for OBJECT type should use this constructor, with mobile set to true. Other Descriptor types can use this with mobile set to false.

Parameters:
mobile - true iff Descriptor that holds this Attribute is of type OBJECT and not [static]

Attribute_fvalue

public Attribute_fvalue(Attribute old)
Copies the old attribute

Parameters:
old - the old attribute
Method Detail

getType

public java.lang.String getType()
Description copied from class: AbstractAttribute
Returns the Attribute type, eg lvalue or bbox.

Overrides:
getType in class Attribute_number
Returns:
"fvalue"

clone

public java.lang.Object clone()
Description copied from class: Attribute
Returns a clone of this Attribute.

Overrides:
clone in class Attribute
Returns:
a reference to a new Attribute with all the values of the original

possibleValueOf

public boolean possibleValueOf(java.lang.String S)
Determines if this Attribute can take the value specified.

Overrides:
possibleValueOf in class Attribute
Parameters:
S - - the string to be tested (must be a valid java double)
Returns:
whether or not the string is valid