Package

eu.cdevreeze.yaidom

utils

Permalink

package utils

Several utilities, such as custom ENameProviders and QNameProviders. They are utilities "on top of yaidom", so the rest of yaidom has no dependencies on this package, but this package does depend on the rest of yaidom.

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

Type Members

  1. sealed trait ClarkElemEditor extends AnyRef

    Permalink

    Factory of EditableClarkElem objects.

  2. trait DocumentENameExtractor extends AnyRef

    Permalink

    Strategy trait for finding TextENameExtractors in a document.

    Strategy trait for finding TextENameExtractors in a document. Hence implementations of this trait can retrieve all ENames and therefore all namespaces used in a document.

  3. sealed trait EditableClarkElem extends Any

    Permalink

    Trait defining the contract for "editable" elements that can be functionally updated in the resolved name, resolved attributes, or children.

    Trait defining the contract for "editable" elements that can be functionally updated in the resolved name, resolved attributes, or children.

    The implementation is very direct for resolved elements. For simple elements, the implementation is less straightforward, because the scopes have to be edited as well. Strategies for using "fall-back" scopes can be passed to the element editor (for simple elements).

    For simple editable elements, we must be able to prove the semantics of the offered operations in terms of the same operations on the corresponding resolved elements. Moreover, we must be able to reason about the scopes before and after performing an operation.

  4. final class EditableResolvedElem extends AnyVal with EditableClarkElem

    Permalink

    EditableClarkElem taking a resolved element.

  5. final class EditableSimpleElem extends EditableClarkElem

    Permalink

    EditableClarkElem taking a simple element, as well as a "fall-back" function mapping namespace URIs to prefixes (the empty string as prefix for the default namespace).

    EditableClarkElem taking a simple element, as well as a "fall-back" function mapping namespace URIs to prefixes (the empty string as prefix for the default namespace).

    Preferably, this "fall-back" function is backed by an invertible Scope, without default namespace. After all, introducing a default namespace could affect resolution of QNames in text content or attribute values. For other namespace URIs that are not even in that fall-back scope, a prefix could be generated.

    The methods that functionally set or add children make sure that no prefixed namespace undeclarations are introduced.

  6. final class SimpleElemEditor extends ClarkElemEditor

    Permalink

    Factory of EditableSimpleElem objects.

  7. trait TextENameExtractor extends AnyRef

    Permalink

    Strategy trait for extracting ENames from attribute values or element text content.

Value Members

  1. object DocumentENameExtractor

    Permalink
  2. object ENameProviderUtils

    Permalink

    Utility for creating ENameProviders by parsing XML schema files.

  3. object NamespaceUtils

    Permalink

    Utility for manipulating and finding namespaces.

  4. object QNameProviderUtils

    Permalink

    Utility for creating QNameProviders by parsing XML schema files.

  5. object ResolvedElemEditor extends ClarkElemEditor

    Permalink

    Factory of EditableResolvedElem objects.

  6. object SimpleElemEditor

    Permalink
  7. object SimpleTextENameExtractor extends TextENameExtractor

    Permalink

    TextENameExtractor that treats the text as a QName, to be resolved using the passed Scope.

  8. object TextENameExtractor

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped