Class XMLMetadataSource
- java.lang.Object
-
- org.eclipse.persistence.jaxb.metadata.MetadataSourceAdapter
-
- org.eclipse.persistence.jaxb.metadata.XMLMetadataSource
-
- All Implemented Interfaces:
MetadataSource
public class XMLMetadataSource extends MetadataSourceAdapter
A concrete implementation of MetadataSource that can represent the following metadata input types;- java.io.File
- java.io.InputStream
- java.io.Reader
- java.net.URL
- javax.xml.stream.XMLEventReader
- javax.xml.stream.XMLStreamReader
- javax.xml.transform.Source
- org.w3c.dom.Node
- org.xml.sax.InputSource
-
-
Constructor Summary
Constructors Constructor Description XMLMetadataSource(File xmlBindings)The XML bindings metadata will be loaded from a File.XMLMetadataSource(InputStream xmlBindings)The XML bindings metadata will be loaded from an InputStream.XMLMetadataSource(Reader xmlBindings)The XML bindings metadata will be loaded from Reader.XMLMetadataSource(String xmlBindings)XML bindings metatdata will be loaded either as a URL or as a classpath referenceXMLMetadataSource(URL xmlBindings)The XML bindings metadata will be loaded from a URL.XMLMetadataSource(XMLEventReader xmlBindings)The XML bindings metadata will be loaded from an XMLEventReader.XMLMetadataSource(XMLStreamReader xmlBindings)The XML bindings metadata will be loaded from an XMLStreamReader.XMLMetadataSource(Source xmlBindings)The XML bindings metadata will be loaded from a Source.XMLMetadataSource(Node xmlBindings)The XML bindings metadata will be loaded from a Node.XMLMetadataSource(InputSource xmlBindings)The XML bindings metadata will be loaded from an InputSource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlBindingsgetXmlBindings(Map<String,?> properties, ClassLoader classLoader)
-
-
-
Constructor Detail
-
XMLMetadataSource
public XMLMetadataSource(File xmlBindings)
The XML bindings metadata will be loaded from a File.
-
XMLMetadataSource
public XMLMetadataSource(InputStream xmlBindings)
The XML bindings metadata will be loaded from an InputStream.
-
XMLMetadataSource
public XMLMetadataSource(Reader xmlBindings)
The XML bindings metadata will be loaded from Reader.
-
XMLMetadataSource
public XMLMetadataSource(URL xmlBindings)
The XML bindings metadata will be loaded from a URL.
-
XMLMetadataSource
public XMLMetadataSource(XMLEventReader xmlBindings)
The XML bindings metadata will be loaded from an XMLEventReader.
-
XMLMetadataSource
public XMLMetadataSource(XMLStreamReader xmlBindings)
The XML bindings metadata will be loaded from an XMLStreamReader.
-
XMLMetadataSource
public XMLMetadataSource(Source xmlBindings)
The XML bindings metadata will be loaded from a Source.
-
XMLMetadataSource
public XMLMetadataSource(Node xmlBindings)
The XML bindings metadata will be loaded from a Node.
-
XMLMetadataSource
public XMLMetadataSource(InputSource xmlBindings)
The XML bindings metadata will be loaded from an InputSource.
-
XMLMetadataSource
public XMLMetadataSource(String xmlBindings)
XML bindings metatdata will be loaded either as a URL or as a classpath reference
-
-
Method Detail
-
getXmlBindings
public XmlBindings getXmlBindings(Map<String,?> properties, ClassLoader classLoader)
- Specified by:
getXmlBindingsin interfaceMetadataSource- Overrides:
getXmlBindingsin classMetadataSourceAdapter- Parameters:
properties- - The properties passed in to create the JAXBContextclassLoader- - The ClassLoader passed in to create the JAXBContext- Returns:
- the XmlBindings object representing the metadata
-
-