Object

eu.cdevreeze.yaidom.queryapi

XmlBaseSupport

Related Doc: package queryapi

Permalink

object XmlBaseSupport

XML Base support, for elements implementing the ClarkElemApi query API.

XML Base is very simple in its algorithm, given an optional start "document URI". Base URI computation for an element then starts with the optional document URI, and processes all XML Base attributes in the reverse ancestry-or-self of the element, resolving each XML Base attribute against the base URI computed so far. According to the XML Base specification, same-document references do not alter this algorithm.

What is sensitive in XML Base processing is the resolution of an URI against an optional base URI. For example, resolving an empty URI using the java.net.URI.resolve method does not conform to RFC 3986 (see e.g. http://stackoverflow.com/questions/22203111/is-javas-uri-resolve-incompatible-with-rfc-3986-when-the-relative-uri-contains).

This is why the user of this XML Base support must supply a strategy for resolving URIs against optional base URIs.

Default attributes and entity resolution are out of scope for this XML Base support.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. XmlBaseSupport
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. type UriResolver = (URI, Option[URI]) ⇒ URI

    Permalink

    Resolver of a URI against an optional base URI, returning the resolved URI

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val JdkUriResolver: UriResolver

    Permalink

    URI resolver using method java.net.URI.resolve.

    URI resolver using method java.net.URI.resolve. It does not conform to RFC 3986.

  5. val XmlBaseEName: EName

    Permalink
  6. val XmlNs: String

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def findBaseUriByDocUriAndPath(docUriOption: Option[URI], rootElem: ClarkElemApi, path: Path)(resolveUri: UriResolver): Option[URI]

    Permalink

    Computes the optional base URI, given an optional document URI, the root element, and the Path from the root element to "this" element.

    Computes the optional base URI, given an optional document URI, the root element, and the Path from the root element to "this" element. A URI resolution strategy must be provided as well.

  13. def findBaseUriByParentBaseUri(parentBaseUriOption: Option[URI], elem: ClarkElemApi)(resolveUri: UriResolver): Option[URI]

    Permalink

    Returns the optional base URI, given an optional parent base URI, and "this" element.

    Returns the optional base URI, given an optional parent base URI, and "this" element. A URI resolution strategy must be provided as well.

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped