|
||||||||||
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 |
---|
Methods in org.apache.commons.betwixt that return ElementDescriptor | |
---|---|
ElementDescriptor |
ElementDescriptor.findParent(ElementDescriptor elementDescriptor)
Finds the parent of the given descriptor. |
ElementDescriptor |
XMLBeanInfo.getElementDescriptor()
Gets descriptor for bean represention |
ElementDescriptor |
ElementDescriptor.getElementDescriptor(java.lang.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. |
Methods in org.apache.commons.betwixt with parameters of type ElementDescriptor | |
---|---|
void |
ElementDescriptor.addElementDescriptor(ElementDescriptor descriptor)
Adds a descriptor for a child element. |
void |
XMLIntrospector.assignAdder(java.lang.reflect.Method twinParameterAdderMethod,
ElementDescriptor matchingDescriptor)
Assigns the given method as an adder method to 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. |
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. |
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)
Deprecated. 0.6 moved into XMLIntrospector |
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 | |
---|---|
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. |
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 |
---|
Methods in org.apache.commons.betwixt.io that return ElementDescriptor | |
---|---|
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. |
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)
Deprecated. Add child rules for given descriptor at given prefix |
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 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(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.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(java.lang.String qualifiedName,
ElementDescriptor elementDescriptor,
Context context)
Deprecated. 0.5 replaced by new SAX inspired API |
Constructors in org.apache.commons.betwixt.io with parameters of type ElementDescriptor | |
---|---|
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,
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,
Context context,
java.lang.String pathPrefix)
Deprecated. Convenience constructor which uses ID's for match. |
|
BeanCreateRule(ElementDescriptor descriptor,
Context context,
java.lang.String pathPrefix,
boolean matchIDs)
Deprecated. Constructor taking a context. |
|
BeanRuleSet(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,
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. |
|
BeanRuleSet(XMLIntrospector introspector,
java.lang.String basePath,
ElementDescriptor baseElementDescriptor,
Context context)
Deprecated. 0.6 use the constructor which takes a ReadContext instead |
Uses of ElementDescriptor in org.apache.commons.betwixt.io.read |
---|
Methods in org.apache.commons.betwixt.io.read that return ElementDescriptor | |
---|---|
ElementDescriptor |
ReadContext.getCurrentDescriptor()
Gets the ElementDescriptor that describes the
mapping for the current element. |
ElementDescriptor |
ElementMapping.getDescriptor()
Gets the mapped element descriptor. |
Methods in org.apache.commons.betwixt.io.read with parameters of type ElementDescriptor | |
---|---|
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 |
static MappingAction |
ArrayBindAction.createMappingAction(ElementDescriptor elementDescriptor)
Factory method creates implementations to map arrays. |
void |
ElementMapping.setDescriptor(ElementDescriptor descriptor)
Sets the mapped element descriptor. |
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 | |
---|---|
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? |
Constructors in org.apache.commons.betwixt.schema with parameters of type ElementDescriptor | |
---|---|
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)
|
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 |
ElementSchemaNamingStrategy.nameSchemaType(ElementDescriptor descriptor)
Names the schema from the element |
java.lang.String |
ClassNameSchemaNamingStrategy.nameSchemaType(ElementDescriptor elementDescriptor)
Names the schema type from the type of the property. |
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. |
Methods in org.apache.commons.betwixt.strategy with parameters of type ElementDescriptor | |
---|---|
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. |
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? |
boolean |
ElementSuppressionStrategy.suppress(ElementDescriptor descriptor)
Should the element described as given be suppressed? |
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? |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |