echopointng.stylesheet.propertypeer
Class BytePeer

java.lang.Object
  extended by echopointng.stylesheet.propertypeer.AbstractCssPropertyPeer
      extended by echopointng.stylesheet.propertypeer.NumberPeer
          extended by echopointng.stylesheet.propertypeer.BytePeer
All Implemented Interfaces:
CssPropertyPeer

public class BytePeer
extends NumberPeer

BytePeer converts property value strings into Bytes. It will also try to use class field constants if the integer cant be be converted.


Constructor Summary
BytePeer()
           
 
Method Summary
protected  java.lang.Class getConversionClass()
          What is an assignable conversion class for this peer
protected  java.lang.Object getObject(CssObjectIntrospector ci, java.lang.String propertyValue)
          Returns an instance of the converted property value.
 
Methods inherited from class echopointng.stylesheet.propertypeer.NumberPeer
canConvert
 
Methods inherited from class echopointng.stylesheet.propertypeer.AbstractCssPropertyPeer
getConstantFromMap, getConstantFromMap, getConstantValue, getInteger, getIntFromMap, getJavaObject, getPeer, getString, getStyleString, isAssignableFrom, isExtent, isInteger, isNullString, makeExtent, tokenize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BytePeer

public BytePeer()
Method Detail

getConversionClass

protected java.lang.Class getConversionClass()
Description copied from class: AbstractCssPropertyPeer
What is an assignable conversion class for this peer

Specified by:
getConversionClass in class AbstractCssPropertyPeer
Returns:
- a conversion class
See Also:
AbstractCssPropertyPeer.getConversionClass()

getObject

protected java.lang.Object getObject(CssObjectIntrospector ci,
                                     java.lang.String propertyValue)
Description copied from class: AbstractCssPropertyPeer
Returns an instance of the converted property value. canConvert() will have been called before this is called and hence no sanity checks need be performed again.

Specified by:
getObject in class AbstractCssPropertyPeer
Parameters:
ci - - a object intropector for you to use
propertyValue - - the value to convert into an object
Returns:
the converted value
See Also:
AbstractCssPropertyPeer.getObject(CssObjectIntrospector, java.lang.String)