viper.descriptors.attributes
Interface ExtendedAttributeValue

All Superinterfaces:
AttributeValue, Measurable

public interface ExtendedAttributeValue
extends AttributeValue

Some attributes have extra config information. Their must implement this interface. When outputing the attribute config section, this method is called on each attribute's archetype.

Author:
davidm

Nested Class Summary
 
Nested classes inherited from class viper.descriptors.attributes.Measurable
Measurable.Difference
 
Method Summary
 org.w3c.dom.Element getExtraConfig(org.w3c.dom.Document root)
          Gets the extra config information as an XML DOM node.
 java.lang.String getExtraConfigString()
          Gets the extra config information for the attribute.
 
Methods inherited from interface viper.descriptors.attributes.AttributeValue
setValue, setValue, toXML, validate
 
Methods inherited from interface viper.descriptors.attributes.Measurable
getDifference, getDifference, getType
 

Method Detail

getExtraConfigString

public java.lang.String getExtraConfigString()
Gets the extra config information for the attribute.

Returns:
the extra config string

getExtraConfig

public org.w3c.dom.Element getExtraConfig(org.w3c.dom.Document root)
Gets the extra config information as an XML DOM node.

Parameters:
root - the document root; necessary for creation of a DOM node
Returns:
the element