trait AbstractDialectScopedElem extends Elem
General partly implementation of "dialect Scoped elements". This makes implementing each dialect (as Scoped elements) a breeze.
In order to avoid type gymnastics, and to offer a simple API to extend in yaidom dialects, this class does not extend type AbstractDialectClarkElem. To the user of this API this does not matter.
In order for this type to be useful in dialect element implementations, wrapping an underlying element must be a very fast and non-recursive operation.
- Alphabetic
- By Inheritance
- AbstractDialectScopedElem
- Elem
- ScopedElemApi
- Elem
- ClarkElemApi
- ElemApi
- Elem
- CanBeDocumentChild
- CanBeDocumentChild
- CanBeDocumentChild
- Node
- Node
- Node
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract type ThisElem <: Elem
- Definition Classes
- Elem → ScopedElemApi → Elem → ClarkElemApi → ElemApi
- abstract type ThisNode >: ThisElem <: Node
Abstract Value Members
- abstract def children: ArraySeq[ThisNode]
Returns all child nodes, of any kind of node (element node, text node etc.).
Returns all child nodes, of any kind of node (element node, text node etc.).
- Definition Classes
- AbstractDialectScopedElem → Elem
- abstract def select(step: ElemStep[ThisElem]): Seq[ThisElem]
Applies the given element step to this element.
Applies the given element step to this element.
- Definition Classes
- AbstractDialectScopedElem → Elem
- abstract def underlyingElem: Elem
Returns the underlying element.
Returns the underlying element. This method must be very fast.
- abstract def wrapElem(underlyingElem: Elem): ThisElem
Wraps un underlying element.
Wraps un underlying element. This method must be very fast.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def attr(attributeLocalName: String): String
Gets an attribute that has no namespace by local name, throwing if no such attribute is found.
Gets an attribute that has no namespace by local name, throwing if no such attribute is found.
- Definition Classes
- AbstractDialectScopedElem → ClarkElemApi
- final def attr(attributeNamespace: String, attributeLocalName: String): String
- Definition Classes
- AbstractDialectScopedElem → ClarkElemApi
- final def attr(attributeNamespaceOption: Option[String], attributeLocalName: String): String
- Definition Classes
- AbstractDialectScopedElem → ClarkElemApi
- final def attr(attributeName: EName): String
- Definition Classes
- AbstractDialectScopedElem → ClarkElemApi
- final def attrAsQName(attributeNamespace: String, attributeLocalName: String): QName
- Definition Classes
- AbstractDialectScopedElem → ScopedElemApi
- final def attrAsQName(attributeNamespaceOption: Option[String], attributeLocalName: String): QName
- Definition Classes
- AbstractDialectScopedElem → ScopedElemApi
- final def attrAsQName(attributeName: EName): QName
- Definition Classes
- AbstractDialectScopedElem → ScopedElemApi
- final def attrAsQNameOption(attributeNamespace: String, attributeLocalName: String): Option[QName]
- Definition Classes
- AbstractDialectScopedElem → ScopedElemApi
- final def attrAsQNameOption(attributeNamespaceOption: Option[String], attributeLocalName: String): Option[QName]
- Definition Classes
- AbstractDialectScopedElem → ScopedElemApi
- final def attrAsQNameOption(attributeName: EName): Option[QName]
- Definition Classes
- AbstractDialectScopedElem → ScopedElemApi
- final def attrAsResolvedQName(attributeNamespace: String, attributeLocalName: String): EName
- Definition Classes
- AbstractDialectScopedElem → ScopedElemApi
- final def attrAsResolvedQName(attributeNamespaceOption: Option[String], attributeLocalName: String): EName
- Definition Classes
- AbstractDialectScopedElem → ScopedElemApi
- final def attrAsResolvedQName(attributeName: EName): EName
- Definition Classes
- AbstractDialectScopedElem → ScopedElemApi
- final def attrAsResolvedQNameOption(attributeNamespace: String, attributeLocalName: String): Option[EName]
- Definition Classes
- AbstractDialectScopedElem → ScopedElemApi
- final def attrAsResolvedQNameOption(attributeNamespaceOption: Option[String], attributeLocalName: String): Option[EName]
- Definition Classes
- AbstractDialectScopedElem → ScopedElemApi
- final def attrAsResolvedQNameOption(attributeName: EName): Option[EName]
- Definition Classes
- AbstractDialectScopedElem → ScopedElemApi
- final def attrOption(attributeLocalName: String): Option[String]
Finds an attribute that has no namespace by local name, if any.
Finds an attribute that has no namespace by local name, if any.
- Definition Classes
- AbstractDialectScopedElem → ClarkElemApi
- final def attrOption(attributeNamespace: String, attributeLocalName: String): Option[String]
- Definition Classes
- AbstractDialectScopedElem → ClarkElemApi
- final def attrOption(attributeNamespaceOption: Option[String], attributeLocalName: String): Option[String]
- Definition Classes
- AbstractDialectScopedElem → ClarkElemApi
- final def attrOption(attributeName: EName): Option[String]
- Definition Classes
- AbstractDialectScopedElem → ClarkElemApi
- final def attributes: SeqMap[EName, String]
- Definition Classes
- AbstractDialectScopedElem → ClarkElemApi
- final def attributesByQName: SeqMap[QName, String]
- Definition Classes
- AbstractDialectScopedElem → ScopedElemApi
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def filterChildElems(p: (ThisElem) => Boolean): Seq[ThisElem]
- Definition Classes
- AbstractDialectScopedElem → ElemApi
- final def filterDescendantElems(p: (ThisElem) => Boolean): Seq[ThisElem]
- Definition Classes
- AbstractDialectScopedElem → ElemApi
- final def filterDescendantElemsOrSelf(p: (ThisElem) => Boolean): Seq[ThisElem]
- Definition Classes
- AbstractDialectScopedElem → ElemApi
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def findAllChildElems(): Seq[ThisElem]
- Definition Classes
- AbstractDialectScopedElem → ElemApi
- final def findAllDescendantElems(): Seq[ThisElem]
- Definition Classes
- AbstractDialectScopedElem → ElemApi
- final def findAllDescendantElemsOrSelf(): Seq[ThisElem]
- Definition Classes
- AbstractDialectScopedElem → ElemApi
- final def findChildElem(p: (ThisElem) => Boolean): Option[ThisElem]
- Definition Classes
- AbstractDialectScopedElem → ElemApi
- final def findDescendantElem(p: (ThisElem) => Boolean): Option[ThisElem]
- Definition Classes
- AbstractDialectScopedElem → ElemApi
- final def findDescendantElemOrSelf(navigationPath: Seq[Int]): Option[ThisElem]
Returns the optional descendant-or-self element at the given navigation path.
Returns the optional descendant-or-self element at the given navigation path. If the navigation path is Seq(3, 5, 0), the first navigation step is to the child element at (element) index 3, zero-based, the next navigation step is to its child element at zero-based (element) index 5, and the last navigation step is to the latter's child element at zero-based (element) index 0.
If the navigation path is out of bounds in one of the steps, None is returned.
- Definition Classes
- AbstractDialectScopedElem → ElemApi
- final def findDescendantElemOrSelf(p: (ThisElem) => Boolean): Option[ThisElem]
- Definition Classes
- AbstractDialectScopedElem → ElemApi
- final def findTopmostElems(p: (ThisElem) => Boolean): Seq[ThisElem]
- Definition Classes
- AbstractDialectScopedElem → ElemApi
- final def findTopmostElemsOrSelf(p: (ThisElem) => Boolean): Seq[ThisElem]
- Definition Classes
- AbstractDialectScopedElem → ElemApi
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def getDescendantElemOrSelf(navigationPath: Seq[Int]): ThisElem
Returns the descendant-or-self element at the given navigation path.
Returns the descendant-or-self element at the given navigation path. If the navigation path is Seq(3, 5, 0), the first navigation step is to the child element at (element) index 3, zero-based, the next navigation step is to its child element at zero-based (element) index 5, and the last navigation step is to the latter's child element at zero-based (element) index 0.
If the navigation path is out of bounds in one of the steps, an exception is thrown.
- Definition Classes
- AbstractDialectScopedElem → ElemApi
- def hasNoPrefixedNamespaceUndeclarations: Boolean
Returns true if the Scopes of the child elements are such that no (prefixed) namespace undeclarations are needed.
Returns true if the Scopes of the child elements are such that no (prefixed) namespace undeclarations are needed. This is a requirement for namespaces in XML 1.0 (ignoring the default namespace), but not for namespaces in XML 1.1.
- Definition Classes
- Elem
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def localName: String
Returns the local name.
Returns the local name. That is, returns the local part of the name of the element. This method must be fast in order to support fast local name queries.
- Definition Classes
- AbstractDialectScopedElem → ClarkElemApi
- final def name: EName
- Definition Classes
- AbstractDialectScopedElem → ClarkElemApi
- final def namespaceAsString: String
Returns the equivalent of
namespaceOption.getOrElse("")
.Returns the equivalent of
namespaceOption.getOrElse("")
. This method must be fast in order to support fast namespace queries.- Definition Classes
- AbstractDialectScopedElem → ClarkElemApi
- final def namespaceOption: Option[String]
Returns the optional namespace.
Returns the optional namespace. That is, returns the optional namespace of the name of the element. This method must be fast in order to support fast namespace queries.
- Definition Classes
- AbstractDialectScopedElem → ClarkElemApi
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def nodeKind: NodeKind
- final def normalizedText: String
- Definition Classes
- AbstractDialectScopedElem → ClarkElemApi
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def qname: QName
- Definition Classes
- AbstractDialectScopedElem → ScopedElemApi
- final def scope: Scope
- Definition Classes
- AbstractDialectScopedElem → ScopedElemApi
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def text: String
- Definition Classes
- AbstractDialectScopedElem → ClarkElemApi
- final def textAsQName: QName
- Definition Classes
- AbstractDialectScopedElem → ScopedElemApi
- final def textAsResolvedQName: EName
- Definition Classes
- AbstractDialectScopedElem → ScopedElemApi
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def trimmedText: String
- Definition Classes
- AbstractDialectScopedElem → ClarkElemApi
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()