|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectechopointng.stylesheet.propertypeer.AbstractCssPropertyPeer
public abstract class AbstractCssPropertyPeer
AbstractCssPropertyPeer is a base class for
PropertyPeers
| Constructor Summary | |
|---|---|
AbstractCssPropertyPeer()
|
|
| Method Summary | |
|---|---|
protected abstract boolean |
canConvert(CssObjectIntrospector ci,
java.lang.String propertyValue)
Is the propertyValue valid in its current form? |
protected static java.lang.String |
getConstantFromMap(java.util.Map constantMap,
int intValue)
|
protected static java.lang.String |
getConstantFromMap(java.util.Map constantMap,
java.lang.Object equalsTo)
Looks into a Map of constant values to object values and returns the key that matches the given object value |
protected java.lang.Object |
getConstantValue(CssObjectIntrospector ci,
java.lang.Class conversionClass,
java.lang.String propertyValue,
int lineNo)
Converts a property string value into a name class field constant of the supplied name. |
protected abstract java.lang.Class |
getConversionClass()
What is an assignable conversion class for this peer |
protected static int |
getInteger(java.lang.String propertyValue)
Returns the int value of the given propertyValue string. |
protected static int |
getIntFromMap(java.util.Map constantMap,
java.lang.Object key)
Can be called to return an int from a Map of Integer objects. |
java.lang.Object |
getJavaObject(java.lang.ClassLoader classLoader,
java.lang.Class objectClass,
java.lang.String propertyValue,
int lineNo)
This method is called to convert the CSS string value into a specific Java object. |
protected abstract java.lang.Object |
getObject(CssObjectIntrospector ci,
java.lang.String propertyValue)
Returns an instance of the converted property value. |
protected static CssPropertyPeer |
getPeer(java.lang.Class peerClass)
|
protected java.lang.String |
getString(CssObjectIntrospector ci,
java.lang.Object object)
Get a string representation of the object. |
java.lang.String |
getStyleString(java.lang.ClassLoader classLoader,
java.lang.Class objectClass,
java.lang.Object propertyValue)
This is called to convert a current Java object into a CSS property value string. |
protected static boolean |
isAssignableFrom(java.lang.Object value,
java.lang.Class targetClass)
Returns true if value Object is assignable to the target class. |
protected static boolean |
isExtent(java.lang.String extentStr)
Returns true of the specified string is an extent string |
protected static boolean |
isInteger(java.lang.String propertyValue)
Returns true if the propertyValue is a valid representation of a base 10 Integer value. |
protected static boolean |
isNullString(java.lang.String propertyValue)
Returns TRUE if the propertyValue is the null string |
protected static Extent |
makeExtent(java.lang.String extentStr)
Makes an Extent from a string |
protected static java.lang.String[] |
tokenize(java.lang.String tokenStr,
java.lang.String delims)
Tokenizes a given string with the specified delimeters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCssPropertyPeer()
| Method Detail |
|---|
public java.lang.Object getJavaObject(java.lang.ClassLoader classLoader,
java.lang.Class objectClass,
java.lang.String propertyValue,
int lineNo)
throws CssInvalidValueException
CssPropertyPeer
getJavaObject in interface CssPropertyPeerclassLoader - - the class loader in useobjectClass - - the current object class in questionpropertyValue - - the CSS value stringlineNo - - the line no within the parsed CSS input
CssInvalidValueException - - if the value cannot be converted.CssPropertyPeer.getJavaObject(ClassLoader, Class, String, int)
public java.lang.String getStyleString(java.lang.ClassLoader classLoader,
java.lang.Class objectClass,
java.lang.Object propertyValue)
CssPropertyPeer
getStyleString in interface CssPropertyPeerclassLoader - - the class loader in useobjectClass - - the current object class in questionpropertyValue - - the CSS value string
getStyleString(java.lang.ClassLoader, java.lang.Class, java.lang.Object)protected abstract java.lang.Class getConversionClass()
protected abstract boolean canConvert(CssObjectIntrospector ci,
java.lang.String propertyValue)
ci - - The component IntropectorpropertyValue - - the value to inspect
protected abstract java.lang.Object getObject(CssObjectIntrospector ci,
java.lang.String propertyValue)
ci - - a object intropector for you to usepropertyValue - - the value to convert into an object
protected java.lang.String getString(CssObjectIntrospector ci,
java.lang.Object object)
ci - - the CssObjectIntrospector availableobject - - the object to get a string representation of.
protected java.lang.Object getConstantValue(CssObjectIntrospector ci,
java.lang.Class conversionClass,
java.lang.String propertyValue,
int lineNo)
throws CssInvalidValueException
ci - - the componenconversionClass - propertyValue - lineNo -
CssInvalidValueException
protected static boolean isAssignableFrom(java.lang.Object value,
java.lang.Class targetClass)
value - - the object to testtargetClass - - the target assignable class
protected static boolean isNullString(java.lang.String propertyValue)
protected static boolean isInteger(java.lang.String propertyValue)
protected static int getInteger(java.lang.String propertyValue)
protected static java.lang.String getConstantFromMap(java.util.Map constantMap,
java.lang.Object equalsTo)
constantMap - - the Map is assumed to have String keysequalsTo - - the object to perform .equals() on
protected static java.lang.String getConstantFromMap(java.util.Map constantMap,
int intValue)
getConstantFromMap(Map, Object)
protected static int getIntFromMap(java.util.Map constantMap,
java.lang.Object key)
constantMap - - the Map to look inkey - - the lookup key
protected static java.lang.String[] tokenize(java.lang.String tokenStr,
java.lang.String delims)
tokenStr - - the string to tokenizedelims - - the delimeters to use
protected static boolean isExtent(java.lang.String extentStr)
protected static Extent makeExtent(java.lang.String extentStr)
protected static CssPropertyPeer getPeer(java.lang.Class peerClass)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||