common-util

local.tomas.common.xml
Class XMLTargetWriter

java.lang.Object
  extended by local.tomas.common.xml.XMLTargetWriter
Direct Known Subclasses:
XMLTargetWriterImpl

public abstract class XMLTargetWriter
extends Object

Use this class to store XML in in an arbitrary target.

Author:
tomas

Constructor Summary
protected XMLTargetWriter()
           
 
Method Summary
static XMLTargetWriter createWriter()
          Create an XML target store for an abstract target.
abstract  int getMaxValueSize()
          Get the maximum number of characters used to store values in the value column of the database.
abstract  Result getResult(XMLTarget target)
          Get XML transformation result to store an XML structure in the database.
abstract  void setMaxValueSize(int size)
          Set the maximum number of characters used to store values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLTargetWriter

protected XMLTargetWriter()
Method Detail

createWriter

public static XMLTargetWriter createWriter()
Create an XML target store for an abstract target.

Returns:
the store

setMaxValueSize

public abstract void setMaxValueSize(int size)
Set the maximum number of characters used to store values.

Parameters:
size - - number of characters

getMaxValueSize

public abstract int getMaxValueSize()
Get the maximum number of characters used to store values in the value column of the database.

Returns:
the number of characters

getResult

public abstract Result getResult(XMLTarget target)
                          throws XMLException
Get XML transformation result to store an XML structure in the database.

Parameters:
target - - the target
Returns:
transformation result
Throws:
XMLException

common-util

Copyright © 2007 null. All Rights Reserved.