Trait/Object

razie.diesel.expr

ECtx

Related Docs: object ECtx | package expr

Permalink

trait ECtx extends AnyRef

A map-like context of attribute values, used by the Diesel engine. Also, most expression evaluators work within a context.

These contexts are hierarchical, with inheritance and overwriting. Each engine has a root context. There are also scope contexts (which don't allow propagation of values) etc

They also capture a spec environment: a list of specs (could be drafts or a specific version)

Also, they have an optional domain - this is used to source values and functions and other objects for expressions. Normally, the domain is set by the engine at the root context level.

todo keep a ref to the original specs, to get more details, so for the duration of this context, the configuration is the right version

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ECtx
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def base: Option[ECtx]

    Permalink

    in a hierarchy, this is my failback

  2. abstract def clear: Unit

    Permalink
  3. abstract def credentials: Option[String]

    Permalink
  4. abstract def curNode: Option[DomAst]

    Permalink
  5. abstract def domain: Option[RDomain]

    Permalink

    the domain - normally this is only set in the root EngineCtx

  6. abstract def exists(f: (P) ⇒ Boolean): Boolean

    Permalink
  7. abstract def findTemplate(p: (DTemplate) ⇒ Boolean): Option[DTemplate]

    Permalink

    find template with predicate

  8. abstract def findTemplate(ea: String, direction: String = ""): Option[DTemplate]

    Permalink

    find the template corresponding to the ea and direction (direction is optional

    find the template corresponding to the ea and direction (direction is optional

    ea

    entity.action

    direction

    "request" vs "response"

  9. abstract def getp(name: String): Option[P]

    Permalink
  10. abstract def hostname: Option[String]

    Permalink
  11. abstract def listAttrs: List[P]

    Permalink
  12. abstract def put(p: P): Unit

    Permalink
  13. abstract def putAll(p: List[P]): Unit

    Permalink
  14. abstract def remove(name: String): Option[P]

    Permalink
  15. abstract def root: DomEngECtx

    Permalink

    root domain - it normally is an instance of DomEngineCtx and you can get more details from it

  16. abstract def specs: List[DSpec]

    Permalink

    the specs for this engine - normally this is only set in the root EngineCtx

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(name: String): String

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def get(name: String): Option[String]

    Permalink
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getRequired(name: String): String

    Permalink
  13. def getRequiredp(name: String): P

    Permalink
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def sourceStruc(name: String, root: Option[Map[String, Any]] = None): Option[P]

    Permalink

    see if this is a qualified name in a structure

    see if this is a qualified name in a structure

    Deprecated

    - use AExprIdent instead

Inherited from AnyRef

Inherited from Any

Ungrouped