com.teamkonzept.dom4jb.beans.infos
Class MapXMLBeanInfo

java.lang.Object
  |
  +--com.teamkonzept.dom4jb.beans.infos.MapXMLBeanInfo
All Implemented Interfaces:
XMLBeanInfo
Direct Known Subclasses:
Collections.UnmodifiableMapXMLBeanInfo, HashMapXMLBeanInfo

public class MapXMLBeanInfo
extends Object
implements XMLBeanInfo


Field Summary
 
Fields inherited from interface com.teamkonzept.dom4jb.beans.XMLBeanInfo
DEFAULT_ITEM_NAME
 
Constructor Summary
MapXMLBeanInfo()
          Creates new MapXMLBeanInfo
MapXMLBeanInfo(String entryName)
          Creates new MapXMLBeanInfo
MapXMLBeanInfo(String mapName, MapAdapter adapter)
          Creates new MapXMLBeanInfo
MapXMLBeanInfo(String entryName, XMLBeanInfo entryType)
          Creates new MapXMLBeanInfo
 
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

MapXMLBeanInfo

public MapXMLBeanInfo(String mapName,
                      MapAdapter adapter)
Creates new MapXMLBeanInfo


MapXMLBeanInfo

public MapXMLBeanInfo(String entryName)
Creates new MapXMLBeanInfo


MapXMLBeanInfo

public MapXMLBeanInfo(String entryName,
                      XMLBeanInfo entryType)
Creates new MapXMLBeanInfo


MapXMLBeanInfo

public MapXMLBeanInfo()
Creates new MapXMLBeanInfo

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()

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()

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()

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.