eu.cdevreeze.yaidom.queryapi

XmlBaseSupport

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
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

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

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

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val JdkUriResolver: (URI, Option[URI]) ⇒ URI

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

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

  7. val XmlBaseEName: EName

  8. val XmlNs: String

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

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

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

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

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

    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.

  15. def findBaseUriByParentBaseUri[E <: ClarkElemApi[E]](parentBaseUriOption: Option[URI], elem: E)(resolveUri: (URI, Option[URI]) ⇒ URI): Option[URI]

    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.

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

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

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

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

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped