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(java.io.File xmlBindings)The XML bindings metadata will be loaded from a File.XMLMetadataSource(java.io.InputStream xmlBindings)The XML bindings metadata will be loaded from an InputStream.XMLMetadataSource(java.io.Reader xmlBindings)The XML bindings metadata will be loaded from Reader.XMLMetadataSource(java.lang.String xmlBindings)XML bindings metatdata will be loaded either as a URL or as a classpath referenceXMLMetadataSource(java.net.URL xmlBindings)The XML bindings metadata will be loaded from a URL.XMLMetadataSource(javax.xml.stream.XMLEventReader xmlBindings)The XML bindings metadata will be loaded from an XMLEventReader.XMLMetadataSource(javax.xml.stream.XMLStreamReader xmlBindings)The XML bindings metadata will be loaded from an XMLStreamReader.XMLMetadataSource(javax.xml.transform.Source xmlBindings)The XML bindings metadata will be loaded from a Source.XMLMetadataSource(org.w3c.dom.Node xmlBindings)The XML bindings metadata will be loaded from a Node.XMLMetadataSource(org.xml.sax.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(java.util.Map<java.lang.String,?> properties, java.lang.ClassLoader classLoader)
-
-
-
Constructor Detail
-
XMLMetadataSource
public XMLMetadataSource(java.io.File xmlBindings)
The XML bindings metadata will be loaded from a File.
-
XMLMetadataSource
public XMLMetadataSource(java.io.InputStream xmlBindings)
The XML bindings metadata will be loaded from an InputStream.
-
XMLMetadataSource
public XMLMetadataSource(java.io.Reader xmlBindings)
The XML bindings metadata will be loaded from Reader.
-
XMLMetadataSource
public XMLMetadataSource(java.net.URL xmlBindings)
The XML bindings metadata will be loaded from a URL.
-
XMLMetadataSource
public XMLMetadataSource(javax.xml.stream.XMLEventReader xmlBindings)
The XML bindings metadata will be loaded from an XMLEventReader.
-
XMLMetadataSource
public XMLMetadataSource(javax.xml.stream.XMLStreamReader xmlBindings)
The XML bindings metadata will be loaded from an XMLStreamReader.
-
XMLMetadataSource
public XMLMetadataSource(javax.xml.transform.Source xmlBindings)
The XML bindings metadata will be loaded from a Source.
-
XMLMetadataSource
public XMLMetadataSource(org.w3c.dom.Node xmlBindings)
The XML bindings metadata will be loaded from a Node.
-
XMLMetadataSource
public XMLMetadataSource(org.xml.sax.InputSource xmlBindings)
The XML bindings metadata will be loaded from an InputSource.
-
XMLMetadataSource
public XMLMetadataSource(java.lang.String xmlBindings)
XML bindings metatdata will be loaded either as a URL or as a classpath reference
-
-
Method Detail
-
getXmlBindings
public XmlBindings getXmlBindings(java.util.Map<java.lang.String,?> properties, java.lang.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
-
-