Class XdmValueResource

java.lang.Object
de.wwu.scdh.annotation.selection.resource.XdmValueResource
All Implemented Interfaces:
Resource<net.sf.saxon.s9api.XdmValue>, S9ApiResource<net.sf.saxon.s9api.XdmValue>

public class XdmValueResource extends Object implements S9ApiResource<net.sf.saxon.s9api.XdmValue>
The XdmValueResource is suitable for all kinds of resources derived from a DOMResource, even for plain text images.
  • Constructor Details

    • XdmValueResource

      @Deprecated public XdmValueResource(URI uri, net.sf.saxon.s9api.XdmValue value)
      Deprecated.
    • XdmValueResource

      @Deprecated public XdmValueResource(URI uri, net.sf.saxon.s9api.XdmValue value, net.sf.saxon.s9api.Processor processor)
      Deprecated.
    • XdmValueResource

      public XdmValueResource(URI uri, net.sf.saxon.s9api.XdmValue value, net.sf.saxon.s9api.Processor processor, Class<? extends Point> pointClass)
      Makes a new XdmValueResource.
      Parameters:
      uri - - the URI of the resource
      value - - the Xdm value making the resource's content
      processor - - Saxon Processor
      pointClass - - the Point class for the serialized resource
  • Method Details

    • getContents

      public net.sf.saxon.s9api.XdmValue getContents()
      Returns the contents of the resource as parsed type.
      Specified by:
      getContents in interface Resource<net.sf.saxon.s9api.XdmValue>
    • getUri

      public URI getUri()
      Returns the URI identifying this resource.
      Specified by:
      getUri in interface Resource<net.sf.saxon.s9api.XdmValue>
    • getProcessor

      public net.sf.saxon.s9api.Processor getProcessor()
      Returns the Saxon Processor the resource was parsed with.
      Specified by:
      getProcessor in interface S9ApiResource<net.sf.saxon.s9api.XdmValue>
      Returns:
      a Saxon Processor
    • getPointClass

      public Class<? extends Point> getPointClass()
      Returns the class of the pointer for the serialized resource.