Package | Description |
---|---|
org.apache.commons.betwixt.expression |
This package contains the system which extracts values from beans.
|
org.apache.commons.betwixt.io |
Package contains classes dealing directly with the reading and writing of beans.
|
Modifier and Type | Method and Description |
---|---|
Context |
Context.newContext(Object newBean)
Returns a new child context with the given bean but the same log and variables.
|
Modifier and Type | Method and Description |
---|---|
Object |
VariableExpression.evaluate(Context context)
Return the value of a context variable.
|
Object |
StringExpression.evaluate(Context context)
Return the context bean as a string
|
Object |
MethodExpression.evaluate(Context context)
Evaluate by calling the read method on the current bean
|
Object |
IteratorExpression.evaluate(Context context)
Returns an interator over the current context
|
Object |
Expression.evaluate(Context context)
Evaluates the expression on the bean with the given context
and returns the result
|
Object |
EmptyExpression.evaluate(Context context)
Return the bean we're evaluating.
|
Object |
ConstantExpression.evaluate(Context context)
Evaluate expression against given context.
|
protected void |
MethodUpdater.handleException(Context context,
Exception e)
Strategy method to allow derivations to handle exceptions differently.
|
protected void |
MethodExpression.handleException(Context context,
Exception e)
Log error to context's logger.
|
void |
Updater.update(Context context,
Object newValue)
Updates the current bean context with a new String value.
|
void |
MethodUpdater.update(Context context,
Object newValue)
Updates the current bean context with the given String value
|
void |
VariableExpression.update(Context context,
String newValue)
Do nothing
|
void |
StringExpression.update(Context context,
String newValue)
Do nothing
|
void |
MethodExpression.update(Context context,
String newValue)
Do nothing.
|
void |
IteratorExpression.update(Context context,
String newValue)
Do nothing
|
void |
Expression.update(Context context,
String newValue)
Updates the current bean context with a new String value.
|
void |
EmptyExpression.update(Context context,
String newValue)
Do nothing
|
void |
ConstantExpression.update(Context context,
String newValue)
Do nothing
|
Modifier and Type | Field and Description |
---|---|
private Context |
BeanCreateRule.context
The Context used when evaluating Updaters
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractBeanWriter.write(String qualifiedName,
ElementDescriptor elementDescriptor,
Context context)
Writes the given element
|
protected void |
AbstractBeanWriter.write(String qualifiedName,
ElementDescriptor elementDescriptor,
Context context,
String idAttribute,
String idValue)
Writes the given element adding an ID attribute
|
protected void |
AbstractBeanWriter.writeAttribute(AttributeDescriptor attributeDescriptor,
Context context)
Writes an attribute declaration
|
protected void |
AbstractBeanWriter.writeAttributes(ElementDescriptor elementDescriptor,
Context context)
Writes the attribute declarations
|
protected boolean |
AbstractBeanWriter.writeContent(ElementDescriptor elementDescriptor,
Context context)
Writes the element content.
|
protected void |
AbstractBeanWriter.writeRestOfElement(String qualifiedName,
ElementDescriptor elementDescriptor,
Context context)
Write attributes, child elements and element end
|
Constructor and Description |
---|
BeanCreateRule(ElementDescriptor descriptor,
Class beanClass,
Context context,
String pathPrefix,
boolean matchIDs)
Base constructor (used by other constructors).
|
BeanCreateRule(ElementDescriptor descriptor,
Context context,
String pathPrefix)
Convenience constructor which uses
ID's for match. |
BeanCreateRule(ElementDescriptor descriptor,
Context context,
String pathPrefix,
boolean matchIDs)
Constructor taking a context.
|