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

java.lang.Object
  extended by de.enough.polish.preprocess.css.CssAttribute
      extended by de.enough.polish.preprocess.css.attributes.ImageUrlOrNoneCssAttribute
All Implemented Interfaces:
Comparable

public class ImageUrlOrNoneCssAttribute
extends CssAttribute

A simple numerical based attribute.

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
ImageUrlOrNoneCssAttribute()
          Creates a new instance.
 
Method Summary
 String getValue(String value, Environment environment)
          Checks and transforms the given CSS value for this 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, setDefinition, setId, setImplicitDefinition, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageUrlOrNoneCssAttribute

public ImageUrlOrNoneCssAttribute()
Creates a new instance.

Method Detail

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.