object PioPath
PioPath provides a simplistic DSL for working with the OCS3 export format for OCS2 data. The language consists of an operator:
\!- required element\?- optional element\*- list of immediate child elements\\*- list of descendent elements
and a corresponding match string where the initial character is:
- '@' - attribute element
- '#' -
paramelement with the given name - '&' -
paramsetelement with the given name - (i.e., no special character) child element
Example:
(n \? "instrument" \! "@type")
Node with an optional <instrument> element that, if it exists, has a
required "type" attribute. When decoded, any path that included a ?
but not a * will produce an Option result. Any path including a
List* will produce a .
If a required element is missing, the result will be MissingKey
PioError when decoded.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- PioPath
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- final case class Attr(name: String) extends Lookup with Product with Serializable
- final case class Child(name: String) extends Lookup with Product with Serializable
- final case class Listing(path: SearchPath, node: Either[PioError, List[Node]]) extends Product with Serializable
- trait Lookup extends AnyRef
- implicit class NodeOps extends AnyRef
- final case class NonEmptySearchPath(path: String) extends SearchPath with Product with Serializable
- final case class Optional(path: SearchPath, node: PioOptional[Node]) extends Product with Serializable
- final case class Param(name: String) extends Lookup with Product with Serializable
- final case class Paramset(name: String) extends Lookup with Product with Serializable
- final case class Required(path: SearchPath, node: Either[PioError, Node]) extends Product with Serializable
- sealed trait SearchPath extends AnyRef
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
- 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
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- case object EmptySearchPath extends SearchPath with Product with Serializable
- object Lookup