com.ail.core.xmlbinding
Class CastorToXMLService

java.lang.Object
  extended by com.ail.core.Type
      extended by com.ail.core.Service
          extended by com.ail.core.xmlbinding.CastorToXMLService
All Implemented Interfaces:
ConfigurationOwner, CoreUser, java.io.Serializable, java.lang.Cloneable

public class CastorToXMLService
extends Service

This entry point converts an objects into an XMLString representing it using the castor framework. The object passed as an argument is marshalled into an XMLString and returned. This entry points accepts one argument:

And generates one return value: These arguments and returnes are encapsulated in an instance of ToXMLArg.

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

Field Summary
 
Fields inherited from class com.ail.core.Type
jXPathContext, NOT_PERSISTED
 
Constructor Summary
CastorToXMLService()
           
 
Method Summary
 CommandArg getArgs()
          Getter returning the arguments used by this entry point.
 Core getCore()
          This entry point has no Core requirements, so simply return null.
 Version getVersion()
          Fetch the version of this entry point.
 void invoke()
          Use the castor marshaller to translate an object into an XML string.
 void setArgs(CommandArg args)
          Setter used to the set the arguments that invoke() will use when it is called.
 
Methods inherited from class com.ail.core.Service
getConfiguration, getConfigurationNamespace, getSecurityPrincipal, getVersionEffectiveDate, resetConfiguration, setConfiguration
 
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

CastorToXMLService

public CastorToXMLService()
Method Detail

getVersion

public Version getVersion()
Fetch the version of this entry point.

Specified by:
getVersion in class Service
Returns:
A version object describing the version of this entry point.

getCore

public Core getCore()
This entry point has no Core requirements, so simply return null.

Specified by:
getCore in class Service
Returns:
null

setArgs

public void setArgs(CommandArg args)
Setter used to the set the arguments that invoke() will use when it is called.

Specified by:
setArgs in class Service
Parameters:
args - for invoke

getArgs

public CommandArg getArgs()
Getter returning the arguments used by this entry point.

Specified by:
getArgs in class Service
Returns:
An instance of LoggerArgs.

invoke

public void invoke()
            throws XMLException,
                   PreconditionException
Use the castor marshaller to translate an object into an XML string.

Specified by:
invoke in class Service
Throws:
XMLException
PreconditionException