public interface Loader
| Modifier and Type | Method and Description |
|---|---|
<OUTPUT> OUTPUT |
load(org.fabric3.api.host.stream.Source source,
java.lang.Class<OUTPUT> type,
IntrospectionContext context)
Load a model object from a specified location.
|
<OUTPUT> OUTPUT |
load(javax.xml.stream.XMLStreamReader reader,
java.lang.Class<OUTPUT> type,
IntrospectionContext context)
Parse the supplied XML stream, dispatching to the appropriate registered loader for each element encountered in the stream.
|
<OUTPUT> OUTPUT load(javax.xml.stream.XMLStreamReader reader,
java.lang.Class<OUTPUT> type,
IntrospectionContext context)
throws javax.xml.stream.XMLStreamException
reader - the XML stream to parsetype - the type of Java object that should be returnedcontext - the current loader contextjavax.xml.stream.XMLStreamException - if there was a problem reading the streamjava.lang.ClassCastException - if the XML type cannot be cast to the expected output type<OUTPUT> OUTPUT load(org.fabric3.api.host.stream.Source source,
java.lang.Class<OUTPUT> type,
IntrospectionContext context)
throws LoaderException
source - the source for the XML document to be loadedtype - the type of Java Object that should be returnedcontext - the current loader contextLoaderException - if there was a problem loading the documentjava.lang.ClassCastException - if the XML type cannot be cast to the expected output type