Uses of Class
org.apache.commons.betwixt.expression.Context

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
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 MethodExpression.evaluate(Context context)
          Evaluate by calling the read method on the current bean
 java.lang.Object IteratorExpression.evaluate(Context context)
          Returns an interator over the current context
 java.lang.Object VariableExpression.evaluate(Context context)
          Return the value of a context variable.
 java.lang.Object ClassNameExpression.evaluate(Context context)
          Evaluate on the current context and return the class name
 java.lang.Object StringExpression.evaluate(Context context)
          Return the context bean as a string
 java.lang.Object EmptyExpression.evaluate(Context context)
          Return the bean we're evaluating.
 java.lang.Object ConstantExpression.evaluate(Context context)
          Evaluate expression against given context.
 java.lang.Object DynaBeanExpression.evaluate(Context context)
          Returns the value of a DynaBean property from the bean stored in the Context.
 java.lang.Object Expression.evaluate(Context context)
          Evaluates the expression on the bean with the given context and returns the result
protected abstract  void TypedUpdater.executeUpdate(Context context, java.lang.Object bean, java.lang.Object value)
          Updates the bean with the given value.
protected  void DynaBeanUpdater.executeUpdate(Context context, java.lang.Object bean, java.lang.Object value)
          Executes the update on the given code>DynaBean
protected  void MethodUpdater.executeUpdate(Context context, java.lang.Object bean, java.lang.Object newValue)
          Updates the bean by method invocation.
protected  void TypedUpdater.handleException(Context context, java.lang.Exception e)
          Strategy method to allow derivations to handle exceptions differently.
protected  void MethodExpression.handleException(Context context, java.lang.Exception e)
          Log error to context's logger.
protected  void MethodExpression.handleException(Context context, java.lang.Exception e, java.lang.reflect.Method m)
          Log error to context's logger.
 void TypedUpdater.update(Context context, java.lang.Object newValue)
          Updates the current bean context with the given String value
 void CollectionUpdater.update(Context context, java.lang.Object newValue)
          Updates collection contained by the context by adding the new value.
 void Updater.update(Context context, java.lang.Object newValue)
          Updates the current bean context with a new String value.
 void MethodExpression.update(Context context, java.lang.String newValue)
          Do nothing.
 void IteratorExpression.update(Context context, java.lang.String newValue)
          Do nothing
 void VariableExpression.update(Context context, java.lang.String newValue)
          Do nothing
 void ClassNameExpression.update(Context context, java.lang.String newValue)
          Do nothing.
 void StringExpression.update(Context context, java.lang.String newValue)
          Do nothing
 void EmptyExpression.update(Context context, java.lang.String newValue)
          Do nothing
 void ConstantExpression.update(Context context, java.lang.String newValue)
          Do nothing
 void DynaBeanExpression.update(Context context, java.lang.String newValue)
          Do nothing.
 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 AbstractBeanWriter.ElementAttributes.context
          Context to be evaluated when finding values
private  Context BeanCreateRule.context
          Deprecated. The Context used when evaluating Updaters
 

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  java.lang.String AbstractBeanWriter.convertToString(java.lang.Object value, Descriptor descriptor, Context context)
          Converts an object to a string.
private  boolean AbstractBeanWriter.ignoreElement(ElementDescriptor descriptor, java.lang.String namespaceUri, java.lang.String localName, java.lang.String qualifiedName, 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.writeAttribute(AttributeDescriptor attributeDescriptor, 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
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, Context context, XMLBeanInfo beanInfo)
          Writes the given bean to the current stream using the given mapping.
private  void AbstractBeanWriter.writeBean(java.lang.String namespaceUri, java.lang.String localName, java.lang.String qualifiedName, java.lang.Object bean, ElementDescriptor parentDescriptor, Context context)
           
protected  boolean AbstractBeanWriter.writeContent(ElementDescriptor elementDescriptor, Context context)
          Deprecated. 0.5 replaced by new SAX inspired API
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.writeElementContent(ElementDescriptor elementDescriptor, Context context)
          Writes the element content.
protected  void AbstractBeanWriter.writeRestOfElement(java.lang.String qualifiedName, ElementDescriptor elementDescriptor, Context context)
          Deprecated. 0.5 replaced by new SAX inspired API
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
 

Constructors in org.apache.commons.betwixt.io with parameters of type Context
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.
BeanCreateRule(ElementDescriptor descriptor, java.lang.Class beanClass, Context context, java.lang.String pathPrefix, boolean matchIDs)
          Deprecated. Base constructor (used by other constructors).
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.
BeanRuleSet.DigesterReadContext(Context context, ReadConfiguration readConfiguration)
           
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(XMLIntrospector introspector, java.lang.String basePath, ElementDescriptor baseElementDescriptor, Context context)
          Deprecated. 0.6 use the constructor which takes a ReadContext instead
 

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
private  java.lang.String ObjectStringConverter.getFlavour(Context context)
          Gets the current flavour from the context.
 java.lang.Object DefaultIdStoringStrategy.getReferenced(Context context, java.lang.String id)
          Gets an object matching the given reference.
abstract  java.lang.Object IdStoringStrategy.getReferenced(Context context, java.lang.String id)
          Gets an object matching the given reference.
 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.
abstract  java.lang.String IdStoringStrategy.getReferenceFor(Context context, java.lang.Object bean)
          Retrieves a reference for the given instance.
 java.lang.String ObjectStringConverter.objectToString(java.lang.Object object, java.lang.Class type, Context context)
          Converts an object to a string representation.
 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.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.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()
 void DefaultIdStoringStrategy.setReference(Context context, java.lang.Object bean, java.lang.String id)
          Stores an ID for the given instance and context.
abstract  void IdStoringStrategy.setReference(Context context, java.lang.Object bean, java.lang.String id)
          Stores an instance reference for later retrieval.
 java.lang.Object ObjectStringConverter.stringToObject(java.lang.String value, java.lang.Class type, Context context)
          Converts a string representation to an object.
 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.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.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()