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 Details

    • 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 Details