Package

eu.cdevreeze.yaidom

utils

Permalink

package utils

Several utilities, such as NamespaceUtils. 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. 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.

  2. trait TextENameExtractor extends AnyRef

    Permalink

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

  3. sealed trait ClarkElemEditor extends AnyRef

    Permalink

    Factory of EditableClarkElem objects.

    Factory of EditableClarkElem objects.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.8.0) For element creation, consider using 'ClarkNode.Elem' instead

  4. 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.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.8.0) For element creation, consider using 'ClarkNode.Elem' instead

  5. final class EditableResolvedElem extends AnyVal with EditableClarkElem

    Permalink

    EditableClarkElem taking a resolved element.

    EditableClarkElem taking a resolved element.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.8.0) For element creation, consider using 'ClarkNode.Elem' instead

  6. 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.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.8.0) For element creation, consider using 'ClarkNode.Elem' instead

  7. final class SimpleElemEditor extends ClarkElemEditor

    Permalink

    Factory of EditableSimpleElem objects.

    Factory of EditableSimpleElem objects.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.8.0) For element creation, consider using 'ClarkNode.Elem' instead

Value Members

  1. object ClarkNode

    Permalink

    Node hierarchy of "Clark" nodes that are useful for element creation.

    Node hierarchy of "Clark" nodes that are useful for element creation. They are like "resolved" elements except that they know about other nodes than element and text nodes alone. Also, the retain attribute order (although semantically not important).

  2. object DocumentENameExtractor

    Permalink
  3. object NamespaceUtils

    Permalink

    Utility for manipulating and finding namespaces.

  4. object SimpleTextENameExtractor extends TextENameExtractor

    Permalink

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

  5. object TextENameExtractor

    Permalink

Deprecated Value Members

  1. object ENameProviderUtils

    Permalink

    Utility for creating ENameProviders by parsing XML schema files.

    Utility for creating ENameProviders by parsing XML schema files.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.8.0) Create or use a utility base on a 'yaidom XML dialect' for schemas instead, if needed

  2. object QNameProviderUtils

    Permalink

    Utility for creating QNameProviders by parsing XML schema files.

    Utility for creating QNameProviders by parsing XML schema files.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.8.0) Create or use a utility base on a 'yaidom XML dialect' for schemas instead, if needed

  3. object ResolvedElemEditor extends ClarkElemEditor

    Permalink

    Factory of EditableResolvedElem objects.

    Factory of EditableResolvedElem objects.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.8.0) For element creation, consider using 'ClarkNode.Elem' instead

  4. object SimpleElemEditor

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.8.0) For element creation, consider using 'ClarkNode.Elem' instead

Inherited from AnyRef

Inherited from Any

Ungrouped