|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Context | |
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. |
org.apache.commons.betwixt.io.read | Package contains strategy and configuration classes used by reading only. |
org.apache.commons.betwixt.strategy | This package contains a variety of plugin Strategy patterns that can be used to customize the default behaviours. |
Uses of Context in org.apache.commons.betwixt.expression |
Methods in org.apache.commons.betwixt.expression that return Context | |
Context |
Context.newContext(java.lang.Object newBean)
Returns a new child context with the given bean but the same log and variables. |
Methods in org.apache.commons.betwixt.expression with parameters of type Context | |
protected void |
MethodUpdater.executeUpdate(Context context,
java.lang.Object bean,
java.lang.Object newValue)
Updates the bean by method invocation. |
void |
Updater.update(Context context,
java.lang.Object newValue)
Updates the current bean context with a new String value. |
protected void |
DynaBeanUpdater.executeUpdate(Context context,
java.lang.Object bean,
java.lang.Object value)
Executes the update on the given code>DynaBean |
java.lang.Object |
VariableExpression.evaluate(Context context)
Return the value of a context variable. |
void |
VariableExpression.update(Context context,
java.lang.String newValue)
Do nothing |
java.lang.Object |
MethodExpression.evaluate(Context context)
Evaluate by calling the read method on the current bean |
void |
MethodExpression.update(Context context,
java.lang.String newValue)
Do nothing. |
protected void |
MethodExpression.handleException(Context context,
java.lang.Exception e)
Log error to context's logger. |
java.lang.Object |
StringExpression.evaluate(Context context)
Return the context bean as a string |
void |
StringExpression.update(Context context,
java.lang.String newValue)
Do nothing |
java.lang.Object |
IteratorExpression.evaluate(Context context)
Returns an interator over the current context |
void |
IteratorExpression.update(Context context,
java.lang.String newValue)
Do nothing |
java.lang.Object |
ClassNameExpression.evaluate(Context context)
Evaluate on the current context and return the class name |
void |
ClassNameExpression.update(Context context,
java.lang.String newValue)
Do nothing. |
private void |
MapEntryAdder.callAdderMethod(Context context)
Call the adder method on the bean associated with the Context
with the key, value entry values stored previously. |
java.lang.Object |
DynaBeanExpression.evaluate(Context context)
Returns the value of a DynaBean property from the bean stored in the Context. |
void |
DynaBeanExpression.update(Context context,
java.lang.String newValue)
Do nothing. |
java.lang.Object |
EmptyExpression.evaluate(Context context)
Return the bean we're evaluating. |
void |
EmptyExpression.update(Context context,
java.lang.String newValue)
Do nothing |
void |
TypedUpdater.update(Context context,
java.lang.Object newValue)
Updates the current bean context with the given String value |
protected abstract void |
TypedUpdater.executeUpdate(Context context,
java.lang.Object bean,
java.lang.Object value)
Updates the bean with the given value. |
protected void |
TypedUpdater.handleException(Context context,
java.lang.Exception e)
Strategy method to allow derivations to handle exceptions differently. |
java.lang.Object |
ConstantExpression.evaluate(Context context)
Evaluate expression against given context. |
void |
ConstantExpression.update(Context context,
java.lang.String newValue)
Do nothing |
java.lang.Object |
Expression.evaluate(Context context)
Evaluates the expression on the bean with the given context and returns the result |
void |
Expression.update(Context context,
java.lang.String newValue)
Deprecated. 0.5 use Updater instead |
Constructors in org.apache.commons.betwixt.expression with parameters of type Context | |
Context(Context context)
Construct a cloned context. |
Uses of Context in org.apache.commons.betwixt.io |
Subclasses of Context in org.apache.commons.betwixt.io | |
private static class |
BeanRuleSet.DigesterReadContext
Specialization of ReadContext when reading from Digester . |
Fields in org.apache.commons.betwixt.io declared as Context | |
private Context |
BeanCreateRule.context
Deprecated. The Context used when evaluating Updaters |
private Context |
AbstractBeanWriter.ElementAttributes.context
Context to be evaluated when finding values |
Methods in org.apache.commons.betwixt.io that return Context | |
private Context |
AbstractBeanWriter.makeContext(java.lang.Object bean)
Factory method for new contexts. |
Methods in org.apache.commons.betwixt.io with parameters of type Context | |
private void |
AbstractBeanWriter.writeBean(java.lang.String namespaceUri,
java.lang.String localName,
java.lang.String qualifiedName,
java.lang.Object bean,
Context context)
Writes the given bean to the current stream using the given qualifiedName . |
private void |
AbstractBeanWriter.writeBean(java.lang.String namespaceUri,
java.lang.String localName,
java.lang.String qualifiedName,
java.lang.Object bean,
ElementDescriptor parentDescriptor,
Context context)
|
private void |
AbstractBeanWriter.writeBean(java.lang.String namespaceUri,
java.lang.String localName,
java.lang.String qualifiedName,
java.lang.Object bean,
Context context,
XMLBeanInfo beanInfo)
Writes the given bean to the current stream using the given mapping. |
private void |
AbstractBeanWriter.writeElement(java.lang.String namespaceUri,
java.lang.String localName,
java.lang.String qualifiedName,
ElementDescriptor elementDescriptor,
Context context)
Writes the given element |
private void |
AbstractBeanWriter.writeElement(java.lang.String namespaceUri,
java.lang.String localName,
java.lang.String qualifiedName,
ElementDescriptor elementDescriptor,
Context context,
java.lang.String idAttribute,
java.lang.String idValue)
Writes the given element adding an ID attribute |
private void |
AbstractBeanWriter.writeRestOfElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qualifiedName,
ElementDescriptor elementDescriptor,
Context context)
Write attributes, child elements and element end |
private void |
AbstractBeanWriter.writeElementContent(ElementDescriptor elementDescriptor,
Context context)
Writes the element content. |
private boolean |
AbstractBeanWriter.ignoreElement(ElementDescriptor descriptor,
Context context)
Should this element (and children) be written out? |
private boolean |
AbstractBeanWriter.isEmptyElement(ElementDescriptor descriptor,
Context context)
Will evaluating this element against this context result in an empty element? |
protected void |
AbstractBeanWriter.write(java.lang.String qualifiedName,
ElementDescriptor elementDescriptor,
Context context)
Deprecated. 0.5 replaced by new SAX inspired API |
protected void |
AbstractBeanWriter.write(java.lang.String qualifiedName,
ElementDescriptor elementDescriptor,
Context context,
java.lang.String idAttribute,
java.lang.String idValue)
Deprecated. 0.5 replaced by new SAX inspired API |
protected void |
AbstractBeanWriter.writeRestOfElement(java.lang.String qualifiedName,
ElementDescriptor elementDescriptor,
Context context)
Deprecated. 0.5 replaced by new SAX inspired API |
protected boolean |
AbstractBeanWriter.writeContent(ElementDescriptor elementDescriptor,
Context context)
Deprecated. 0.5 replaced by new SAX inspired API |
protected void |
AbstractBeanWriter.writeAttributes(ElementDescriptor elementDescriptor,
Context context)
Deprecated. 0.5 replaced by new SAX inspired API |
protected void |
AbstractBeanWriter.writeAttribute(AttributeDescriptor attributeDescriptor,
Context context)
Deprecated. 0.5 replaced by new SAX inspired API |
private java.lang.String |
AbstractBeanWriter.convertToString(java.lang.Object value,
Descriptor descriptor,
Context context)
Converts an object to a string. |
Constructors in org.apache.commons.betwixt.io with parameters of type Context | |
BeanRuleSet(XMLIntrospector introspector,
java.lang.String basePath,
ElementDescriptor baseElementDescriptor,
Context context)
Deprecated. 0.6 use the constructor which takes a ReadContext instead |
|
BeanRuleSet(XMLIntrospector introspector,
java.lang.String basePath,
ElementDescriptor baseElementDescriptor,
java.lang.Class baseBeanClass,
Context context)
Deprecated. 0.5 use the constructor which takes a ReadContext instead |
|
BeanRuleSet.DigesterReadContext(Context context,
ReadConfiguration readConfiguration)
|
|
BeanCreateRule(ElementDescriptor descriptor,
Context context,
java.lang.String pathPrefix)
Deprecated. Convenience constructor which uses ID's for match. |
|
BeanCreateRule(ElementDescriptor descriptor,
Context context,
java.lang.String pathPrefix,
boolean matchIDs)
Deprecated. Constructor taking a context. |
|
BeanCreateRule(ElementDescriptor descriptor,
java.lang.Class beanClass,
Context context,
java.lang.String pathPrefix,
boolean matchIDs)
Deprecated. Base constructor (used by other constructors). |
|
AbstractBeanWriter.ElementAttributes(ElementDescriptor descriptor,
Context context)
Construct attributes for element and context. |
|
AbstractBeanWriter.IDElementAttributes(ElementDescriptor descriptor,
Context context,
java.lang.String idAttributeName,
java.lang.String idValue)
Construct attributes for element and context. |
Uses of Context in org.apache.commons.betwixt.io.read |
Subclasses of Context in org.apache.commons.betwixt.io.read | |
class |
ReadContext
Extends Context to provide read specific functionality. |
Methods in org.apache.commons.betwixt.io.read with parameters of type Context | |
void |
ArrayBindAction.ListUpdater.update(Context context,
java.lang.Object newValue)
Update by adding the new value to the list |
Constructors in org.apache.commons.betwixt.io.read with parameters of type Context | |
ReadContext(Context context,
ReadConfiguration readConfiguration)
Constructs a ReadContext with the same settings
as an existing Context . |
Uses of Context in org.apache.commons.betwixt.strategy |
Methods in org.apache.commons.betwixt.strategy with parameters of type Context | |
abstract java.lang.String |
IdStoringStrategy.getReferenceFor(Context context,
java.lang.Object bean)
Retrieves a reference for the given instance. |
abstract void |
IdStoringStrategy.setReference(Context context,
java.lang.Object bean,
java.lang.String id)
Stores an instance reference for later retrieval. |
abstract java.lang.Object |
IdStoringStrategy.getReferenced(Context context,
java.lang.String id)
Gets an object matching the given reference. |
java.lang.String |
DefaultObjectStringConverter.objectToString(java.lang.Object object,
java.lang.Class type,
java.lang.String flavour,
Context context)
Converts an object to a string representation using ConvertUtils. |
java.lang.Object |
DefaultObjectStringConverter.stringToObject(java.lang.String value,
java.lang.Class type,
java.lang.String flavour,
Context context)
Converts an object to a string representation using ConvertUtils. |
java.lang.String |
ConvertUtilsObjectStringConverter.objectToString(java.lang.Object object,
java.lang.Class type,
java.lang.String flavour,
Context context)
Converts an object to a string representation using ConvertUtils. |
java.lang.Object |
ConvertUtilsObjectStringConverter.stringToObject(java.lang.String value,
java.lang.Class type,
java.lang.String flavour,
Context context)
Converts an object to a string representation using ConvertUtils. |
java.lang.String |
ObjectStringConverter.objectToString(java.lang.Object object,
java.lang.Class type,
java.lang.String flavour,
Context context)
Deprecated. 0.7 use ObjectStringConverter.objectToString(Object, Class, Context) instead.
The preferred way to support flavours is by setting the
org.apache.commons.betwixt.FLAVOUR option.
This can then be retrieved by calling getOptions() |
java.lang.Object |
ObjectStringConverter.stringToObject(java.lang.String value,
java.lang.Class type,
java.lang.String flavour,
Context context)
Deprecated. 0.7 use ObjectStringConverter.stringToObject(String, Class, Context) instead.
The preferred way to support flavours is by setting the
org.apache.commons.betwixt.FLAVOUR option.
This can then be retrieved by calling getOptions() |
java.lang.String |
ObjectStringConverter.objectToString(java.lang.Object object,
java.lang.Class type,
Context context)
Converts an object to a string representation. |
java.lang.Object |
ObjectStringConverter.stringToObject(java.lang.String value,
java.lang.Class type,
Context context)
Converts a string representation to an object. |
private java.lang.String |
ObjectStringConverter.getFlavour(Context context)
Gets the current flavour from the context. |
java.lang.String |
DefaultIdStoringStrategy.getReferenceFor(Context context,
java.lang.Object bean)
Returns a String id for the given bean if it has been stored previously. |
void |
DefaultIdStoringStrategy.setReference(Context context,
java.lang.Object bean,
java.lang.String id)
Stores an ID for the given instance and context. |
java.lang.Object |
DefaultIdStoringStrategy.getReferenced(Context context,
java.lang.String id)
Gets an object matching the given reference. |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |