org.apache.commons.betwixt |
This package contains the main betwixt introspection code.
XMLIntrospector produces a XMLBeanInfo instance
specifying how the introspected class maps to xml elements and attributes.
The AttributeDescriptor and ElementDescriptor classes
detail how members of a bean map to xml attributes and elements respectively.
|
Java Source File Name | Type | Comment |
AbstractTestCase.java | Class | Abstract base class for test cases. |
AdderButNoPropertyBean.java | Class | |
AddressBean.java | Class | |
AddressBookWithMapArrayAdder.java | Class | |
ArrayBean.java | Class | Bean that contains an array property. |
ArrayListExtender.java | Class | |
AttributeDescriptor.java | Class | |
BeanProperty.java | Class | Betwixt-centric view of a bean (or pseudo-bean) property. |
BindingConfiguration.java | Class | Stores mapping phase binding configuration.
There are two phase in Betwixt's processing. |
BookBean.java | Class | |
Categories.java | Class | |
Category.java | Class | |
CustomerBean.java | Class | |
DeltaBean.java | Class | |
Descriptor.java | Class | |
DoubleLinkedChildBean.java | Class | This is a child that has a property containing it's parent. |
DoubleLinkedParentBean.java | Class | This is a child that has a property containing it's parent. |
DynaWithDotBetwixt.java | Class | |
ElementDescriptor.java | Class | ElementDescriptor describes the XML elements
to be created for a bean instance.
It contains AttributeDescriptor 's for all it's attributes
and ElementDescriptor 's for it's child elements. |
EventBean.java | Class | Represent some kind of event. |
IdMap.java | Class | |
IntrospectionConfiguration.java | Class | Stores introspection phase binding configuration.
There are two phase in Betwixt's processing. |
LibraryBean.java | Class | |
LibraryBeanWithArraySetter.java | Class | |
ListOfNames.java | Class | |
LoopBean.java | Class | This is a bean specifically designed to test cyclic references. |
MapBean.java | Class | |
MoonBean.java | Class | |
NameBean.java | Class | |
NoAdderBean.java | Class | |
NodeDescriptor.java | Class | |
Options.java | Class | Collective for Betwixt optional behaviour hints.
An option links a name with a value (both strings). |
PartyBean.java | Class | |
PersonBean.java | Class | |
PersonListBean.java | Class | |
PlanetBean.java | Class | |
PoemBean.java | Class | |
RSSBeanReader.java | Class | Reads an RSS file using Betwixt's auto-digester rules then
outputs it again. |
RSSBeanWriter.java | Class | Reads an RSS file using Digesters's RSS demo then uses Betwixt
to output it as XML again. |
SampleBeanWriter.java | Class | |
SimpleClass.java | Class | |
SystemProperties.java | Class | |
TestArrayMaps.java | Class | |
TestArrays.java | Class | |
TestAttributeQNameProblem.java | Class | I would SAX 'start element' event's attributes always expect to have qName
equal to localName for simple, unprefixed XML tags. |
TestBeanReader.java | Class | |
TestBeanWriter.java | Class | |
TestClassProperty.java | Class | This test is the result of a problem I had with outputting a bean's class
property as XML. |
TestCollectionMapping.java | Class | Tests the multi-mapping of collections with polymorphic entries. |
TestCollectionMapping2.java | Class | Tests the multi-mapping of collections with polymorphic entries. |
TestCollectives.java | Class | |
TestConversion.java | Class | Tests conversions. |
TestCyclicRegistration.java | Class | |
TestDescriptors.java | Class | Test harness for the Descriptors (ElementDescriptor and so on). |
TestDynaBeanSupport.java | Class | |
TestMaps.java | Class | |
TestMultiMapping.java | Class | |
TestMultipleCollectionMappings.java | Class | Tests the multi-mapping of collections with polymorphic entries. |
TestOptions.java | Class | |
TestReferenceMapping.java | Class | Tests the multi-mapping of polymorphic references. |
TestRSSRoundTrip.java | Class | Test harness which parses an RSS document using Digester
then outputs it using Betwixt, then parses it again with Digester
to check that the document is parseable again. |
TestStringCollections.java | Class | |
TestTextMapping.java | Class | Tests the mapping of a property to the inner text of an element. |
TestXMLBeanInfoDigester.java | Class | |
TestXMLUtils.java | Class | |
TextDescriptor.java | Class | Describes mixed-content text. |
Tweedledee.java | Class | |
Tweedledum.java | Class | |
XMLBeanInfo.java | Class | XMLBeanInfo represents the XML metadata information
used to map a Java Bean cleanly to XML.
|
XMLIntrospector.java | Class | XMLIntrospector an introspector of beans to create a
XMLBeanInfo instance.
By default, XMLBeanInfo caching is switched on.
This means that the first time that a request is made for a XMLBeanInfo
for a particular class, the XMLBeanInfo is cached.
Later requests for the same class will return the cached value.
Note :
This class makes use of the java.bean.Introspector
class, which contains a BeanInfoSearchPath. |
XMLUtils.java | Class | XMLUtils contains basic utility methods for XML.
The code for
XMLUtils.isWellFormedXMLName is based on code in
org.apache.xerces.util.XMLChar
in Apache Xerces.
The authors of this class are credited below.
author: Glenn Marcy, IBM author: Andy Clark, IBM author: Eric Ye, IBM author: Arnaud Le Hors, IBM author: Rahul Srivastava, Sun Microsystems Inc. |