Module org.eclipse.persistence.moxy
Class XMLMetadataSource
java.lang.Object
org.eclipse.persistence.jaxb.metadata.MetadataSourceAdapter
org.eclipse.persistence.jaxb.metadata.XMLMetadataSource
- All Implemented Interfaces:
MetadataSource
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
ConstructorDescriptionXMLMetadataSource
(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
Modifier and TypeMethodDescriptiongetXmlBindings
(Map<String, ?> properties, ClassLoader classLoader)
-
Constructor Details
-
XMLMetadataSource
The XML bindings metadata will be loaded from a File. -
XMLMetadataSource
The XML bindings metadata will be loaded from an InputStream. -
XMLMetadataSource
The XML bindings metadata will be loaded from Reader. -
XMLMetadataSource
The XML bindings metadata will be loaded from a URL. -
XMLMetadataSource
The XML bindings metadata will be loaded from an XMLEventReader. -
XMLMetadataSource
The XML bindings metadata will be loaded from an XMLStreamReader. -
XMLMetadataSource
The XML bindings metadata will be loaded from a Source. -
XMLMetadataSource
The XML bindings metadata will be loaded from a Node. -
XMLMetadataSource
The XML bindings metadata will be loaded from an InputSource. -
XMLMetadataSource
XML bindings metatdata will be loaded either as a URL or as a classpath reference
-
-
Method Details
-
getXmlBindings
- Specified by:
getXmlBindings
in interfaceMetadataSource
- Overrides:
getXmlBindings
in 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
-