common-util

local.tomas.common.xml.impl
Class XMLTargetWriterImpl

java.lang.Object
  extended by local.tomas.common.xml.XMLTargetWriter
      extended by local.tomas.common.xml.impl.XMLTargetWriterImpl

public class XMLTargetWriterImpl
extends XMLTargetWriter

XML target writer implementation.

Author:
tomas

Field Summary
static String ATTRIBUTE_TYPE
          Attribute.
static String CHAR_TYPE
          Character.
static String DOC_END_TYPE
          End of document.
static String DOC_TYPE
          Document
static String END_TOKEN_TYPE
          End token.
static String LOCAL_NAME_TYPE
          Local name.
static String QNAME_TYPE
          QName.
static String START_TOKEN_TYPE
          Start token.
static String URI_TYPE
          URI.
 
Constructor Summary
XMLTargetWriterImpl()
          Default constructor.
 
Method Summary
 int getMaxValueSize()
          Get maximum value size.
 Result getResult(XMLTarget target)
          Get XML transformation result to store an XML structure in the database.
 void setMaxValueSize(int maxValueSize)
          Set maximum value size.
 
Methods inherited from class local.tomas.common.xml.XMLTargetWriter
createWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOC_TYPE

public static final String DOC_TYPE
Document

See Also:
Constant Field Values

DOC_END_TYPE

public static final String DOC_END_TYPE
End of document.

See Also:
Constant Field Values

CHAR_TYPE

public static final String CHAR_TYPE
Character.

See Also:
Constant Field Values

START_TOKEN_TYPE

public static final String START_TOKEN_TYPE
Start token.

See Also:
Constant Field Values

END_TOKEN_TYPE

public static final String END_TOKEN_TYPE
End token.

See Also:
Constant Field Values

ATTRIBUTE_TYPE

public static final String ATTRIBUTE_TYPE
Attribute.

See Also:
Constant Field Values

URI_TYPE

public static final String URI_TYPE
URI.

See Also:
Constant Field Values

QNAME_TYPE

public static final String QNAME_TYPE
QName.

See Also:
Constant Field Values

LOCAL_NAME_TYPE

public static final String LOCAL_NAME_TYPE
Local name.

See Also:
Constant Field Values
Constructor Detail

XMLTargetWriterImpl

public XMLTargetWriterImpl()
Default constructor.

Method Detail

getResult

public Result getResult(XMLTarget target)
                 throws XMLException
Description copied from class: XMLTargetWriter
Get XML transformation result to store an XML structure in the database.

Specified by:
getResult in class XMLTargetWriter
Parameters:
target - - the target
Returns:
transformation result
Throws:
XMLException

getMaxValueSize

public int getMaxValueSize()
Get maximum value size.

Specified by:
getMaxValueSize in class XMLTargetWriter
Returns:
Returns the maximum value size.

setMaxValueSize

public void setMaxValueSize(int maxValueSize)
Set maximum value size.

Specified by:
setMaxValueSize in class XMLTargetWriter
Parameters:
maxValueSize - The maximum value size to set.

common-util

Copyright © 2007 null. All Rights Reserved.