viper.descriptors.attributes
Class Attribute_lvalue

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

public class Attribute_lvalue
extends Attribute
implements java.lang.Cloneable

This attribute represents an Enumerated list element. This can be one value of any specified in the config file.


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_lvalue()
          Create an empty Attribute. toString will return an empty String until more is known.
Attribute_lvalue(Attribute old)
          Copies the old attribute.
Attribute_lvalue(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.
 void setArchetype(org.w3c.dom.Element E)
          Sets the archetype associated with this descriptor.
 void setArchetype(java.lang.String value)
          Sets the archetype associated with this descriptor.
 
Methods inherited from class viper.descriptors.attributes.Attribute
compareTo, compose, convertRule, crop, getCompositionType, getExtraConfig, getStaticValue, getValue, getValues, getValueToString, getXMLFormat, getXMLFormat, isCompositionType, isType, isValidRule, 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, setDynamic
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute_lvalue

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


Attribute_lvalue

public Attribute_lvalue(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 - == Descriptor that holds this Attribute is of type OBJECT

Attribute_lvalue

public Attribute_lvalue(Attribute old)
Copies the old attribute.

Parameters:
old - the attribute to copy
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
Returns:
"lvalue"

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

setArchetype

public void setArchetype(java.lang.String value)
                  throws BadDataException
Description copied from class: AbstractAttribute
Sets the archetype associated with this descriptor.

Overrides:
setArchetype in class AbstractAttribute
Parameters:
value - the description
Throws:
BadDataException

setArchetype

public void setArchetype(org.w3c.dom.Element E)
                  throws BadDataException
Description copied from class: AbstractAttribute
Sets the archetype associated with this descriptor.

Overrides:
setArchetype in class AbstractAttribute
Parameters:
E - the description
Throws:
BadDataException