|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ElementDescriptor | |
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. |
Uses of ElementDescriptor in org.apache.commons.betwixt |
Fields in org.apache.commons.betwixt declared as ElementDescriptor | |
private ElementDescriptor |
XMLBeanInfo.elementDescriptor
Descriptor for main element |
private ElementDescriptor[] |
ElementDescriptor.elementDescriptors
Descriptors for child elements. |
Methods in org.apache.commons.betwixt that return ElementDescriptor | |
ElementDescriptor |
XMLBeanInfo.getElementDescriptor()
Gets descriptor for bean represention |
ElementDescriptor[] |
ElementDescriptor.getElementDescriptors()
Returns descriptors for the child elements of the element this describes. |
ElementDescriptor |
ElementDescriptor.getElementDescriptor(java.lang.String name)
Gets a child ElementDescriptor matching the given name if one exists. |
ElementDescriptor |
ElementDescriptor.findParent(ElementDescriptor elementDescriptor)
Finds the parent of the given descriptor. |
private ElementDescriptor |
BeanProperty.createDescriptorForStandard(Expression propertyExpression,
Updater propertyUpdater,
IntrospectionConfiguration configuration)
Creates an ElementDescriptor for a standard property |
private ElementDescriptor |
BeanProperty.createDescriptorForMap(IntrospectionConfiguration configuration,
Expression propertyExpression)
Creates an ElementDescriptor for an Map type property |
private ElementDescriptor |
BeanProperty.createDescriptorForCollective(IntrospectionConfiguration configuration,
Updater propertyUpdater,
Expression propertyExpression)
Creates an ElementDescriptor for a collective type property |
private ElementDescriptor |
XMLIntrospector.getMatchForAdder(java.lang.String propertyName,
java.util.Map elementsByPropertyName)
Gets an ElementDescriptor for the property matching the adder |
Methods in org.apache.commons.betwixt with parameters of type ElementDescriptor | |
void |
XMLBeanInfo.setElementDescriptor(ElementDescriptor elementDescriptor)
Sets descriptor for bean represention |
void |
ElementDescriptor.addElementDescriptor(ElementDescriptor descriptor)
Adds a descriptor for a child element. |
void |
ElementDescriptor.removeElementDescriptor(ElementDescriptor descriptor)
Removes an element descriptor from this element descriptor. |
void |
ElementDescriptor.setElementDescriptors(ElementDescriptor[] elementDescriptors)
Sets the descriptors for the child element of the element this describes. |
ElementDescriptor |
ElementDescriptor.findParent(ElementDescriptor elementDescriptor)
Finds the parent of the given descriptor. |
void |
XMLIntrospector.defaultAddMethods(ElementDescriptor rootDescriptor,
java.lang.Class beanClass)
Add any addPropety(PropertyType) methods as Updaters which are often used for 1-N relationships in beans. |
void |
XMLIntrospector.defaultAddMethods(ElementDescriptor rootDescriptor,
java.lang.Class beanClass,
boolean preservePropertyName)
Add any addPropety(PropertyType) methods as Updaters which are often used for 1-N relationships in beans. |
private void |
XMLIntrospector.configureMappingDerivation(ElementDescriptor descriptor)
Configures the mapping derivation according to the current MappingDerivationStrategy implementation. |
void |
XMLIntrospector.assignAdder(java.lang.reflect.Method twinParameterAdderMethod,
ElementDescriptor matchingDescriptor)
Assigns the given method as an adder method to the given descriptor. |
private void |
XMLIntrospector.assignAdder(java.lang.reflect.Method twinParameterAdderMethod,
ElementDescriptor[] children)
Assigns the given method as an adder. |
private java.util.Map |
XMLIntrospector.makeElementDescriptorMap(ElementDescriptor rootDescriptor)
Creates a map where the keys are the property names and the values are the ElementDescriptors |
private void |
XMLIntrospector.makeElementDescriptorMap(ElementDescriptor rootDescriptor,
java.util.Map map)
Creates a map where the keys are the property names and the values are the ElementDescriptors |
Uses of ElementDescriptor in org.apache.commons.betwixt.digester |
Methods in org.apache.commons.betwixt.digester that return ElementDescriptor | |
protected ElementDescriptor |
AddDefaultsRule.getRootElementDescriptor()
Gets an ElementDescriptor for the top on digester's stack. |
protected static ElementDescriptor |
XMLIntrospectorHelper.findGetCollectionDescriptor(XMLIntrospector introspector,
ElementDescriptor rootDescriptor,
java.lang.String propertyName)
Deprecated. 0.6 moved into XMLIntrospector |
Methods in org.apache.commons.betwixt.digester with parameters of type ElementDescriptor | |
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,
java.lang.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. |
private void |
ElementRule.configureDescriptor(ElementDescriptor elementDescriptor,
java.lang.String updateMethodName,
boolean forceAccessible)
Sets the Expression and Updater from a bean property name Allows a custom updater to be passed in. |
private void |
ElementRule.configureProperty(ElementDescriptor elementDescriptor,
java.beans.PropertyDescriptor propertyDescriptor,
java.lang.String updateMethodName,
boolean forceAccessible,
java.lang.Class beanClass)
Configure an ElementDescriptor from a
PropertyDescriptor . |
static void |
XMLIntrospectorHelper.configureProperty(ElementDescriptor elementDescriptor,
java.beans.PropertyDescriptor propertyDescriptor)
Deprecated. 0.6 unused |
static void |
XMLIntrospectorHelper.configureProperty(ElementDescriptor elementDescriptor,
java.beans.PropertyDescriptor propertyDescriptor,
java.lang.String updateMethodName,
java.lang.Class beanClass)
Deprecated. 0.6 moved into ElementRule |
static void |
XMLIntrospectorHelper.defaultAddMethods(XMLIntrospector introspector,
ElementDescriptor rootDescriptor,
java.lang.Class beanClass)
Deprecated. 0.6 use the method in XMLIntrospector instead |
protected static ElementDescriptor |
XMLIntrospectorHelper.findGetCollectionDescriptor(XMLIntrospector introspector,
ElementDescriptor rootDescriptor,
java.lang.String propertyName)
Deprecated. 0.6 moved into XMLIntrospector |
protected static void |
XMLIntrospectorHelper.makeElementDescriptorMap(ElementDescriptor rootDescriptor,
java.util.Map map)
Deprecated. 0.6 moved into XMLIntrospector |
protected static void |
XMLIntrospectorHelper.swapDescriptor(ElementDescriptor rootDescriptor,
ElementDescriptor oldValue,
ElementDescriptor newValue)
Deprecated. 0.6 now unused |
Uses of ElementDescriptor in org.apache.commons.betwixt.io |
Fields in org.apache.commons.betwixt.io declared as ElementDescriptor | |
private ElementDescriptor |
BeanRuleSet.baseElementDescriptor
The element descriptor for the base |
private ElementDescriptor |
BeanCreateRule.descriptor
Deprecated. The descriptor of this element |
private ElementDescriptor |
AbstractBeanWriter.WriteContextImpl.currentDescriptor
|
Methods in org.apache.commons.betwixt.io that return ElementDescriptor | |
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. |
ElementDescriptor |
AbstractBeanWriter.WriteContextImpl.getCurrentDescriptor()
|
abstract ElementDescriptor |
WriteContext.getCurrentDescriptor()
Gets the descriptor for the element who content is currently being created. |
Methods in org.apache.commons.betwixt.io with parameters of type ElementDescriptor | |
protected void |
BeanCreateRule.addChildRules(java.lang.String prefix,
ElementDescriptor currentDescriptor)
Deprecated. Add child rules for given descriptor at given prefix |
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 |
BeanCreateRule.addPrimitiveTypeRule(java.lang.String path,
ElementDescriptor childDescriptor)
Deprecated. Adds a new Digester rule to process the text as a primitive type |
protected void |
BeanReader.addBeanCreateRule(java.lang.String path,
ElementDescriptor elementDescriptor,
java.lang.Class beanClass)
Adds a new bean create rule for the specified path |
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 XMLBeanInfo |
AbstractBeanWriter.findXMLBeanInfo(java.lang.Object bean,
ElementDescriptor parentDescriptor)
Finds the appropriate bean info for the given (hollow) element. |
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.writeIDREFElement(ElementDescriptor elementDescriptor,
java.lang.String uri,
java.lang.String localName,
java.lang.String qualifiedName,
java.lang.String idrefAttributeName,
java.lang.String idrefAttributeValue)
Writes an element with a IDREF attribute |
private void |
AbstractBeanWriter.writeElementContent(ElementDescriptor elementDescriptor,
Context context)
Writes the element content. |
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.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 |
void |
AbstractBeanWriter.WriteContextImpl.setCurrentDescriptor(ElementDescriptor currentDescriptor)
Sets the descriptor for the current element. |
Constructors in org.apache.commons.betwixt.io with parameters of type ElementDescriptor | |
BeanRuleSet(XMLIntrospector introspector,
java.lang.String basePath,
ElementDescriptor baseElementDescriptor,
java.lang.Class baseBeanClass,
boolean matchIDs)
Deprecated. 0.5 use 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 |
|
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,
java.lang.Class baseBeanClass,
ReadContext baseContext)
Base constructor. |
|
BeanCreateRule(ElementDescriptor descriptor,
java.lang.Class beanClass,
java.lang.String pathPrefix)
Deprecated. Convenience constructor which uses ID's for matching. |
|
BeanCreateRule(ElementDescriptor descriptor,
java.lang.Class beanClass,
java.lang.String pathPrefix,
boolean matchIDs)
Deprecated. Constructor taking a class. |
|
BeanCreateRule(ElementDescriptor descriptor,
java.lang.Class beanClass)
Deprecated. Convenience constructor which uses ID's for matching. |
|
BeanCreateRule(ElementDescriptor descriptor,
java.lang.Class beanClass,
boolean matchIDs)
Deprecated. Constructor uses standard qualified name. |
|
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 ElementDescriptor in org.apache.commons.betwixt.io.read |
Fields in org.apache.commons.betwixt.io.read declared as ElementDescriptor | |
private ElementDescriptor |
ElementMapping.descriptor
The mapped descriptor |
Methods in org.apache.commons.betwixt.io.read that return ElementDescriptor | |
ElementDescriptor |
ElementMapping.getDescriptor()
Gets the mapped element descriptor. |
private ElementDescriptor |
ReadContext.getParentDescriptor()
|
ElementDescriptor |
ReadContext.getCurrentDescriptor()
Gets the ElementDescriptor that describes the
mapping for the current element. |
private ElementDescriptor |
BeanBindAction.getElementDescriptor(ElementDescriptor propertyDescriptor,
ReadContext context)
Allows the navigation from a reference to a property object to the descriptor defining what the property is. |
Methods in org.apache.commons.betwixt.io.read with parameters of type ElementDescriptor | |
void |
ElementMapping.setDescriptor(ElementDescriptor descriptor)
Sets the mapped element descriptor. |
static MappingAction |
ArrayBindAction.createMappingAction(ElementDescriptor elementDescriptor)
Factory method creates implementations to map arrays. |
protected java.lang.Object |
BeanBindAction.createBean(java.lang.String namespace,
java.lang.String name,
org.xml.sax.Attributes attributes,
ElementDescriptor descriptor,
ReadContext context)
Factory method to create new bean instances |
private ElementDescriptor |
BeanBindAction.getElementDescriptor(ElementDescriptor propertyDescriptor,
ReadContext context)
Allows the navigation from a reference to a property object to the descriptor defining what the property is. |
Uses of ElementDescriptor in org.apache.commons.betwixt.schema |
Methods in org.apache.commons.betwixt.schema that return ElementDescriptor | |
protected ElementDescriptor |
ComplexType.fillDescriptor(ElementDescriptor elementDescriptor,
Schema schema)
Fills the given descriptor |
Methods in org.apache.commons.betwixt.schema with parameters of type ElementDescriptor | |
protected void |
GlobalComplexType.init(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor,
Schema schema)
|
protected void |
GlobalComplexType.fill(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor,
Schema schema)
Fills the complex type description. |
private java.lang.String |
GlobalComplexType.nameFromDescriptor(ElementDescriptor elementDescriptor)
|
boolean |
GlobalComplexType.matches(ElementDescriptor elementDescriptor)
Does the given element descriptor match this complex type? |
protected ElementDescriptor |
ComplexType.fillDescriptor(ElementDescriptor elementDescriptor,
Schema schema)
Fills the given descriptor |
protected void |
ComplexType.init(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor,
Schema schema)
|
void |
Schema.addGlobalElementType(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor)
Adds global (top level) element and type declarations matching the given descriptor. |
GlobalComplexType |
Schema.addGlobalComplexType(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor)
Adds a new global complex type definition matching the given element descriptor. |
Constructors in org.apache.commons.betwixt.schema with parameters of type ElementDescriptor | |
ElementReference(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor,
Schema schema)
|
|
GlobalComplexType(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor,
Schema schema)
Constructs a new ComplexType from the descriptor given. |
|
LocalElement(ElementDescriptor descriptor,
Schema schema)
|
|
SimpleLocalElement(TranscriptionConfiguration configuration,
ElementDescriptor descriptor,
Schema schema)
|
|
ComplexType(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor,
Schema schema)
|
|
ComplexLocalElement(TranscriptionConfiguration configuration,
ElementDescriptor descriptor,
Schema schema)
|
|
LocalComplexType(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor,
Schema schema)
|
Uses of ElementDescriptor in org.apache.commons.betwixt.schema.strategy |
Methods in org.apache.commons.betwixt.schema.strategy with parameters of type ElementDescriptor | |
abstract java.lang.String |
SchemaTypeNamingStrategy.nameSchemaType(ElementDescriptor descriptor)
Names the schema type described. |
Uses of ElementDescriptor in org.apache.commons.betwixt.schema.strategy.impl |
Methods in org.apache.commons.betwixt.schema.strategy.impl with parameters of type ElementDescriptor | |
java.lang.String |
QualifiedPropertyTypeSchemaNamingStrategy.nameSchemaType(ElementDescriptor elementDescriptor)
Names the schema type from the type of the property. |
java.lang.String |
ClassNameSchemaNamingStrategy.nameSchemaType(ElementDescriptor elementDescriptor)
Names the schema type from the type of the property. |
java.lang.String |
ElementSchemaNamingStrategy.nameSchemaType(ElementDescriptor descriptor)
Names the schema from the element |
Uses of ElementDescriptor in org.apache.commons.betwixt.strategy |
Methods in org.apache.commons.betwixt.strategy that return ElementDescriptor | |
ElementDescriptor |
DefaultPluralStemmer.findPluralDescriptor(java.lang.String propertyName,
java.util.Map map)
Algorithm supports common english plural patterns. |
ElementDescriptor |
PluralStemmer.findPluralDescriptor(java.lang.String propertyName,
java.util.Map map)
Find the plural descriptor for a singular property. |
Methods in org.apache.commons.betwixt.strategy with parameters of type ElementDescriptor | |
boolean |
ElementSuppressionStrategy.suppress(ElementDescriptor descriptor)
Should the element described as given be suppressed? |
private boolean |
DefaultActionMappingStrategy.isArrayDescriptor(ElementDescriptor descriptor)
Is the give |
boolean |
ValueSuppressionStrategy.suppressElement(ElementDescriptor element,
java.lang.String namespaceUri,
java.lang.String localName,
java.lang.String qualifiedName,
java.lang.Object value)
Should be given element value be suppressed? |
java.lang.String |
BaseMixedContentEncodingStrategy.encode(java.lang.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?
|
abstract java.lang.String |
MixedContentEncodingStrategy.encode(java.lang.String bodyContent,
ElementDescriptor element)
Encodes the body content into a form suitable for output as (textual) xml. |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |