org.apache.neethi.builders.converters
Interface Converter<S,T>

All Known Implementing Classes:
DOMToDOMConverter, DOMToOMConverter, DOMToStaxConverter, OMToDOMConverter, OMToOMConverter, OMToStaxConverter, StaxToDOMConverter, StaxToOMConverter, StaxToStaxConverter

public interface Converter<S,T>

A converter is used to convert from a particular source of Policy information into a form usable by a registered builder. It also contains methods for obtaining information about the current element while being processed.


Method Summary
 T convert(S s)
           
 Map<QName,String> getAttributes(S s)
           
 Iterator<S> getChildren(S s)
           
 QName getQName(S s)
           
 

Method Detail

getQName

QName getQName(S s)

getAttributes

Map<QName,String> getAttributes(S s)

getChildren

Iterator<S> getChildren(S s)

convert

T convert(S s)
Parameters:
s -
Returns:
the result of the conversion; may not be null
Throws:
ConverterException - if the conversion fails; note that to indicate a failure, the method may throw other unchecked exceptions specific to the APIs involved in the conversion


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