package pio
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- pio
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
Value Members
- object PioDecoder
- object PioError extends Serializable
- object PioOptional
- object PioPath
PioPath provides a simplistic DSL for working with the OCS3 export format for OCS2 data.
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 anOptionresult. Any path including aList*will produce a.If a required element is missing, the result will be
MissingKeyPioErrorwhen decoded.