Trait

ml.combust.bundle.dsl

HasAttributeList

Related Doc: package dsl

Permalink

trait HasAttributeList[T] extends AnyRef

This trait provides easy access to reading/writing attributes to objects that contain an AttributeList.

T

class type that contains the attribute list

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

Abstract Value Members

  1. abstract def attributes: Option[AttributeList]

    Permalink

    The attribute list

  2. abstract def replaceAttrList(list: Option[AttributeList]): T

    Permalink

    Replace the attributes with another list.

    Replace the attributes with another list.

    list

    attributes to use to replace

    returns

    copy of T with attributes replaced by list arg

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 attr(name: String): Attribute

    Permalink

    Get an attribute.

    Get an attribute.

    Throws an error if it does not exist.

    name

    name of the attribute

    returns

    the attribute

  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 getAttr(name: String): Option[Attribute]

    Permalink

    Get an attribute as an option.

    Get an attribute as an option.

    name

    name of the attribute

    returns

    Some(attribute) or None if it is not in the list

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getValue(name: String): Option[Value]

    Permalink

    Get the Value of an attribute as an Option.

    Get the Value of an attribute as an Option.

    name

    name of the attribute

    returns

    Value of the attribute as an Option[Value], None if it does not exist

  13. def hashCode(): Int

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def value(name: String): Value

    Permalink

    Get the Value of an attribute.

    Get the Value of an attribute.

    Throws an error if that attribute does not exist.

    name

    name of the attribute

    returns

    Value of the attribute

  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( ... )
  24. def withAttr(name: String, value: Option[Value]): T

    Permalink

    Add an optional attribute to the list.

    Add an optional attribute to the list.

    name

    name of the attribute

    value

    optional value

    returns

    a copy of T with the attribute optionally added

  25. def withAttr(name: String, value: Value): T

    Permalink

    Add an attribute to the list.

    Add an attribute to the list.

    name

    name of the attribute

    value

    value of the attribute

    returns

    a copy of T with the attribute added

  26. def withAttrList(list: AttributeList): T

    Permalink

    Add a list of attributes to attributes.

    Add a list of attributes to attributes.

    Adds all attributes in the list argument to attributes.

    list

    list of attributes to add

    returns

    copy of T with all attributes added to attributes

Inherited from AnyRef

Inherited from Any

Ungrouped