de.enough.polish.preprocess.css.attributes
Class MapCssAttribute

java.lang.Object
  extended by de.enough.polish.preprocess.css.CssAttribute
      extended by de.enough.polish.preprocess.css.attributes.MapCssAttribute
All Implemented Interfaces:
Comparable
Direct Known Subclasses:
DimensionMapCssAttribute

public class MapCssAttribute
extends CssAttribute

An attribute that consists of a mapped value or a combination.

Copyright Enough Software 2007

 history
        Apr 15, 2007 - rob creation
 

Author:
Robert Virkus, j2mepolish@enough.de

Field Summary
 
Fields inherited from class de.enough.polish.preprocess.css.CssAttribute
allowedValues, allowsCombinations, ANIMATION_PACKAGE, appliesTo, appliesToMap, defaultValue, description, group, id, isBaseAttribute, isCaseSensitive, mappingsByName, name, requiresMapping, shell, since, type
 
Constructor Summary
MapCssAttribute()
          Creates a new instance.
 
Method Summary
 String getValue(String value, Environment environment)
          Checks and transforms the given CSS value for this attribute.
 void setDefinition(org.jdom.Element definition)
          Creates a new CSS-attribute
 
Methods inherited from class de.enough.polish.preprocess.css.CssAttribute
add, appliesTo, compareTo, createMapping, generateAnimationSourceCode, generateAnimationSourceCode, generateAnimationSourceCodeStart, getAllowedValues, getApplicableMappings, getAppliesTo, getDefaultValue, getDeprecatedMessage, getDescription, getGroup, getId, getMapping, getMappingByTo, getMappings, getName, getShell, getSince, getType, getValuePosition, hasFixValues, instantiate, instantiateBoolean, instantiateByte, instantiateChar, instantiateDefault, instantiateDouble, instantiateFloat, instantiateInt, instantiateLong, instantiateShort, instantiateValue, isBaseAttribute, isDefault, isDeprecated, isHidden, isImplicit, loadClass, parseAndInstantiateValue, resolveField, setId, setImplicitDefinition, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapCssAttribute

public MapCssAttribute()
Creates a new instance.

Method Detail

setDefinition

public void setDefinition(org.jdom.Element definition)
Description copied from class: CssAttribute
Creates a new CSS-attribute

Overrides:
setDefinition in class CssAttribute
Parameters:
definition - the XML definition of this attribute.

getValue

public String getValue(String value,
                       Environment environment)
Description copied from class: CssAttribute
Checks and transforms the given CSS value for this attribute.

Overrides:
getValue in class CssAttribute
Parameters:
value - the attribute value
environment - the environment
Returns:
the transformed value or the same value if no transformation is required.