com.teamkonzept.dom4jb.beans.infos
Class StringXMLBeanInfo
java.lang.Object
|
+--com.teamkonzept.dom4jb.beans.infos.ObjectXMLBeanInfo
|
+--com.teamkonzept.dom4jb.beans.infos.StringXMLBeanInfo
- All Implemented Interfaces:
- XMLBeanInfo
- Direct Known Subclasses:
- IntegerXMLBeanInfo, LongXMLBeanInfo
- public class StringXMLBeanInfo
- extends ObjectXMLBeanInfo
This is the default XMLBeanInfo defining how a string will be represented.
Every java.lang.String object will be represented as follows:
- as text element content, representing the String returned by the
method toString()
- as attribute value, representing the String returned by the
method toString()
- which contributes no attributes
- if the string is an item in a collection, the surrounding element name
is the default item name
- Version:
- $Revision: 1.2 $
- Author:
- Carsten Krebs
- See Also:
XMLBeanInfo.DEFAULT_ITEM_NAME
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringXMLBeanInfo
public StringXMLBeanInfo()
- Creates new StringXMLBeanInfo
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()
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
- Overrides:
getDataDescriptor
in class ObjectXMLBeanInfo
- See Also:
XMLBeanInfo.getDataDescriptor()
Copyright © 2001-2003 Team-Konzept GmbH & CO KG. All Rights Reserved.