|
|||||||||||
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.strategy | This package contains a variety of plugin Strategy patterns that can be used to customize the default behaviour.of the XMLIntrospector |
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. |
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.setElementDescriptors(ElementDescriptor[] elementDescriptors)
Sets the descriptors for the child element of the element this describes. |
Uses of ElementDescriptor in org.apache.commons.betwixt.digester |
---|
Methods in org.apache.commons.betwixt.digester that return ElementDescriptor | |
protected static ElementDescriptor |
XMLIntrospectorHelper.findGetCollectionDescriptor(XMLIntrospector introspector,
ElementDescriptor rootDescriptor,
java.lang.String propertyName)
Attempts to find the element descriptor for the getter property that typically matches a collection or array. |
protected ElementDescriptor |
AddDefaultsRule.getRootElementDescriptor()
Gets an ElementDescriptor for the top on digester's stack. |
Methods in org.apache.commons.betwixt.digester with parameters of type ElementDescriptor | |
static void |
XMLIntrospectorHelper.configureProperty(ElementDescriptor elementDescriptor,
java.beans.PropertyDescriptor propertyDescriptor)
Configure an ElementDescriptor from a PropertyDescriptor |
static void |
XMLIntrospectorHelper.defaultAddMethods(XMLIntrospector introspector,
ElementDescriptor rootDescriptor,
java.lang.Class beanClass)
Add any addPropety(PropertyType) methods as Updaters which are often used for 1-N relationships in beans. |
protected static ElementDescriptor |
XMLIntrospectorHelper.findGetCollectionDescriptor(XMLIntrospector introspector,
ElementDescriptor rootDescriptor,
java.lang.String propertyName)
Attempts to find the element descriptor for the getter property that typically matches a collection or array. |
protected static void |
XMLIntrospectorHelper.makeElementDescriptorMap(ElementDescriptor rootDescriptor,
java.util.Map map)
Creates a map where the keys are the property names and the values are the ElementDescriptors |
protected static void |
XMLIntrospectorHelper.swapDescriptor(ElementDescriptor rootDescriptor,
ElementDescriptor oldValue,
ElementDescriptor newValue)
Traverse the tree of element descriptors and find the oldValue and swap it with the newValue. |
protected void |
ElementRule.configureDescriptor(ElementDescriptor elementDescriptor)
Set the Expression and Updater from a bean property name |
Uses of ElementDescriptor in org.apache.commons.betwixt.io |
---|
Fields in org.apache.commons.betwixt.io declared as ElementDescriptor | |
private ElementDescriptor |
BeanCreateRule.descriptor
The descriptor of this element |
Methods in org.apache.commons.betwixt.io that return ElementDescriptor | |
protected ElementDescriptor |
BeanCreateRule.getElementDescriptor(ElementDescriptor propertyDescriptor)
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 with parameters of type ElementDescriptor | |
protected void |
BeanReader.addBeanCreateRule(java.lang.String path,
ElementDescriptor elementDescriptor,
java.lang.Class beanClass)
Adds a new bean create rule for the specified path |
protected void |
BeanCreateRule.addChildRules(java.lang.String prefix,
ElementDescriptor currentDescriptor)
Add child rules for given descriptor at given prefix |
protected ElementDescriptor |
BeanCreateRule.getElementDescriptor(ElementDescriptor propertyDescriptor)
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)
Adds a new Digester rule to process the text as a primitive type |
protected void |
AbstractBeanWriter.write(java.lang.String qualifiedName,
ElementDescriptor elementDescriptor,
Context context)
Writes the given element |
protected void |
AbstractBeanWriter.write(java.lang.String qualifiedName,
ElementDescriptor elementDescriptor,
Context context,
java.lang.String idAttribute,
java.lang.String idValue)
Writes the given element adding an ID attribute |
protected void |
AbstractBeanWriter.writeRestOfElement(java.lang.String qualifiedName,
ElementDescriptor elementDescriptor,
Context context)
Write attributes, child elements and element end |
protected boolean |
AbstractBeanWriter.writeContent(ElementDescriptor elementDescriptor,
Context context)
Writes the element content. |
protected void |
AbstractBeanWriter.writeAttributes(ElementDescriptor elementDescriptor,
Context context)
Writes the attribute declarations |
Constructors in org.apache.commons.betwixt.io with parameters of type ElementDescriptor | |
BeanCreateRule(ElementDescriptor descriptor,
java.lang.Class beanClass,
java.lang.String pathPrefix)
Convenience constructor which uses ID's for matching. |
|
BeanCreateRule(ElementDescriptor descriptor,
java.lang.Class beanClass,
java.lang.String pathPrefix,
boolean matchIDs)
Constructor taking a class. |
|
BeanCreateRule(ElementDescriptor descriptor,
java.lang.Class beanClass)
Convenience constructor which uses ID's for matching. |
|
BeanCreateRule(ElementDescriptor descriptor,
java.lang.Class beanClass,
boolean matchIDs)
Constructor uses standard qualified name. |
|
BeanCreateRule(ElementDescriptor descriptor,
Context context,
java.lang.String pathPrefix)
Convenience constructor which uses ID's for match. |
|
BeanCreateRule(ElementDescriptor descriptor,
Context context,
java.lang.String pathPrefix,
boolean matchIDs)
Constructor taking a context. |
|
BeanCreateRule(ElementDescriptor descriptor,
java.lang.Class beanClass,
Context context,
java.lang.String pathPrefix,
boolean matchIDs)
Base constructor (used by other constructors). |
Uses of ElementDescriptor in org.apache.commons.betwixt.strategy |
---|
Methods in org.apache.commons.betwixt.strategy that return ElementDescriptor | |
ElementDescriptor |
PluralStemmer.findPluralDescriptor(java.lang.String propertyName,
java.util.Map map)
Find the plural descriptor for a singular property. |
ElementDescriptor |
DefaultPluralStemmer.findPluralDescriptor(java.lang.String propertyName,
java.util.Map map)
Algorithm supports common english plural patterns. |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |