com.teamkonzept.dom4jb.beans.infos
Class CollectionXMLBeanInfo

java.lang.Object
  |
  +--com.teamkonzept.dom4jb.beans.infos.ObjectXMLBeanInfo
        |
        +--com.teamkonzept.dom4jb.beans.infos.CollectionXMLBeanInfo
All Implemented Interfaces:
XMLBeanInfo
Direct Known Subclasses:
Collections.UnmodifiableCollectionXMLBeanInfo, ListXMLBeanInfo, SetXMLBeanInfo, VectorXMLBeanInfo

public class CollectionXMLBeanInfo
extends ObjectXMLBeanInfo

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

Every java.util.Collection object will be represented as follows:

Version:
$Revision: 1.2 $
Author:
Carsten Krebs
See Also:
COLLECTION_ITEM_NAME

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

Field Detail

COLLECTION_ITEM_NAME

public static final String COLLECTION_ITEM_NAME
the item name, returned by getItemName().

See Also:
getItemName(), Constant Field Values
Constructor Detail

CollectionXMLBeanInfo

public CollectionXMLBeanInfo()
Creates new CollectionXMLBeanInfo

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
Overrides:
getContentDescriptors in class ObjectXMLBeanInfo
See Also:
XMLBeanInfo.getContentDescriptors()

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
Overrides:
getItemName in class ObjectXMLBeanInfo
See Also:
XMLBeanInfo.getItemName()


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