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

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

public class ArrayCssAttribute
extends CssAttribute

Allows to use any CssAttribute/type as an array

Copyright Enough Software 2007

 history
        Oct 13, 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
ArrayCssAttribute()
          Creates a new instance
 
Method Summary
 String getValue(String value, Environment environment)
          Checks and transforms the given CSS value for this attribute.
 Object instantiateValue(String sourceCode)
          Instantiates the referenced value.
 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, 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

ArrayCssAttribute

public ArrayCssAttribute()
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.

instantiateValue

public Object instantiateValue(String sourceCode)
Description copied from class: CssAttribute
Instantiates the referenced value.

Overrides:
instantiateValue in class CssAttribute
Parameters:
sourceCode - the transformed value of this attribute
Returns:
the instantiated value (value as object instead of source code)