eu.cdevreeze.yaidom.utils

EditableSimpleElem

final class EditableSimpleElem extends EditableClarkElem

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.

Linear Supertypes
EditableClarkElem, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EditableSimpleElem
  2. EditableClarkElem
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EditableSimpleElem(elem: Elem, getFallbackPrefixForNamespace: (String) ⇒ String)

Type Members

  1. type E = Elem

    Definition Classes
    EditableSimpleElemEditableClarkElem
  2. type N = Node

    Definition Classes
    EditableSimpleElemEditableClarkElem

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val elem: Elem

  9. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  11. def filteringChildren(p: (N) ⇒ Boolean): EditableSimpleElem

    Functionally updates the children by filtering.

    Functionally updates the children by filtering.

    Definition Classes
    EditableSimpleElemEditableClarkElem
  12. def filteringResolvedAttributes(p: (EName, String) ⇒ Boolean): EditableSimpleElem

    Functionally updates the resolved attributes by filtering.

    Functionally updates the resolved attributes by filtering. For scoped elements, this filters the (QName-keyed) attributes.

    Definition Classes
    EditableSimpleElemEditableClarkElem
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. val getFallbackPrefixForNamespace: (String) ⇒ String

  16. def hashCode(): Int

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

    Definition Classes
    Any
  18. def minusChild(index: Int): EditableSimpleElem

    Functionally removes a child.

    Functionally removes a child.

    Definition Classes
    EditableSimpleElemEditableClarkElem
  19. def minusResolvedAttribute(attrEName: EName): EditableSimpleElem

    Functionally removes a resolved attribute.

    Functionally removes a resolved attribute.

    Definition Classes
    EditableSimpleElemEditableClarkElem
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  23. def plusChild(index: Int, newChild: N): EditableSimpleElem

    Functionally inserts a child.

    Functionally inserts a child. For scoped elements, it is ensured by the implementation that no prefixed namespace undeclarations are introduced. After all, they are illegal in XML 1.0.

    Definition Classes
    EditableSimpleElemEditableClarkElem
  24. def plusChild(newChild: N): EditableSimpleElem

    Functionally adds a child.

    Functionally adds a child. For scoped elements, it is ensured by the implementation that no prefixed namespace undeclarations are introduced. After all, they are illegal in XML 1.0.

    Definition Classes
    EditableSimpleElemEditableClarkElem
  25. def plusChildOption(index: Int, newChildOption: Option[N]): EditableSimpleElem

    Optionally functionally inserts a child.

    Optionally functionally inserts a child. For scoped elements, it is ensured by the implementation that no prefixed namespace undeclarations are introduced. After all, they are illegal in XML 1.0.

    Definition Classes
    EditableSimpleElemEditableClarkElem
  26. def plusChildOption(newChildOption: Option[N]): EditableSimpleElem

    Optionally functionally adds a child.

    Optionally functionally adds a child. For scoped elements, it is ensured by the implementation that no prefixed namespace undeclarations are introduced. After all, they are illegal in XML 1.0.

    Definition Classes
    EditableSimpleElemEditableClarkElem
  27. def plusChildren(childSeq: IndexedSeq[N]): EditableSimpleElem

    Functionally adds some children.

    Functionally adds some children. For scoped elements, it is ensured by the implementation that no prefixed namespace undeclarations are introduced. After all, they are illegal in XML 1.0.

    Definition Classes
    EditableSimpleElemEditableClarkElem
  28. def plusResolvedAttribute(attrEName: EName, attrValue: String): EditableSimpleElem

    Functionally adds a resolved attribute.

    Functionally adds a resolved attribute. For scoped elements, this sets the attribute QName, and may affect the Scope.

    Definition Classes
    EditableSimpleElemEditableClarkElem
  29. def plusResolvedAttributeOption(attrEName: EName, attrValueOption: Option[String]): EditableSimpleElem

    Optionally functionally adds a resolved attribute.

    Optionally functionally adds a resolved attribute. For scoped elements, this sets the attribute QName, if applicable, and may affect the Scope.

    Definition Classes
    EditableSimpleElemEditableClarkElem
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toElem: E

    Definition Classes
    EditableSimpleElemEditableClarkElem
  32. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def withChildSeqs(newChildSeqs: IndexedSeq[IndexedSeq[N]]): EditableSimpleElem

    Shorthand for withChildren(newChildSeqs.flatten)

    Shorthand for withChildren(newChildSeqs.flatten)

    Definition Classes
    EditableSimpleElemEditableClarkElem
  37. def withChildren(newChildren: IndexedSeq[N]): EditableSimpleElem

    Functionally updates the children.

    Functionally updates the children. For scoped elements, it is ensured by the implementation that no prefixed namespace undeclarations are introduced. After all, they are illegal in XML 1.0.

    Definition Classes
    EditableSimpleElemEditableClarkElem
  38. def withResolvedAttributes(newResolvedAttributes: Iterable[(EName, String)]): EditableSimpleElem

    Functionally updates the resolved attributes.

    Functionally updates the resolved attributes. For scoped elements, this sets the attribute QNames, and may affect the Scope.

    Definition Classes
    EditableSimpleElemEditableClarkElem
  39. def withResolvedName(newEName: EName): EditableSimpleElem

    Functionally updates the resolved name.

    Functionally updates the resolved name. For scoped elements, this sets the QName, and may affect the Scope.

    Definition Classes
    EditableSimpleElemEditableClarkElem

Inherited from EditableClarkElem

Inherited from AnyRef

Inherited from Any

Ungrouped