eu.cdevreeze.tqa.common.xpath

Type members

Classlikes

final case class BigDecimalExpr(expr: ScopedXPathString) extends BigDecimalValueOrExpr with Expr[BigDecimal]
final case class BigDecimalValue(value: BigDecimal) extends BigDecimalValueOrExpr with Value[BigDecimal]
sealed trait BigDecimalValueOrExpr extends ValueOrExpr[BigDecimal]

BigDecimal value or XPath expression.

BigDecimal value or XPath expression.

Authors

Chris de Vreeze

final case class ENameExpr(expr: ScopedXPathString) extends ENameValueOrExpr with Expr[EName]
final case class ENameValue(value: EName) extends ENameValueOrExpr with Value[EName]
sealed trait ENameValueOrExpr extends ValueOrExpr[EName]

EName value or XPath expression. If it is an ENameExpr, the XPath expression is expected to resolve to schema type xs:QName. Hence, a very simple ENameExpr would syntactically look like a lexical QName literal (and not like an EName in James Clark notation).

EName value or XPath expression. If it is an ENameExpr, the XPath expression is expected to resolve to schema type xs:QName. Hence, a very simple ENameExpr would syntactically look like a lexical QName literal (and not like an EName in James Clark notation).

Authors

Chris de Vreeze

trait Expr[A] extends ValueOrExpr[A]
final case class ScopedXPathString(xpathExpression: String, scope: Scope)

An XPath expression in a Scope. Typically this object originates from an XPath expression in an XBRL formula or table linkbase, where the Scope is taken from the XML element scope.

An XPath expression in a Scope. Typically this object originates from an XPath expression in an XBRL formula or table linkbase, where the Scope is taken from the XML element scope.

It is likely that the real Scope used to evaluate the XPath expression is not exactly the same Scope as stored in this object. For example, the default namespace for evaluating the XPath expression should probably not be the one stored in this object, if any.

Authors

Chris de Vreeze

final case class StringExpr(expr: ScopedXPathString) extends StringValueOrExpr with Expr[String]
final case class StringValue(value: String) extends StringValueOrExpr with Value[String]
sealed trait StringValueOrExpr extends ValueOrExpr[String]

String value or XPath expression.

String value or XPath expression.

Authors

Chris de Vreeze

trait Value[A] extends ValueOrExpr[A]
trait ValueOrExpr[A]

Value of some type or XPath expression that must evaluate to the same type.

Value of some type or XPath expression that must evaluate to the same type.

Authors

Chris de Vreeze