Package | Description |
---|---|
org.apache.commons.betwixt |
This package contains the main betwixt introspection code.
|
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.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.schema |
WARNING: EXPERIMENTAL
Contains classes that generate XML (w3c) schema
from
Betwixt descriptors. |
org.apache.commons.betwixt.schema.strategy | |
org.apache.commons.betwixt.schema.strategy.impl | |
org.apache.commons.betwixt.strategy |
This package contains a variety of plugin Strategy patterns that can be used to customize the
default behaviours.
|
Modifier and Type | Method and Description |
---|---|
ElementDescriptor |
ElementDescriptor.findParent(ElementDescriptor elementDescriptor)
Finds the parent of the given descriptor.
|
ElementDescriptor |
XMLBeanInfo.getElementDescriptor()
Gets descriptor for bean represention
|
ElementDescriptor |
ElementDescriptor.getElementDescriptor(String name)
Gets a child ElementDescriptor matching the given name if one exists.
|
ElementDescriptor[] |
ElementDescriptor.getElementDescriptors()
Returns descriptors for the child elements of the element this describes.
|
Modifier and Type | Method and Description |
---|---|
void |
ElementDescriptor.addElementDescriptor(ElementDescriptor descriptor)
Adds a descriptor for a child element.
|
void |
XMLIntrospector.assignAdder(Method twinParameterAdderMethod,
ElementDescriptor matchingDescriptor)
Assigns the given method as an adder method to the given descriptor.
|
void |
XMLIntrospector.defaultAddMethods(ElementDescriptor rootDescriptor,
Class beanClass)
Add any addPropety(PropertyType) methods as Updaters
which are often used for 1-N relationships in beans.
|
void |
XMLIntrospector.defaultAddMethods(ElementDescriptor rootDescriptor,
Class beanClass,
boolean preservePropertyName)
Add any addPropety(PropertyType) methods as Updaters
which are often used for 1-N relationships in beans.
|
ElementDescriptor |
ElementDescriptor.findParent(ElementDescriptor elementDescriptor)
Finds the parent of the given descriptor.
|
void |
ElementDescriptor.removeElementDescriptor(ElementDescriptor descriptor)
Removes an element descriptor from this element descriptor.
|
void |
XMLBeanInfo.setElementDescriptor(ElementDescriptor elementDescriptor)
Sets descriptor for bean represention
|
void |
ElementDescriptor.setElementDescriptors(ElementDescriptor[] elementDescriptors)
Sets the descriptors for the child element of the element this describes.
|
Modifier and Type | Method and Description |
---|---|
protected static ElementDescriptor |
XMLIntrospectorHelper.findGetCollectionDescriptor(XMLIntrospector introspector,
ElementDescriptor rootDescriptor,
String propertyName)
Deprecated.
0.6 moved into XMLIntrospector
|
protected ElementDescriptor |
AddDefaultsRule.getRootElementDescriptor()
Gets an
ElementDescriptor for the top on digester's stack. |
Modifier and Type | Method and Description |
---|---|
protected void |
ElementRule.configureDescriptor(ElementDescriptor elementDescriptor)
Sets the Expression and Updater from a bean property name Uses the
default updater (from the standard java bean property).
|
protected void |
ElementRule.configureDescriptor(ElementDescriptor elementDescriptor,
String updateMethodName)
Deprecated.
now calls
#configureDescriptor(ElementDescriptor, String, boolean)
which allow accessibility to be forced. The subclassing API
was not really considered carefully when this class was
created. If anyone subclasses this method please contact the
mailing list and suitable hooks will be placed into the code. |
static void |
XMLIntrospectorHelper.configureProperty(ElementDescriptor elementDescriptor,
PropertyDescriptor propertyDescriptor)
Deprecated.
0.6 unused
|
static void |
XMLIntrospectorHelper.configureProperty(ElementDescriptor elementDescriptor,
PropertyDescriptor propertyDescriptor,
String updateMethodName,
Class beanClass)
Deprecated.
0.6 moved into ElementRule
|
static void |
XMLIntrospectorHelper.defaultAddMethods(XMLIntrospector introspector,
ElementDescriptor rootDescriptor,
Class beanClass)
Deprecated.
0.6 use the method in XMLIntrospector instead
|
protected static ElementDescriptor |
XMLIntrospectorHelper.findGetCollectionDescriptor(XMLIntrospector introspector,
ElementDescriptor rootDescriptor,
String propertyName)
Deprecated.
0.6 moved into XMLIntrospector
|
protected static void |
XMLIntrospectorHelper.makeElementDescriptorMap(ElementDescriptor rootDescriptor,
Map map)
Deprecated.
0.6 moved into XMLIntrospector
|
protected static void |
XMLIntrospectorHelper.swapDescriptor(ElementDescriptor rootDescriptor,
ElementDescriptor oldValue,
ElementDescriptor newValue)
Deprecated.
0.6 now unused
|
Modifier and Type | Method and Description |
---|---|
abstract ElementDescriptor |
WriteContext.getCurrentDescriptor()
Gets the descriptor for the element who content
is currently being created.
|
protected ElementDescriptor |
BeanCreateRule.getElementDescriptor(ElementDescriptor propertyDescriptor)
Deprecated.
Allows the navigation from a reference to a property object to the descriptor defining what
the property is.
|
Modifier and Type | Method and Description |
---|---|
protected void |
BeanReader.addBeanCreateRule(String path,
ElementDescriptor elementDescriptor,
Class beanClass)
Adds a new bean create rule for the specified path
|
protected void |
BeanCreateRule.addChildRules(String prefix,
ElementDescriptor currentDescriptor)
Deprecated.
Add child rules for given descriptor at given prefix
|
protected void |
BeanCreateRule.addPrimitiveTypeRule(String path,
ElementDescriptor childDescriptor)
Deprecated.
Adds a new Digester rule to process the text as a primitive type
|
protected ElementDescriptor |
BeanCreateRule.getElementDescriptor(ElementDescriptor propertyDescriptor)
Deprecated.
Allows the navigation from a reference to a property object to the descriptor defining what
the property is.
|
protected void |
AbstractBeanWriter.write(String qualifiedName,
ElementDescriptor elementDescriptor,
Context context)
Deprecated.
0.5 replaced by new SAX inspired API
|
protected void |
AbstractBeanWriter.write(String qualifiedName,
ElementDescriptor elementDescriptor,
Context context,
String idAttribute,
String idValue)
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 boolean |
AbstractBeanWriter.writeContent(ElementDescriptor elementDescriptor,
Context context)
Deprecated.
0.5 replaced by new SAX inspired API
|
protected void |
AbstractBeanWriter.writeRestOfElement(String qualifiedName,
ElementDescriptor elementDescriptor,
Context context)
Deprecated.
0.5 replaced by new SAX inspired API
|
Constructor and Description |
---|
BeanCreateRule(ElementDescriptor descriptor,
Class beanClass)
Deprecated.
Convenience constructor which uses
ID's for matching. |
BeanCreateRule(ElementDescriptor descriptor,
Class beanClass,
boolean matchIDs)
Deprecated.
Constructor uses standard qualified name.
|
BeanCreateRule(ElementDescriptor descriptor,
Class beanClass,
String pathPrefix)
Deprecated.
Convenience constructor which uses
ID's for matching. |
BeanCreateRule(ElementDescriptor descriptor,
Class beanClass,
String pathPrefix,
boolean matchIDs)
Deprecated.
Constructor taking a class.
|
BeanCreateRule(ElementDescriptor descriptor,
Context context,
String pathPrefix)
Deprecated.
Convenience constructor which uses
ID's for match. |
BeanCreateRule(ElementDescriptor descriptor,
Context context,
String pathPrefix,
boolean matchIDs)
Deprecated.
Constructor taking a context.
|
BeanRuleSet(XMLIntrospector introspector,
String basePath,
ElementDescriptor baseElementDescriptor,
Class baseBeanClass,
boolean matchIDs)
Deprecated.
0.5 use constructor which takes a ReadContext instead
|
BeanRuleSet(XMLIntrospector introspector,
String basePath,
ElementDescriptor baseElementDescriptor,
Class baseBeanClass,
Context context)
Deprecated.
0.5 use the constructor which takes a ReadContext instead
|
BeanRuleSet(XMLIntrospector introspector,
String basePath,
ElementDescriptor baseElementDescriptor,
Class baseBeanClass,
ReadContext baseContext)
Base constructor.
|
BeanRuleSet(XMLIntrospector introspector,
String basePath,
ElementDescriptor baseElementDescriptor,
Context context)
Deprecated.
0.6 use the constructor which takes a ReadContext instead
|
Modifier and Type | Method and Description |
---|---|
ElementDescriptor |
ReadContext.getCurrentDescriptor()
Gets the
ElementDescriptor that describes the
mapping for the current element. |
ElementDescriptor |
ElementMapping.getDescriptor()
Gets the mapped element descriptor.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
BeanBindAction.createBean(String namespace,
String name,
org.xml.sax.Attributes attributes,
ElementDescriptor descriptor,
ReadContext context)
Factory method to create new bean instances
|
static MappingAction |
ArrayBindAction.createMappingAction(ElementDescriptor elementDescriptor)
Factory method creates implementations to map arrays.
|
void |
ElementMapping.setDescriptor(ElementDescriptor descriptor)
Sets the mapped element descriptor.
|
Modifier and Type | Method and Description |
---|---|
protected ElementDescriptor |
ComplexType.fillDescriptor(ElementDescriptor elementDescriptor,
Schema schema)
Fills the given descriptor
|
Modifier and Type | Method and Description |
---|---|
GlobalComplexType |
Schema.addGlobalComplexType(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor)
Adds a new global complex type definition matching the given element descriptor.
|
void |
Schema.addGlobalElementType(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor)
Adds global (top level) element and type declarations matching the given descriptor.
|
protected void |
GlobalComplexType.fill(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor,
Schema schema)
Fills the complex type description.
|
protected ElementDescriptor |
ComplexType.fillDescriptor(ElementDescriptor elementDescriptor,
Schema schema)
Fills the given descriptor
|
protected void |
GlobalComplexType.init(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor,
Schema schema) |
protected void |
ComplexType.init(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor,
Schema schema) |
boolean |
GlobalComplexType.matches(ElementDescriptor elementDescriptor)
Does the given element descriptor match this complex type?
|
Constructor and Description |
---|
ComplexLocalElement(TranscriptionConfiguration configuration,
ElementDescriptor descriptor,
Schema schema) |
ComplexType(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor,
Schema schema) |
ElementReference(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor,
Schema schema) |
GlobalComplexType(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor,
Schema schema)
Constructs a new ComplexType from the descriptor given.
|
LocalComplexType(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor,
Schema schema) |
LocalElement(ElementDescriptor descriptor,
Schema schema) |
SimpleLocalElement(TranscriptionConfiguration configuration,
ElementDescriptor descriptor,
Schema schema) |
Modifier and Type | Method and Description |
---|---|
abstract String |
SchemaTypeNamingStrategy.nameSchemaType(ElementDescriptor descriptor)
Names the schema type described.
|
Modifier and Type | Method and Description |
---|---|
String |
ElementSchemaNamingStrategy.nameSchemaType(ElementDescriptor descriptor)
Names the schema from the element
|
String |
ClassNameSchemaNamingStrategy.nameSchemaType(ElementDescriptor elementDescriptor)
Names the schema type from the type of the property.
|
String |
QualifiedPropertyTypeSchemaNamingStrategy.nameSchemaType(ElementDescriptor elementDescriptor)
Names the schema type from the type of the property.
|
Modifier and Type | Method and Description |
---|---|
ElementDescriptor |
PluralStemmer.findPluralDescriptor(String propertyName,
Map map)
Find the plural descriptor for a singular property.
|
ElementDescriptor |
DefaultPluralStemmer.findPluralDescriptor(String propertyName,
Map map)
Algorithm supports common english plural patterns.
|
Modifier and Type | Method and Description |
---|---|
abstract String |
MixedContentEncodingStrategy.encode(String bodyContent,
ElementDescriptor element)
Encodes the body content into a form suitable for output as
(textual) xml.
|
String |
BaseMixedContentEncodingStrategy.encode(String bodyContent,
ElementDescriptor element)
Encodes the given body content by either escaping the character data
or by encoding within a
CDATA section. |
protected abstract boolean |
BaseMixedContentEncodingStrategy.encodeAsCDATA(ElementDescriptor element)
Should the element described by the given
ElementDescriptor be encoded as a CDATA
section? |
boolean |
ElementSuppressionStrategy.suppress(ElementDescriptor descriptor)
Should the element described as given be suppressed?
|
boolean |
ValueSuppressionStrategy.suppressElement(ElementDescriptor element,
String namespaceUri,
String localName,
String qualifiedName,
Object value)
Should be given element value be suppressed?
|
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.