com.ail.core.configure
Class XMLMapping

java.lang.Object
  extended by com.ail.core.Type
      extended by com.ail.core.configure.XMLMapping
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class XMLMapping
extends Type

This class holds XML databinding information for a configuration. It holds the mapping description - which is generally a string of XML, and transient instances of a marshaller and unmarshaller object.

Version:
$Revision: 1.2 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ail.core.Type
jXPathContext, NOT_PERSISTED
 
Constructor Summary
XMLMapping()
          Default constructor.
 
Method Summary
 java.lang.String getDefinition()
          Get the XML mapping defnition.
 java.lang.String getDefinitionCDATA()
           
 java.lang.Object getMarshaller()
          Get the XML marshaller.
 java.lang.Object getUnmarshaller()
          Get the unmarshaller.
 void setDefinition(java.lang.String definition)
          Set the XML mapping string
 void setMarshaller(java.lang.Object marshaller)
          Set the marshaller for this mapping.
 void setUnmarshaller(java.lang.Object unmarshaller)
          Set the unmarshaller.
 
Methods inherited from class com.ail.core.Type
addAttribute, clone, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLMapping

public XMLMapping()
Default constructor.

Method Detail

getDefinition

public java.lang.String getDefinition()
Get the XML mapping defnition. The actual format of the information returned depends upon the data binding mechenism being used, but it is generally an XML string that describes how XML nodes are mapped into object instances.

Returns:
String describing the mapping.

getDefinitionCDATA

public java.lang.String getDefinitionCDATA()

setDefinition

public void setDefinition(java.lang.String definition)
Set the XML mapping string

Parameters:
definition - The mapping string.
See Also:
getDefinition()

getMarshaller

public java.lang.Object getMarshaller()
Get the XML marshaller. The XML databinding handlers may use this property to cache an instance of the marshaller. The configuration handler will ensure that this is handled in a version safe fashion.

Returns:
An instance of a marshaller.

setMarshaller

public void setMarshaller(java.lang.Object marshaller)
Set the marshaller for this mapping.

Parameters:
marshaller - The marshaller instance
See Also:
getMarshaller()

getUnmarshaller

public java.lang.Object getUnmarshaller()
Get the unmarshaller.

Returns:
An instance of the marshaller.
See Also:
getMarshaller()

setUnmarshaller

public void setUnmarshaller(java.lang.Object unmarshaller)
Set the unmarshaller.

Parameters:
unmarshaller - The XML Unmarshaller.
See Also:
getMarshaller()