TXW2 Runtime 20110809-redhat-2

com.sun.xml.txw2
Interface DatatypeWriter<DT>


public interface DatatypeWriter<DT>

Pluggable datatype writer.

Author:
Kohsuke Kawaguchi

Field Summary
static List<DatatypeWriter<?>> BUILTIN
           
 
Method Summary
 Class<DT> getType()
          Gets the Java class that this writer can write.
 void print(DT dt, NamespaceResolver resolver, StringBuilder buf)
          Prints the given datatype object and appends that result into the given buffer.
 

Field Detail

BUILTIN

static final List<DatatypeWriter<?>> BUILTIN
Method Detail

getType

Class<DT> getType()
Gets the Java class that this writer can write.

Returns:
must not be null. Must be the same value always.

print

void print(DT dt,
           NamespaceResolver resolver,
           StringBuilder buf)
Prints the given datatype object and appends that result into the given buffer.

Parameters:
dt - the datatype object to be printed.
resolver - allows the converter to declare additional namespace prefixes.

TXW2 Runtime 20110809-redhat-2

Copyright © 2012 Oracle. All Rights Reserved.