org.apache.neethi.builders.converters
Class ConverterRegistry

java.lang.Object
  extended by org.apache.neethi.builders.converters.ConverterRegistry

public class ConverterRegistry
extends Object

Contains a registry of Converters. By default, there are converters to convert back and forth between DOM Elements and XMLStreamReaders. If Axiom is available, converters are also registered to convert from those format to/from OMElements.


Constructor Summary
ConverterRegistry()
           
 
Method Summary
<S,T> T
convert(S src, Class<T> target)
           
 QName findQName(Object element)
           
 Map<QName,String> getAttributes(Object element)
           
 Iterator<Object> getChildElements(Object element)
           
 void registerConverter(Converter<?,?> converter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterRegistry

public ConverterRegistry()
Method Detail

registerConverter

public final void registerConverter(Converter<?,?> converter)

findQName

public QName findQName(Object element)

getAttributes

public Map<QName,String> getAttributes(Object element)

getChildElements

public Iterator<Object> getChildElements(Object element)

convert

public <S,T> T convert(S src,
                       Class<T> target)


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.