org.xeril.xml
Interface XmlInfo
- All Known Implementing Classes:
- SimpleXmlInfo
- public interface XmlInfo
This interface is the equivalent of BeanInfo but for XML. If you want to
provide xml information for a class, you have to provide a class that
implements this interface. For example if you have a class called
com.socialnet.test.Test then you can provide a class called
com.socialnet.test.TestXmlInfo that implements this interface and it
will be taken into account for generating XML from your object or
building your object from XML.
getXmlMapDescriptors
public XmlMapDescriptor[] getXmlMapDescriptors()
- You can associate a map descriptor with each field of your
object. Basically a map descriptor is used to "map" a field name to an
XML tag. It is also used to map a type.
- Returns:
- an array of map descriptors
- See Also:
XmlMapDescriptor
getXmlName
public java.lang.String getXmlName()
- Returns the xml name that will be used. It's probably not very nice to
have the tag name of an object to be the name of its class, thus this
method allows you to override this default.
- Returns:
- the xml name of this class