object
HasENameApi
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
withEName(namespace: String, localPart: String): (ElemApi with HasENameApi) ⇒ Boolean
-
def
withEName(namespaceOption: Option[String], localPart: String): (ElemApi with HasENameApi) ⇒ Boolean
-
-
def
withLocalName(localName: String): (ElemApi with HasENameApi) ⇒ Boolean
-
def
withNoNsEName(localPart: String): (ElemApi with HasENameApi) ⇒ Boolean
Inherited from AnyRef
Inherited from Any
This companion object offers some convenience factory methods for "element predicates", that can be used in yaidom queries. These factory objects turn ENames and local names into "element predicates".
For example:
elem \\ (_.ename == EName(xsNamespace, "element"))
can also be written as:
elem \\ withEName(xsNamespace, "element")
(thus avoiding EName instance construction, whether or not this makes any difference in practice).
If the namespace is "obvious", and more friendly local-name-based querying is desired, the following could be written:
elem \\ withLocalName("element")