com.teamkonzept.dom4jb.beans.infos
Class ObjectXMLBeanInfo

java.lang.Object
  |
  +--com.teamkonzept.dom4jb.beans.infos.ObjectXMLBeanInfo
All Implemented Interfaces:
XMLBeanInfo
Direct Known Subclasses:
ClassXMLBeanInfo, CollectionXMLBeanInfo, StringXMLBeanInfo

public class ObjectXMLBeanInfo
extends Object
implements XMLBeanInfo

This is the default XMLBeanInfo defining how a object will be represented.

Every native java.lang.Object object will be represented as follows:

Version:
$Revision: 1.2 $
Author:
Carsten Krebs
See Also:
XMLBeanInfo.DEFAULT_ITEM_NAME

Field Summary
 
Fields inherited from interface com.teamkonzept.dom4jb.beans.XMLBeanInfo
DEFAULT_ITEM_NAME
 
Constructor Summary
ObjectXMLBeanInfo()
          Creates new ObjectXMLBeanInfo
 
Method Summary
 GroupDescriptor getAttributeDescriptors()
          Gets the group of attribute descriptors.
 GroupDescriptor getContentDescriptors()
          Gets the group of content descriptors.
 DataDescriptor getDataDescriptor()
          Gets the data descriptor.
 String getItemName()
          Gets the item name of the bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectXMLBeanInfo

public ObjectXMLBeanInfo()
Creates new ObjectXMLBeanInfo

Method Detail

getContentDescriptors

public GroupDescriptor getContentDescriptors()
Description copied from interface: XMLBeanInfo
Gets the group of content descriptors. Every content descriptor defines the mapping of the bean properties to the content of an XML element.

Specified by:
getContentDescriptors in interface XMLBeanInfo
Returns:
Content descriptor defining the properties which describes element content.

May return null if the bean has no properties representing element content.

See Also:
XMLBeanInfo.getContentDescriptors()

getAttributeDescriptors

public GroupDescriptor getAttributeDescriptors()
Description copied from interface: XMLBeanInfo
Gets the group of attribute descriptors. Every attribute descriptor defines the mapping of the bean properties to a collection of element attributes.

Specified by:
getAttributeDescriptors in interface XMLBeanInfo
Returns:
Attribute descriptor defining the properties which describes element attributes.

May return null if the bean has no properties representing element attributes.

See Also:
XMLBeanInfo.getAttributeDescriptors()

getDataDescriptor

public DataDescriptor getDataDescriptor()
Description copied from interface: XMLBeanInfo
Gets the data descriptor. That is a descriptor which defines how the bean will be transformed into character data. Every time the bean is used as attribute value this data descriptor is used.

Specified by:
getDataDescriptor in interface XMLBeanInfo
Returns:
Data descriptor defining the character data representation of the bean.

May return null if the bean has no character data representation

See Also:
XMLBeanInfo.getDataDescriptor()

getItemName

public String getItemName()
Description copied from interface: XMLBeanInfo
Gets the item name of the bean. If the bean has to be expanded as part of a collection, this name is used as the surrounding element name.

Specified by:
getItemName in interface XMLBeanInfo
Returns:
Item name

May return null if the default item name should be used

See Also:
XMLBeanInfo.getItemName()


Copyright © 2001-2003 Team-Konzept GmbH & CO KG. All Rights Reserved.