Trait

razie.base

ActionContext

Related Doc: package base

Permalink

trait ActionContext extends ScalaAttrAccess

actions execute in a context of objects available at that time in that environment.

a context is a set of objects in certain roles, like the current_movie or current_player etc. Contexts are a central concept in programming.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ActionContext
  2. ScalaAttrAccess
  3. JavaAttrAccess
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def a(name: String): AnyRef

    Permalink

    I'm really starting to hate typing...

    I'm really starting to hate typing... shortcut for getAttr

    Definition Classes
    ScalaAttrAccess
  2. abstract def addToUrl(url: String): String

    Permalink

    add these attributes to an url, respecting the url parm format, i.e.

    add these attributes to an url, respecting the url parm format, i.e. getMovie?name=300.divx&producer=whoknows

    Definition Classes
    ScalaAttrAccess
  3. abstract def filter(f: (String, AnyRef) ⇒ Boolean): Iterable[String]

    Permalink
    Definition Classes
    ScalaAttrAccess
  4. abstract def foreach(f: (String, AnyRef) ⇒ Unit): Unit

    Permalink
    Definition Classes
    ScalaAttrAccess
  5. abstract def get[T](name: String): Option[T]

    Permalink

    returns

    the value of the named attribute or null, coerced into an option of the given type

    Definition Classes
    ScalaAttrAccess
  6. abstract def getAttr(name: String): AnyRef

    Permalink

    returns

    the value of the named attribute or null

    Definition Classes
    ScalaAttrAccess
  7. abstract def getAttrType(name: String): AttrType

    Permalink

    returns

    the type of the named attribute OR null if not known. Default is by convention String

    Definition Classes
    ScalaAttrAccess
  8. abstract def getOrElse(name: String, dflt: AnyRef): AnyRef

    Permalink

    returns

    the value of the named attribute or null

    Definition Classes
    ScalaAttrAccess
  9. abstract def getPopulatedAttr(): Iterable[String]

    Permalink

    iterate through the populated attributes.

    iterate through the populated attributes. BE very careful: if you set attrs with NULL values, they are NOT populated!

    Definition Classes
    ScalaAttrAccess
  10. abstract def hasAttrType(name: String): Boolean

    Permalink

    check if an attribute is populated

    check if an attribute is populated

    Definition Classes
    ScalaAttrAccess
  11. abstract def isPopulated(name: String): Boolean

    Permalink

    check if an attribute is populated

    check if an attribute is populated

    Definition Classes
    ScalaAttrAccess
  12. abstract def map[A, B](f: (String, A) ⇒ B): ScalaAttrAccess

    Permalink
    Definition Classes
    ScalaAttrAccess
  13. abstract def mapValues[A, B](f: (A) ⇒ B): Seq[B]

    Permalink
    Definition Classes
    ScalaAttrAccess
  14. abstract def sa(name: String): String

    Permalink

    most of the time they're just strings - i'll typecast here...

    most of the time they're just strings - i'll typecast here... this is a() typcast to String

    returns

    "" or the actual toString of the respective value

    Definition Classes
    ScalaAttrAccess
  15. abstract def set(name: String, value: Any, t: AttrType): Unit

    Permalink

    set the value of the named attribute + the name can be of the form name:type

    set the value of the named attribute + the name can be of the form name:type

    Definition Classes
    ScalaAttrAccess
  16. abstract def set(name: String, value: Any): Unit

    Permalink

    set the value of the named attribute + the name can be of the form name:type

    set the value of the named attribute + the name can be of the form name:type

    Definition Classes
    ScalaAttrAccess
  17. abstract def setAttr(pairs: <repeated...>[AnyRef]): Unit

    Permalink
    Definition Classes
    JavaAttrAccess
  18. abstract def setAttrPair(name: String, value: Any): Unit

    Permalink

    set the value of the named attribute + the name can be of the form name:type

    set the value of the named attribute + the name can be of the form name:type

    Definition Classes
    ScalaAttrAccess
  19. abstract def setAttrType(name: String, ttype: AttrType): Unit

    Permalink

    set the type of the named attribute

    set the type of the named attribute

    Definition Classes
    ScalaAttrAccess
  20. abstract def sgetPopulatedAttr: Iterable[String]

    Permalink
    Definition Classes
    ScalaAttrAccess
  21. abstract def size(): Int

    Permalink

    the number of populated attributes

    the number of populated attributes

    Definition Classes
    ScalaAttrAccess
  22. abstract def toJson(obj: JSONObject): JSONObject

    Permalink

    add my attributes to the JSONObject passed in.

    add my attributes to the JSONObject passed in. If null passed in, empty object is created first

    obj

    an json object to add to or null if this is a single element

    Definition Classes
    ScalaAttrAccess
  23. abstract def toPairs(): Array[AnyRef]

    Permalink

    same pairs format name,value,name,value...

    same pairs format name,value,name,value...

    Definition Classes
    ScalaAttrAccess
  24. abstract def toXml(): String

    Permalink

    some random xml format

    some random xml format

    Definition Classes
    ScalaAttrAccess

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. final def asInstanceOf[T0]: T0

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

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

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

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

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

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

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

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

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

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

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

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

Inherited from ScalaAttrAccess

Inherited from JavaAttrAccess

Inherited from AnyRef

Inherited from Any

Ungrouped