A B C D E F G H I L M N O P R S T U V W X

A

AbstractBeanWriter - class org.apache.commons.betwixt.io.AbstractBeanWriter.
 
AbstractBeanWriter() - Constructor for class org.apache.commons.betwixt.io.AbstractBeanWriter
 
AbstractIDGenerator - class org.apache.commons.betwixt.io.id.AbstractIDGenerator.
Abstract superclass for IDGenerator implementations.
AbstractIDGenerator() - Constructor for class org.apache.commons.betwixt.io.id.AbstractIDGenerator
 
addAttributeDescriptor(AttributeDescriptor) - Method in class org.apache.commons.betwixt.ElementDescriptor
 
addBeanCreateRule(String, ElementDescriptor, Class) - Method in class org.apache.commons.betwixt.io.BeanReader
Adds a new bean create rule for the specified path
addChildRules() - Method in class org.apache.commons.betwixt.io.BeanCreateRule
Adds the rules to the digester for all child elements
addChildRules(String, ElementDescriptor) - Method in class org.apache.commons.betwixt.io.BeanCreateRule
Add child rules for given descriptor at given prefix
AddDefaultsRule - class org.apache.commons.betwixt.digester.AddDefaultsRule.
AddDefaultsRule appends all the default properties to the current element.
AddDefaultsRule() - Constructor for class org.apache.commons.betwixt.digester.AddDefaultsRule
 
addDescriptor(NodeDescriptor) - Method in class org.apache.commons.betwixt.digester.AddDefaultsRule
 
addElementDescriptor(ElementDescriptor) - Method in class org.apache.commons.betwixt.ElementDescriptor
 
addPrimitiveTypeRule(String, ElementDescriptor) - Method in class org.apache.commons.betwixt.io.BeanCreateRule
Adds a new Digester rule to process the text as a primitive type
addProperties(BeanInfo, List, List) - Method in class org.apache.commons.betwixt.XMLIntrospector
Loop through properties and process each one
addProperty(BeanInfo, PropertyDescriptor, List, List) - Method in class org.apache.commons.betwixt.XMLIntrospector
Process a property.
addRule(String, Rule) - Method in class org.apache.commons.betwixt.io.BeanCreateRule
Safely add a rule with given path.
AttributeDescriptor - class org.apache.commons.betwixt.AttributeDescriptor.
AttributeDescriptor describes the XML attributes to be created for a bean instance.
AttributeDescriptor() - Constructor for class org.apache.commons.betwixt.AttributeDescriptor
Base constructor
AttributeDescriptor(String) - Constructor for class org.apache.commons.betwixt.AttributeDescriptor
Creates a AttributeDescriptor with no namespace URI or prefix
AttributeDescriptor(String, String, String) - Constructor for class org.apache.commons.betwixt.AttributeDescriptor
Creates a AttributeDescriptor with namespace URI and qualified name
AttributeRule - class org.apache.commons.betwixt.digester.AttributeRule.
AttributeRule the digester Rule for parsing the <attribute> elements.
AttributeRule() - Constructor for class org.apache.commons.betwixt.digester.AttributeRule
 

B

BeanCreateRule - class org.apache.commons.betwixt.io.BeanCreateRule.
BeanCreateRule is a Digester Rule for creating beans from the betwixt XML metadata.
BeanCreateRule(ElementDescriptor, Class) - Constructor for class org.apache.commons.betwixt.io.BeanCreateRule
Convenience constructor which uses ID's for matching.
BeanCreateRule(ElementDescriptor, Class, boolean) - Constructor for class org.apache.commons.betwixt.io.BeanCreateRule
Constructor uses standard qualified name.
BeanCreateRule(ElementDescriptor, Class, String) - Constructor for class org.apache.commons.betwixt.io.BeanCreateRule
Convenience constructor which uses ID's for matching.
BeanCreateRule(ElementDescriptor, Class, String, boolean) - Constructor for class org.apache.commons.betwixt.io.BeanCreateRule
Constructor taking a class.
BeanCreateRule(ElementDescriptor, Context, String) - Constructor for class org.apache.commons.betwixt.io.BeanCreateRule
Convenience constructor which uses ID's for match.
BeanCreateRule(ElementDescriptor, Context, String, boolean) - Constructor for class org.apache.commons.betwixt.io.BeanCreateRule
Constructor taking a context.
BeanReader - class org.apache.commons.betwixt.io.BeanReader.
BeanReader reads a tree of beans from an XML document.
BeanReader() - Constructor for class org.apache.commons.betwixt.io.BeanReader
Construct a new BeanReader with default properties.
BeanReader(SAXParser) - Constructor for class org.apache.commons.betwixt.io.BeanReader
Construct a new BeanReader, allowing a SAXParser to be passed in.
BeanReader(XMLReader) - Constructor for class org.apache.commons.betwixt.io.BeanReader
Construct a new BeanReader, allowing an XMLReader to be passed in.
BeanWriter - class org.apache.commons.betwixt.io.BeanWriter.
BeanWriter outputs beans as XML to an io stream.
BeanWriter() - Constructor for class org.apache.commons.betwixt.io.BeanWriter
Constructor uses System.out for output.
BeanWriter(OutputStream) - Constructor for class org.apache.commons.betwixt.io.BeanWriter
Constuctor uses given OutputStream for output.
BeanWriter(Writer) - Constructor for class org.apache.commons.betwixt.io.BeanWriter
Constructor sets writer used for output.
begin(Attributes) - Method in class org.apache.commons.betwixt.digester.InfoRule
Process the beginning of this element.
begin(Attributes) - Method in class org.apache.commons.betwixt.digester.HideRule
Process the beginning of this element.
begin(Attributes) - Method in class org.apache.commons.betwixt.digester.ElementRule
Process the beginning of this element.
begin(Attributes) - Method in class org.apache.commons.betwixt.digester.AttributeRule
Process the beginning of this element.
begin(Attributes) - Method in class org.apache.commons.betwixt.digester.AddDefaultsRule
Process the beginning of this element.
begin(Attributes) - Method in class org.apache.commons.betwixt.io.BeanCreateRule
Process the beginning of this element.

C

cacheXMLBeanInfos - Variable in class org.apache.commons.betwixt.XMLIntrospector
Maps classes to XMLBeanInfo's
CapitalizeNameMapper - class org.apache.commons.betwixt.strategy.CapitalizeNameMapper.
A beanmapper which converts a type to start with an uppercase.
CapitalizeNameMapper() - Constructor for class org.apache.commons.betwixt.strategy.CapitalizeNameMapper
 
close() - Method in class org.apache.commons.betwixt.io.BeanWriter
Closes the underlying output stream
configure() - Method in class org.apache.commons.betwixt.digester.XMLBeanInfoDigester
 
configureDescriptor(AttributeDescriptor) - Method in class org.apache.commons.betwixt.digester.AttributeRule
Set the Expression and Updater from a bean property name
configureDescriptor(ElementDescriptor) - Method in class org.apache.commons.betwixt.digester.ElementRule
Set the Expression and Updater from a bean property name
configureProperty(AttributeDescriptor, PropertyDescriptor) - Static method in class org.apache.commons.betwixt.digester.XMLIntrospectorHelper
 
configureProperty(ElementDescriptor, PropertyDescriptor) - Static method in class org.apache.commons.betwixt.digester.XMLIntrospectorHelper
 
ConstantExpression - class org.apache.commons.betwixt.expression.ConstantExpression.
ConstantExpression represents a constant expression.
ConstantExpression() - Constructor for class org.apache.commons.betwixt.expression.ConstantExpression
Base constructor
ConstantExpression(Object) - Constructor for class org.apache.commons.betwixt.expression.ConstantExpression
Convenience constructor sets value property.
Context - class org.apache.commons.betwixt.expression.Context.
Context describes the context used to evaluate bean expressions.
Context() - Constructor for class org.apache.commons.betwixt.expression.Context
Construct context with default log
Context(Object, Log) - Constructor for class org.apache.commons.betwixt.expression.Context
Convenience constructor sets evaluted bean and log.
Context(Object, Map, Log) - Constructor for class org.apache.commons.betwixt.expression.Context
Convenience constructor sets evaluted bean, context variables and log.
convertChar(char) - Method in class org.apache.commons.betwixt.strategy.HyphenatedNameMapper
Performs type conversion on the given character based on whether upper or lower case conversions are being used
createBean(Attributes) - Method in class org.apache.commons.betwixt.io.BeanCreateRule
Factory method to create new bean instances
createDescriptor(PropertyDescriptor, boolean, XMLIntrospector) - Static method in class org.apache.commons.betwixt.digester.XMLIntrospectorHelper
Process a property.
createNameMapper() - Method in class org.apache.commons.betwixt.XMLIntrospector
A Factory method to lazily create a strategy used to convert bean type names into element names
createPluralStemmer() - Method in class org.apache.commons.betwixt.XMLIntrospector
A Factory method to lazily create a new strategy to detect matching singular and plural properties
createXMLBeanInfo(BeanInfo) - Method in class org.apache.commons.betwixt.XMLIntrospector
Factory method to create XMLBeanInfo instances
CyclicReferenceException - exception org.apache.commons.betwixt.io.CyclicReferenceException.
Thrown when bean evaluation finds a cycle reference.
CyclicReferenceException() - Constructor for class org.apache.commons.betwixt.io.CyclicReferenceException
Construct exception with default message.
CyclicReferenceException(String) - Constructor for class org.apache.commons.betwixt.io.CyclicReferenceException
Construct exception with given message

D

DecapitalizeNameMapper - class org.apache.commons.betwixt.strategy.DecapitalizeNameMapper.
A name mapper which converts types to a decapitalized String.
DecapitalizeNameMapper() - Constructor for class org.apache.commons.betwixt.strategy.DecapitalizeNameMapper
 
defaultAddMethods(XMLIntrospector, ElementDescriptor, Class) - Static method in class org.apache.commons.betwixt.digester.XMLIntrospectorHelper
Add any addPropety(PropertyType) methods as Updaters which are often used for 1-N relationships in beans.
DefaultNameMapper - class org.apache.commons.betwixt.strategy.DefaultNameMapper.
A default implementation of the name mapper.
DefaultNameMapper() - Constructor for class org.apache.commons.betwixt.strategy.DefaultNameMapper
 
DefaultPluralStemmer - class org.apache.commons.betwixt.strategy.DefaultPluralStemmer.
A default implementation of the plural name stemmer which tests for some common english plural/singular patterns and then uses a simple starts-with algorithm
DefaultPluralStemmer() - Constructor for class org.apache.commons.betwixt.strategy.DefaultPluralStemmer
 

E

ElementDescriptor - class org.apache.commons.betwixt.ElementDescriptor.
ElementDescriptor describes the XML elements to be created for a bean instance.
ElementDescriptor() - Constructor for class org.apache.commons.betwixt.ElementDescriptor
Base constructor
ElementDescriptor(boolean) - Constructor for class org.apache.commons.betwixt.ElementDescriptor
 
ElementDescriptor(String) - Constructor for class org.apache.commons.betwixt.ElementDescriptor
Creates a ElementDescriptor with no namespace URI or prefix
ElementDescriptor(String, String, String) - Constructor for class org.apache.commons.betwixt.ElementDescriptor
Creates a ElementDescriptor with namespace URI and qualified name
ElementRule - class org.apache.commons.betwixt.digester.ElementRule.
ElementRule the digester Rule for parsing the <element> elements.
ElementRule() - Constructor for class org.apache.commons.betwixt.digester.ElementRule
 
EmptyExpression - class org.apache.commons.betwixt.expression.EmptyExpression.
EmptyExpression returns the same value as is passed in.
EmptyExpression() - Constructor for class org.apache.commons.betwixt.expression.EmptyExpression
Should this be private?
enablePrettyPrint() - Method in class org.apache.commons.betwixt.io.BeanWriter
Switch on formatted output.
end() - Method in class org.apache.commons.betwixt.digester.InfoRule
Process the end of this element.
end() - Method in class org.apache.commons.betwixt.digester.HideRule
Process the end of this element.
end() - Method in class org.apache.commons.betwixt.digester.ElementRule
Process the end of this element.
end() - Method in class org.apache.commons.betwixt.digester.AttributeRule
Process the end of this element.
end() - Method in class org.apache.commons.betwixt.io.SAXBeanWriter
This method will announce the end of the document to the contenthandler.
end() - Method in class org.apache.commons.betwixt.io.BeanCreateRule
Process the end of this element.
end() - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Marks the start of the bean writing.
escapeAttributeValue(Object) - Method in class org.apache.commons.betwixt.io.BeanWriter
Escape the toString of the given object.
escapeBodyValue(Object) - Method in class org.apache.commons.betwixt.io.BeanWriter
Escape the toString of the given object.
evaluate(Context) - Method in class org.apache.commons.betwixt.expression.VariableExpression
Return the value of a context variable.
evaluate(Context) - Method in class org.apache.commons.betwixt.expression.StringExpression
Return the context bean as a string
evaluate(Context) - Method in class org.apache.commons.betwixt.expression.MethodExpression
Evaluate by calling the read method on the current bean
evaluate(Context) - Method in class org.apache.commons.betwixt.expression.IteratorExpression
Returns an interator over the current context
evaluate(Context) - Method in interface org.apache.commons.betwixt.expression.Expression
Evaluates the expression on the bean with the given context and returns the result
evaluate(Context) - Method in class org.apache.commons.betwixt.expression.EmptyExpression
Return the bean we're evaluating.
evaluate(Context) - Method in class org.apache.commons.betwixt.expression.ConstantExpression
Evaluate expression against given context.
expressAttribute(String, String) - Method in class org.apache.commons.betwixt.io.SAXBeanWriter
Express an attribute
expressAttribute(String, String) - Method in class org.apache.commons.betwixt.io.BeanWriter
Express an attribute
expressAttribute(String, String) - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Express an attribute
expressBodyText(String) - Method in class org.apache.commons.betwixt.io.SAXBeanWriter
Express body text
expressBodyText(String) - Method in class org.apache.commons.betwixt.io.BeanWriter
Express body text
expressBodyText(String) - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Express body text
expressElementEnd() - Method in class org.apache.commons.betwixt.io.SAXBeanWriter
Express an empty element end
expressElementEnd() - Method in class org.apache.commons.betwixt.io.BeanWriter
Express an empty element end
expressElementEnd() - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Express an empty element end
expressElementEnd(String) - Method in class org.apache.commons.betwixt.io.SAXBeanWriter
Express an element end tag using given qualifiedName
expressElementEnd(String) - Method in class org.apache.commons.betwixt.io.BeanWriter
Express an element end tag using given qualifiedName
expressElementEnd(String) - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Express an element end tag using given qualifiedName
expressElementStart(String) - Method in class org.apache.commons.betwixt.io.SAXBeanWriter
Express an element tag start using given qualified name
expressElementStart(String) - Method in class org.apache.commons.betwixt.io.BeanWriter
Express an element tag start using given qualified name
expressElementStart(String) - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Express an element tag start using given qualified name
Expression - interface org.apache.commons.betwixt.expression.Expression.
Expression represents an arbitrary expression on a bean.
expressTagClose() - Method in class org.apache.commons.betwixt.io.SAXBeanWriter
 
expressTagClose() - Method in class org.apache.commons.betwixt.io.BeanWriter
 
expressTagClose() - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
 

F

findAlternateMethod(Class, Method) - Method in class org.apache.commons.betwixt.expression.MethodExpression
Tries to find an alternate method for the given type using interfaces which gets around the problem of inner classes, such as on Map.Entry implementations.
findByXMLDescriptor(Class) - Method in class org.apache.commons.betwixt.XMLIntrospector
Attempt to lookup the XML descriptor for the given class using the classname + ".betwixt" using the same ClassLoader used to load the class or return null if it could not be loaded
findGetCollectionDescriptor(XMLIntrospector, ElementDescriptor, String) - Static method in class org.apache.commons.betwixt.digester.XMLIntrospectorHelper
Attempts to find the element descriptor for the getter property that typically matches a collection or array.
findPluralDescriptor(String, Map) - Method in interface org.apache.commons.betwixt.strategy.PluralStemmer
 
findPluralDescriptor(String, Map) - Method in class org.apache.commons.betwixt.strategy.DefaultPluralStemmer
 
finish() - Method in class org.apache.commons.betwixt.io.BeanCreateRule
Tidy up.
flush() - Method in class org.apache.commons.betwixt.io.BeanWriter
Allows output to be flushed on the underlying output stream
flushCache() - Method in class org.apache.commons.betwixt.XMLIntrospector
Flush existing cached XMLBeanInfo's.

G

getArguments() - Method in class org.apache.commons.betwixt.expression.MethodExpression
Allows derived objects to create arguments for the method call
getAttributeDescriptors() - Method in class org.apache.commons.betwixt.ElementDescriptor
Returns the attribute descriptors for this element
getAttributeList() - Method in class org.apache.commons.betwixt.ElementDescriptor
Lazily creates the mutable List, nullifiying the array so that as items are added to the list the Array is ignored until it is explicitly asked for
getAttributeNameMapper() - Method in class org.apache.commons.betwixt.XMLIntrospector
 
getBean() - Method in class org.apache.commons.betwixt.expression.Context
Returns the current bean.
getBeanClass() - Method in class org.apache.commons.betwixt.XMLBeanInfo
Gets the beans class that this XML info refers to
getBeanClass() - Method in class org.apache.commons.betwixt.digester.XMLBeanInfoDigester
 
getBeanClass() - Method in class org.apache.commons.betwixt.digester.RuleSupport
 
getBeanReader() - Method in class org.apache.commons.betwixt.io.BeanCreateRule
Get the associated bean reader.
getContextExpression() - Method in class org.apache.commons.betwixt.ElementDescriptor
Returns the expression used to evaluate the new context of this element
getCount() - Method in class org.apache.commons.betwixt.io.id.SequentialIDGenerator
Get the current counter value
getElementDescriptor() - Method in class org.apache.commons.betwixt.XMLBeanInfo
Get descriptor for bean represention
getElementDescriptor(ElementDescriptor) - Method in class org.apache.commons.betwixt.io.BeanCreateRule
Allows the navigation from a reference to a property object to the descriptor defining what the property is.
getElementDescriptors() - Method in class org.apache.commons.betwixt.ElementDescriptor
Returns the child element descriptors for this element
getElementList() - Method in class org.apache.commons.betwixt.ElementDescriptor
Lazily creates the mutable List
getElementNameMapper() - Method in class org.apache.commons.betwixt.XMLIntrospector
 
getEndOfLine() - Method in class org.apache.commons.betwixt.io.BeanWriter
Returns the string used for end of lines
getIDAttribute() - Method in class org.apache.commons.betwixt.XMLBeanInfo
Search attributes for one matching ID attribute name
getIDAttributeName() - Method in class org.apache.commons.betwixt.XMLBeanInfo
Get name of ID attribute.
getIdGenerator() - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Get IDGenerator implementation used to generate ID attribute values .
getIDREFAttributeName() - Method in class org.apache.commons.betwixt.XMLBeanInfo
Get IDREF attribute name This is used (for example) to deal with cyclic references.
getIndent() - Method in class org.apache.commons.betwixt.io.BeanWriter
Returns the string used for indentation
getInstance() - Static method in class org.apache.commons.betwixt.expression.StringExpression
Get the singleton
getInstance() - Static method in class org.apache.commons.betwixt.expression.EmptyExpression
Return the EmptyExpression singleton.
getLastId() - Method in interface org.apache.commons.betwixt.io.IDGenerator
Get the last ID value generated.
getLastId() - Method in class org.apache.commons.betwixt.io.id.AbstractIDGenerator
Get last ID returned.
getLocalName() - Method in class org.apache.commons.betwixt.NodeDescriptor
Returns the local name, excluding any namespace prefix
getLog() - Method in class org.apache.commons.betwixt.XMLIntrospector
Get the current logging implementation.
getLog() - Static method in class org.apache.commons.betwixt.digester.XMLIntrospectorHelper
Get the current logging implementation.
getLog() - Method in class org.apache.commons.betwixt.expression.Context
Get the current log.
getLog() - Method in class org.apache.commons.betwixt.io.SAXBeanWriter
Get the current level for logging.
getLog() - Method in class org.apache.commons.betwixt.io.BeanWriter
Get the current level for logging.
getLog() - Method in class org.apache.commons.betwixt.io.BeanReader
Get the current level for logging.
getLog() - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Get the current level for logging.
getMatchIDs() - Method in class org.apache.commons.betwixt.io.BeanReader
Should the reader use ID attributes to match beans.
getMethod() - Method in class org.apache.commons.betwixt.expression.MethodUpdater
Gets the constant value of this expression
getMethod() - Method in class org.apache.commons.betwixt.expression.MethodExpression
Gets the constant value of this expression
getNameMapper() - Method in class org.apache.commons.betwixt.XMLIntrospector
Deprecated. getNameMapper is split up in XMLIntrospector.getElementNameMapper() and XMLIntrospector.getAttributeNameMapper()
getPluralStemmer() - Method in class org.apache.commons.betwixt.XMLIntrospector
 
getPositiveIds() - Method in class org.apache.commons.betwixt.io.id.RandomIDGenerator
Get whether only positive ID's should be generated
getProcessedPropertyNameSet() - Method in class org.apache.commons.betwixt.digester.XMLBeanInfoDigester
 
getProcessedPropertyNameSet() - Method in class org.apache.commons.betwixt.digester.RuleSupport
 
getPropertyDescriptor(Class, String) - Method in class org.apache.commons.betwixt.digester.ElementRule
Returns the property descriptor for the class and property name.
getPropertyName() - Method in class org.apache.commons.betwixt.NodeDescriptor
 
getPropertyType() - Method in class org.apache.commons.betwixt.NodeDescriptor
 
getPropertyType(String, Class, String) - Method in class org.apache.commons.betwixt.digester.ElementRule
 
getQualifiedName() - Method in class org.apache.commons.betwixt.NodeDescriptor
Returns the qualified name, including any namespace prefix
getRootElementDescriptor() - Method in class org.apache.commons.betwixt.digester.AddDefaultsRule
 
getSeparator() - Method in class org.apache.commons.betwixt.strategy.HyphenatedNameMapper
 
getSingularPropertyType() - Method in class org.apache.commons.betwixt.NodeDescriptor
 
getTextExpression() - Method in class org.apache.commons.betwixt.NodeDescriptor
Returns the expression used to evaluate the text value of this node
getUpdater() - Method in class org.apache.commons.betwixt.NodeDescriptor
the updater used to update the current bean from the text value of this node
getURI() - Method in class org.apache.commons.betwixt.NodeDescriptor
Returns the namespace URI that this node belongs to or "" if there is no namespace defined
getValue() - Method in class org.apache.commons.betwixt.expression.ConstantExpression
Gets the constant value of this expression
getVariable(String) - Method in class org.apache.commons.betwixt.expression.Context
Get the value of a particular context variable.
getVariableName() - Method in class org.apache.commons.betwixt.expression.VariableExpression
Gets the variable name
getVariables() - Method in class org.apache.commons.betwixt.expression.Context
Get context variables.
getWriteIDs() - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Get whether generated ID attribute values should be added to the elements
getXMLInfoDigester() - Method in class org.apache.commons.betwixt.digester.RuleSupport
 
getXMLIntrospector() - Method in class org.apache.commons.betwixt.digester.XMLBeanInfoDigester
 
getXMLIntrospector() - Method in class org.apache.commons.betwixt.digester.RuleSupport
 
getXMLIntrospector() - Method in class org.apache.commons.betwixt.io.BeanReader
Get the introspector used.
getXMLIntrospector() - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Get the introspector used.

H

handleException(Context, Exception) - Method in class org.apache.commons.betwixt.expression.MethodUpdater
Strategy method to allow derivations to handle exceptions differently.
handleException(Context, Exception) - Method in class org.apache.commons.betwixt.expression.MethodExpression
Log error to context's logger.
hasAttributes() - Method in class org.apache.commons.betwixt.ElementDescriptor
Returns true if this element has attributes
hasChildren() - Method in class org.apache.commons.betwixt.ElementDescriptor
Returns true if this element has child elements
HideRule - class org.apache.commons.betwixt.digester.HideRule.
HideRule hides the property of the given name.
HideRule() - Constructor for class org.apache.commons.betwixt.digester.HideRule
 
HyphenatedNameMapper - class org.apache.commons.betwixt.strategy.HyphenatedNameMapper.
A name mapper which converts types to a hypenated String.
HyphenatedNameMapper() - Constructor for class org.apache.commons.betwixt.strategy.HyphenatedNameMapper
 
HyphenatedNameMapper(boolean) - Constructor for class org.apache.commons.betwixt.strategy.HyphenatedNameMapper
 
HyphenatedNameMapper(boolean, String) - Constructor for class org.apache.commons.betwixt.strategy.HyphenatedNameMapper
 

I

idGenerator - Variable in class org.apache.commons.betwixt.io.AbstractBeanWriter
Used to generate ID attribute values
IDGenerator - interface org.apache.commons.betwixt.io.IDGenerator.
Interface allowing pluggable ID attribute value generators.
idMap - Variable in class org.apache.commons.betwixt.io.AbstractBeanWriter
Map containing ID attribute values for beans
indentLevel - Variable in class org.apache.commons.betwixt.io.AbstractBeanWriter
indentation level
InfoRule - class org.apache.commons.betwixt.digester.InfoRule.
InfoRule the digester Rule for parsing the info element.
InfoRule() - Constructor for class org.apache.commons.betwixt.digester.InfoRule
 
introspect(BeanInfo) - Method in class org.apache.commons.betwixt.XMLIntrospector
Create a standard XMLBeanInfo by introspection.
introspect(Class) - Method in class org.apache.commons.betwixt.XMLIntrospector
Create a standard XMLBeanInfo by introspection.
introspect(Object) - Method in class org.apache.commons.betwixt.XMLIntrospector
Create a standard XMLBeanInfo by introspection The actual introspection depends only on the BeanInfo associated with the bean.
introspector - Variable in class org.apache.commons.betwixt.io.AbstractBeanWriter
Introspector used
isAttributesForPrimitives() - Method in class org.apache.commons.betwixt.XMLIntrospector
Should attributes (or elements) be used for primitive types.
isAttributesForPrimitives() - Method in class org.apache.commons.betwixt.digester.XMLBeanInfoDigester
Should attributes (or elements) be used for primitive types.
isCachingEnabled() - Method in class org.apache.commons.betwixt.XMLIntrospector
Is XMLBeanInfo caching enabled?
isLoopType(Class) - Method in class org.apache.commons.betwixt.XMLIntrospector
Returns true if the type is a loop type
isLoopType(Class) - Static method in class org.apache.commons.betwixt.digester.XMLIntrospectorHelper
Returns true if the type is a loop type
isPrimitiveType() - Method in class org.apache.commons.betwixt.ElementDescriptor
 
isPrimitiveType(Class) - Method in class org.apache.commons.betwixt.XMLIntrospector
Returns true for primitive types
isPrimitiveType(Class) - Static method in class org.apache.commons.betwixt.digester.XMLIntrospectorHelper
Returns true for primitive types
isUpperCase() - Method in class org.apache.commons.betwixt.strategy.HyphenatedNameMapper
 
isWrapCollectionsInElement() - Method in class org.apache.commons.betwixt.XMLIntrospector
 
isWrapCollectionsInElement() - Method in class org.apache.commons.betwixt.ElementDescriptor
Returns if this element is a collection element
IteratorExpression - class org.apache.commons.betwixt.expression.IteratorExpression.
IteratorExpression returns an iterator over the current context.
IteratorExpression(Expression) - Constructor for class org.apache.commons.betwixt.expression.IteratorExpression
Construct IteratorExpression using given expression for initial evaluation.

L

loadClass(String) - Method in class org.apache.commons.betwixt.digester.AttributeRule
 
log - Variable in class org.apache.commons.betwixt.XMLIntrospector
Log used for logging (Doh!)
log - Static variable in class org.apache.commons.betwixt.digester.XMLIntrospectorHelper
Log used for logging (Doh!)
log - Static variable in class org.apache.commons.betwixt.strategy.DefaultPluralStemmer
Log used for logging (Doh!)

M

makeElementDescriptorMap(ElementDescriptor, Map) - Static method in class org.apache.commons.betwixt.digester.XMLIntrospectorHelper
Creates a map where the keys are the property names and the values are the ElementDescriptors
mapTypeToElementName(String) - Method in interface org.apache.commons.betwixt.strategy.NameMapper
 
mapTypeToElementName(String) - Method in class org.apache.commons.betwixt.strategy.HyphenatedNameMapper
 
mapTypeToElementName(String) - Method in class org.apache.commons.betwixt.strategy.DefaultNameMapper
 
mapTypeToElementName(String) - Method in class org.apache.commons.betwixt.strategy.DecapitalizeNameMapper
 
mapTypeToElementName(String) - Method in class org.apache.commons.betwixt.strategy.CapitalizeNameMapper
 
MethodExpression - class org.apache.commons.betwixt.expression.MethodExpression.
MethodExpression evaluates a method on the current bean context.
MethodExpression() - Constructor for class org.apache.commons.betwixt.expression.MethodExpression
Base constructor
MethodExpression(Method) - Constructor for class org.apache.commons.betwixt.expression.MethodExpression
Convenience constructor sets method property
MethodUpdater - class org.apache.commons.betwixt.expression.MethodUpdater.
MethodUpdater updates the current bean context by calling a WriteMethod with the String value from the XML attribute or element.
MethodUpdater() - Constructor for class org.apache.commons.betwixt.expression.MethodUpdater
Base constructor
MethodUpdater(Method) - Constructor for class org.apache.commons.betwixt.expression.MethodUpdater
Convenience constructor sets method property

N

NameMapper - interface org.apache.commons.betwixt.strategy.NameMapper.
A plugin Strategy pattern for converting java type names into element names.
newContext(Object) - Method in class org.apache.commons.betwixt.expression.Context
Returns a new child context with the given bean but the same log and variables.
nextId() - Method in interface org.apache.commons.betwixt.io.IDGenerator
Generate a new ID attribute value.
nextId() - Method in class org.apache.commons.betwixt.io.id.AbstractIDGenerator
Generate next ID.
nextIdImpl() - Method in class org.apache.commons.betwixt.io.id.SequentialIDGenerator
Increment counter and then return value.
nextIdImpl() - Method in class org.apache.commons.betwixt.io.id.RandomIDGenerator
Provide a random ID
nextIdImpl() - Method in class org.apache.commons.betwixt.io.id.AbstractIDGenerator
Subclasses should provide an implementation for this method.
NodeDescriptor - class org.apache.commons.betwixt.NodeDescriptor.
Common superclass for ElementDescriptor and AttributeDescriptor.
NodeDescriptor() - Constructor for class org.apache.commons.betwixt.NodeDescriptor
Base constructor
NodeDescriptor(String) - Constructor for class org.apache.commons.betwixt.NodeDescriptor
Creates a NodeDescriptor with no namespace URI or prefix
NodeDescriptor(String, String, String) - Constructor for class org.apache.commons.betwixt.NodeDescriptor
Creates a NodeDescriptor with namespace URI and qualified name
NULL_ARGUMENTS - Static variable in class org.apache.commons.betwixt.expression.MethodExpression
null arguments
NULL_CLASSES - Static variable in class org.apache.commons.betwixt.expression.MethodExpression
 

O

org.apache.commons.betwixt - package org.apache.commons.betwixt
This package contains the main betwixt introspection code.
org.apache.commons.betwixt.digester - package org.apache.commons.betwixt.digester
This package contains the Digester and associated rules and helper classes for parsing the XMLBeanInfo metadata from an XML file format.
org.apache.commons.betwixt.expression - package org.apache.commons.betwixt.expression
This package contains the system which extracts values from beans.
org.apache.commons.betwixt.io - package org.apache.commons.betwixt.io
Package contains classes dealing directly with the reading and writing of beans.
org.apache.commons.betwixt.io.id - package org.apache.commons.betwixt.io.id
This package is home to IDGenerator implementations.
org.apache.commons.betwixt.strategy - package org.apache.commons.betwixt.strategy
This package contains a variety of plugin Strategy patterns that can be used to customize the default behaviour.of the XMLIntrospector

P

PluralStemmer - interface org.apache.commons.betwixt.strategy.PluralStemmer.
A plugin Strategy pattern which will detect the plural property which maps to a singular property name.

R

RandomIDGenerator - class org.apache.commons.betwixt.io.id.RandomIDGenerator.
Generates ID's at random.
RandomIDGenerator() - Constructor for class org.apache.commons.betwixt.io.id.RandomIDGenerator
Constructor sets the PositiveIds property to true.
RandomIDGenerator(boolean) - Constructor for class org.apache.commons.betwixt.io.id.RandomIDGenerator
Constructor sets PositiveIds property.
registerBeanClass(Class) - Method in class org.apache.commons.betwixt.io.BeanReader
Registers a bean class which is used by the reader to deduce the digester rules.
registerBeanClass(String, Class) - Method in class org.apache.commons.betwixt.io.BeanReader
Registers a bean class at the given path expression which is used by the reader to deduce the digester rules.
RuleSupport - class org.apache.commons.betwixt.digester.RuleSupport.
RuleSupport is an abstract base class containing useful helper methods.
RuleSupport() - Constructor for class org.apache.commons.betwixt.digester.RuleSupport
 

S

SAXBeanWriter - class org.apache.commons.betwixt.io.SAXBeanWriter.
The SAXBeanwriter will send events to a ContentHandler
SAXBeanWriter(ContentHandler) - Constructor for class org.apache.commons.betwixt.io.SAXBeanWriter
Constructor sets writer used for output.
SequentialIDGenerator - class org.apache.commons.betwixt.io.id.SequentialIDGenerator.
Generates ID's in numeric sequence.
SequentialIDGenerator() - Constructor for class org.apache.commons.betwixt.io.id.SequentialIDGenerator
Base constructor.
SequentialIDGenerator(int) - Constructor for class org.apache.commons.betwixt.io.id.SequentialIDGenerator
Constructor sets the start value for the counter.
setAttributeDescriptors(AttributeDescriptor[]) - Method in class org.apache.commons.betwixt.ElementDescriptor
Set AttributesDescriptors for this element
setAttributeNameMapper(NameMapper) - Method in class org.apache.commons.betwixt.XMLIntrospector
Sets the strategy used to convert bean type names into attribute names
setAttributesForPrimitives(boolean) - Method in class org.apache.commons.betwixt.XMLIntrospector
Set whether attributes (or elements) should be used for primitive types.
setAttributesForPrimitives(boolean) - Method in class org.apache.commons.betwixt.digester.XMLBeanInfoDigester
Set whether attributes (or elements) should be used for primitive types.
setBean(Object) - Method in class org.apache.commons.betwixt.expression.Context
Set the current bean.
setBeanClass(Class) - Method in class org.apache.commons.betwixt.XMLBeanInfo
Sets the beans class that this XML info refers to
setBeanClass(Class) - Method in class org.apache.commons.betwixt.digester.XMLBeanInfoDigester
Sets the beans class for this XML descriptor
setCachingEnabled(boolean) - Method in class org.apache.commons.betwixt.XMLIntrospector
Set whether XMLBeanInfo caching should be enabled.
setContextExpression(Expression) - Method in class org.apache.commons.betwixt.ElementDescriptor
Sets the expression used to evaluate the new context of this element
setElementDescriptor(ElementDescriptor) - Method in class org.apache.commons.betwixt.XMLBeanInfo
Set descriptor for bean represention
setElementDescriptors(ElementDescriptor[]) - Method in class org.apache.commons.betwixt.ElementDescriptor
Set descriptors for child element of this element
setElementNameMapper(NameMapper) - Method in class org.apache.commons.betwixt.XMLIntrospector
Sets the strategy used to convert bean type names into element names
setEndOfLine(String) - Method in class org.apache.commons.betwixt.io.BeanWriter
Sets the string used for end of lines Produces a warning the specified value contains an invalid whitespace character
setIDAttributeName(String) - Method in class org.apache.commons.betwixt.XMLBeanInfo
Set name of ID attribute This is used to write (for example) automatic ID attribute values.
setIdGenerator(IDGenerator) - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Set IDGenerator implementation used to generate ID attribute values.
setIDREFAttributeName(String) - Method in class org.apache.commons.betwixt.XMLBeanInfo
Set IDREF attribute name This is used (for example) to deal with cyclic references.
setIndent(String) - Method in class org.apache.commons.betwixt.io.BeanWriter
Sets the string used for end of lines
setLocalName(String) - Method in class org.apache.commons.betwixt.NodeDescriptor
Sets the local name
setLog() - Method in class org.apache.commons.betwixt.expression.Context
Set the logger used to log (Doh!).
setLog(Log) - Method in class org.apache.commons.betwixt.XMLIntrospector
Set the current logging implementation.
setLog(Log) - Static method in class org.apache.commons.betwixt.digester.XMLIntrospectorHelper
Set the current logging implementation.
setLog(Log) - Method in class org.apache.commons.betwixt.io.SAXBeanWriter
Set the current logging level.
setLog(Log) - Method in class org.apache.commons.betwixt.io.BeanWriter
Set the current logging level.
setLog(Log) - Method in class org.apache.commons.betwixt.io.BeanReader
Set the current logging level.
setLog(Log) - Static method in class org.apache.commons.betwixt.io.BeanCreateRule
Set log to be used by BeanCreateRule instances
setLog(Log) - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Set the current logging level.
setMatchIDs(boolean) - Method in class org.apache.commons.betwixt.io.BeanReader
Set whether the read should use ID attributes to match beans.
setMethod(Method) - Method in class org.apache.commons.betwixt.expression.MethodUpdater
Sets the constant value of this expression
setMethod(Method) - Method in class org.apache.commons.betwixt.expression.MethodExpression
Sets the constant value of this expression
setNameMapper(NameMapper) - Method in class org.apache.commons.betwixt.XMLIntrospector
Deprecated. setNameMapper is split up in XMLIntrospector.setElementNameMapper(NameMapper) and XMLIntrospector.setAttributeNameMapper(NameMapper)
setPluralStemmer(PluralStemmer) - Method in class org.apache.commons.betwixt.XMLIntrospector
Sets the strategy used to detect matching singular and plural properties
setPositiveIds(boolean) - Method in class org.apache.commons.betwixt.io.id.RandomIDGenerator
Set whether only positive ID's should be generated
setPrimitiveType(boolean) - Method in class org.apache.commons.betwixt.ElementDescriptor
Sets whether this element refers to a primitive type (or property of a parent object)
setPropertyName(String) - Method in class org.apache.commons.betwixt.NodeDescriptor
Sets the property expression to which this node refers to, or null if it is just a constant
setPropertyType(Class) - Method in class org.apache.commons.betwixt.NodeDescriptor
Sets the property type associated with this node, if any
setQualifiedName(String) - Method in class org.apache.commons.betwixt.NodeDescriptor
Sets the qualified name
setSeparator(String) - Method in class org.apache.commons.betwixt.strategy.HyphenatedNameMapper
Sets the separator used to seperate words, which defaults to '-'
setSingularPropertyType(Class) - Method in class org.apache.commons.betwixt.NodeDescriptor
Sets the singular property type (i.e.
setTextExpression(Expression) - Method in class org.apache.commons.betwixt.NodeDescriptor
Sets the expression used to evaluate the text value of this node
setUpdater(Updater) - Method in class org.apache.commons.betwixt.NodeDescriptor
sets the updater used to update the current bean from the text value of this node
setUpperCase(boolean) - Method in class org.apache.commons.betwixt.strategy.HyphenatedNameMapper
Sets whether upper or lower case conversions should be performed, which defaults to false for lower case
setURI(String) - Method in class org.apache.commons.betwixt.NodeDescriptor
Sets the namespace URI that this node belongs to.
setUseBeanInfoSearchPath(boolean) - Method in class org.apache.commons.betwixt.XMLIntrospector
Specifies if you want to use the beanInfoSearchPath
setValue(Object) - Method in class org.apache.commons.betwixt.expression.ConstantExpression
Sets the constant value of this expression
setVariable(String, Object) - Method in class org.apache.commons.betwixt.expression.Context
Set the value of a particular context variable.
setVariableName(String) - Method in class org.apache.commons.betwixt.expression.VariableExpression
Sets the variable name
setVariables(Map) - Method in class org.apache.commons.betwixt.expression.Context
Set context variables.
setWrapCollectionsInElement(boolean) - Method in class org.apache.commons.betwixt.XMLIntrospector
Sets whether we should we wrap collections in an extra element?
setWrapCollectionsInElement(boolean) - Method in class org.apache.commons.betwixt.ElementDescriptor
Specifies if this is a collection element Normally only used with the WrapCollectionsInElement setting
setWriteIDs(boolean) - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Set whether generated ID attribute values should be added to the elements If this property is set to false, then CyclicReferenceException will be thrown whenever a cyclic occurs in the bean graph.
setXMLIntrospector(XMLIntrospector) - Method in class org.apache.commons.betwixt.digester.XMLBeanInfoDigester
Sets the introspector that is using me
setXMLIntrospector(XMLIntrospector) - Method in class org.apache.commons.betwixt.io.BeanReader
Set the introspector to be used.
setXMLIntrospector(XMLIntrospector) - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Set the introspector to be used.
start() - Method in class org.apache.commons.betwixt.io.SAXBeanWriter
This will announce the start of the document to the contenthandler.
start() - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Marks the start of the bean writing.
StringExpression - class org.apache.commons.betwixt.expression.StringExpression.
StringExpression returns the current context object as a string.
StringExpression() - Constructor for class org.apache.commons.betwixt.expression.StringExpression
Should this be private?
swapDescriptor(ElementDescriptor, ElementDescriptor, ElementDescriptor) - Static method in class org.apache.commons.betwixt.digester.XMLIntrospectorHelper
Traverse the tree of element descriptors and find the oldValue and swap it with the newValue.

T

toString() - Method in class org.apache.commons.betwixt.XMLBeanInfo
 
toString() - Method in class org.apache.commons.betwixt.ElementDescriptor
 
toString() - Method in class org.apache.commons.betwixt.AttributeDescriptor
Return something useful for logging
toString() - Method in class org.apache.commons.betwixt.expression.VariableExpression
 
toString() - Method in class org.apache.commons.betwixt.expression.StringExpression
 
toString() - Method in class org.apache.commons.betwixt.expression.MethodUpdater
 
toString() - Method in class org.apache.commons.betwixt.expression.MethodExpression
 
toString() - Method in class org.apache.commons.betwixt.expression.IteratorExpression
 
toString() - Method in class org.apache.commons.betwixt.expression.EmptyExpression
 
toString() - Method in class org.apache.commons.betwixt.expression.ConstantExpression
 
toString() - Method in class org.apache.commons.betwixt.io.BeanCreateRule
Return something meaningful for logging.

U

update(Context, Object) - Method in interface org.apache.commons.betwixt.expression.Updater
Updates the current bean context with a new String value.
update(Context, Object) - Method in class org.apache.commons.betwixt.expression.MethodUpdater
Updates the current bean context with the given String value
update(Context, String) - Method in class org.apache.commons.betwixt.expression.VariableExpression
 
update(Context, String) - Method in class org.apache.commons.betwixt.expression.StringExpression
 
update(Context, String) - Method in class org.apache.commons.betwixt.expression.MethodExpression
 
update(Context, String) - Method in class org.apache.commons.betwixt.expression.IteratorExpression
 
update(Context, String) - Method in interface org.apache.commons.betwixt.expression.Expression
Updates the current bean context with a new String value.
update(Context, String) - Method in class org.apache.commons.betwixt.expression.EmptyExpression
 
update(Context, String) - Method in class org.apache.commons.betwixt.expression.ConstantExpression
 
Updater - interface org.apache.commons.betwixt.expression.Updater.
Updater acts like an lvalue which updates the current context bean from some text from an XML attribute or element.
useBeanInfoSearchPath() - Method in class org.apache.commons.betwixt.XMLIntrospector
By default it will be false.

V

VariableExpression - class org.apache.commons.betwixt.expression.VariableExpression.
VariableExpression represents a variable expression such as $foo which returns the value of the given variable.
VariableExpression() - Constructor for class org.apache.commons.betwixt.expression.VariableExpression
Base constructor
VariableExpression(String) - Constructor for class org.apache.commons.betwixt.expression.VariableExpression
Convenience constructor sets VariableName property

W

write(Object) - Method in class org.apache.commons.betwixt.io.BeanWriter
 
write(Object) - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Writes the given bean to the current stream using the XML introspector.
write(String, ElementDescriptor, Context) - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Writes the given element
write(String, ElementDescriptor, Context, String, String) - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Writes the given element adding an ID attribute
write(String, Object) - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Writes the given bean to the current stream using the given qualifiedName.
writeAttribute(AttributeDescriptor, Context) - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Writes an attribute declaration
writeAttributes(ElementDescriptor, Context) - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Writes the attribute declarations
writeContent(ElementDescriptor, Context) - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Writes the element content.
writeIDREFElement(String, String, String) - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
 
writeIDs - Variable in class org.apache.commons.betwixt.io.AbstractBeanWriter
Should generated ID attribute values be added to the elements?
writeIndent() - Method in class org.apache.commons.betwixt.io.BeanWriter
Writes out indent's to the current indentLevel
writeIndent() - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
 
writePrintln() - Method in class org.apache.commons.betwixt.io.BeanWriter
Writes out an empty line.
writePrintln() - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
 
writeRestOfElement(String, ElementDescriptor, Context) - Method in class org.apache.commons.betwixt.io.AbstractBeanWriter
Write attributes, child elements and element end
writeXmlDeclaration(String) - Method in class org.apache.commons.betwixt.io.BeanWriter
A helper method that allows you to write the XML Declaration.

X

XMLBeanInfo - class org.apache.commons.betwixt.XMLBeanInfo.
XMLBeanInfo represents the XML metadata information used to map a Java Bean cleanly to XML.
XMLBeanInfo(Class) - Constructor for class org.apache.commons.betwixt.XMLBeanInfo
Base constructor
XMLBeanInfoDigester - class org.apache.commons.betwixt.digester.XMLBeanInfoDigester.
XMLBeanInfoDigester is a digester of XML files containing XMLBeanInfo definitions for a JavaBean.
XMLBeanInfoDigester() - Constructor for class org.apache.commons.betwixt.digester.XMLBeanInfoDigester
Construct a new XMLBeanInfoDigester with default properties.
XMLBeanInfoDigester(SAXParser) - Constructor for class org.apache.commons.betwixt.digester.XMLBeanInfoDigester
Construct a new XMLBeanInfoDigester, allowing a SAXParser to be passed in.
XMLBeanInfoDigester(XMLReader) - Constructor for class org.apache.commons.betwixt.digester.XMLBeanInfoDigester
Construct a new XMLBeanInfoDigester, allowing an XMLReader to be passed in.
XMLIntrospector - class org.apache.commons.betwixt.XMLIntrospector.
XMLIntrospector an introspector of beans to create a XMLBeanInfo instance.
XMLIntrospector() - Constructor for class org.apache.commons.betwixt.XMLIntrospector
Base constructor
XMLIntrospectorHelper - class org.apache.commons.betwixt.digester.XMLIntrospectorHelper.
XMLIntrospectorHelper a helper class for common code shared between the digestor and introspector.
XMLIntrospectorHelper() - Constructor for class org.apache.commons.betwixt.digester.XMLIntrospectorHelper
Base constructor

A B C D E F G H I L M N O P R S T U V W X

Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.