Dashboard Builder Commons 6.0.0.Beta1

org.jboss.dashboard.factory
Class PropertyChangeProcessingInstruction

java.lang.Object
  extended by org.jboss.dashboard.factory.PropertyChangeProcessingInstruction
Direct Known Subclasses:
PropertyAddProcessingInstruction, PropertySetProcessingInstruction, PropertySubstractProcessingInstruction

public abstract class PropertyChangeProcessingInstruction
extends Object


Field Summary
static String ARRAYS_DELIMITER
           
 
Constructor Summary
protected PropertyChangeProcessingInstruction(Component component, String propertyName, String propertyValue)
           
 
Method Summary
protected  Object getBaseArray(Class expectedClass, int length)
           
protected  Component getComponent()
           
protected  Object getNewInstanceForClass(Class expectedClass)
           
 String getPropertyName()
           
 String getPropertyValue()
           
abstract  Object getValueAfterChange(Object originalValue, Class expectedClass)
           
protected  Object getValueForParameter(String paramValue, Class expectedClass)
           
protected  boolean toBoolean(String parameter)
           
protected  byte toByte(String parameter)
           
protected  char toChar(String parameter)
           
protected  Object toComponent(String parameter)
           
protected  double toDouble(String parameter)
           
protected  Object toFile(String paramValue)
           
protected  float toFloat(String parameter)
           
protected  int toInt(String parameter)
           
protected  long toLong(String parameter)
           
protected  short toShort(String parameter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARRAYS_DELIMITER

public static final String ARRAYS_DELIMITER
See Also:
Constant Field Values
Constructor Detail

PropertyChangeProcessingInstruction

protected PropertyChangeProcessingInstruction(Component component,
                                              String propertyName,
                                              String propertyValue)
Method Detail

getPropertyName

public String getPropertyName()

getPropertyValue

public String getPropertyValue()

getValueAfterChange

public abstract Object getValueAfterChange(Object originalValue,
                                           Class expectedClass)
                                    throws Exception
Throws:
Exception

getNewInstanceForClass

protected Object getNewInstanceForClass(Class expectedClass)

getValueForParameter

protected Object getValueForParameter(String paramValue,
                                      Class expectedClass)
                               throws Exception
Throws:
Exception

getBaseArray

protected Object getBaseArray(Class expectedClass,
                              int length)

toInt

protected int toInt(String parameter)
             throws Exception
Throws:
Exception

toBoolean

protected boolean toBoolean(String parameter)
                     throws Exception
Throws:
Exception

toLong

protected long toLong(String parameter)
               throws Exception
Throws:
Exception

toChar

protected char toChar(String parameter)
               throws Exception
Throws:
Exception

toDouble

protected double toDouble(String parameter)
                   throws Exception
Throws:
Exception

toFloat

protected float toFloat(String parameter)
                 throws Exception
Throws:
Exception

toByte

protected byte toByte(String parameter)
               throws Exception
Throws:
Exception

toShort

protected short toShort(String parameter)
                 throws Exception
Throws:
Exception

toFile

protected Object toFile(String paramValue)

toComponent

protected Object toComponent(String parameter)
                      throws Exception
Throws:
Exception

getComponent

protected Component getComponent()

Dashboard Builder Commons 6.0.0.Beta1

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.