EclipseLink 2.3.2, build 'v20111125-r10461' API Reference

org.eclipse.persistence.jaxb.metadata
Class XMLMetadataSource

java.lang.Object
  extended by org.eclipse.persistence.jaxb.metadata.MetadataSourceAdapter
      extended by 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;


Constructor Summary
XMLMetadataSource(java.io.File xmlBindings)
          The XML bindings metadata will be loaded from a File.
XMLMetadataSource(org.xml.sax.InputSource xmlBindings)
          The XML bindings metadata will be loaded from an InputSource.
XMLMetadataSource(java.io.InputStream xmlBindings)
          The XML bindings metadata will be loaded from an InputStream.
XMLMetadataSource(org.w3c.dom.Node xmlBindings)
          The XML bindings metadata will be loaded from a Node.
XMLMetadataSource(java.io.Reader xmlBindings)
          The XML bindings metadata will be loaded from Reader.
XMLMetadataSource(javax.xml.transform.Source xmlBindings)
          The XML bindings metadata will be loaded from a Source.
XMLMetadataSource(java.lang.String xmlBindings)
          XML bindings metatdata will be loaded either as a URL or as a classpath reference
XMLMetadataSource(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.
 
Method Summary
 XmlBindings getXmlBindings(java.util.Map<java.lang.String,?> properties, java.lang.ClassLoader classLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
getXmlBindings in interface MetadataSource
Overrides:
getXmlBindings in class MetadataSourceAdapter
Parameters:
properties - - The properties passed in to create the JAXBContext
classLoader - - The ClassLoader passed in to create the JAXBContext
Returns:
the XmlBindings object representing the metadata

EclipseLink 2.3.2, build 'v20111125-r10461' API Reference