Class/Object

scales.xml.dsl

OptionalDslBuilder

Related Docs: object OptionalDslBuilder | package dsl

Permalink

final class OptionalDslBuilder extends AnyRef

Represents an optional cascading tree,

NB Must have a starting element, modelled as tree as we need to keep the data around and trees must always have an elem.

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

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 ?/(itemOrElem: ⇒ Iterable[OptionalDslBuilder]): OptionalDslBuilder

    Permalink

    Optionally add a number of children, when empty no child will be added

  5. def ?/(itemOrElem: OptionalDslBuilder*): OptionalDslBuilder

    Permalink

    Optionally add a number of children, when empty no child will be added

  6. def ?/(itemOrElem: OptionalDslBuilder): OptionalDslBuilder

    Permalink

    Optionally add a child, when None no child will be added

  7. def ?/@(attrib: Option[Attribute]): OptionalDslBuilder

    Permalink

    Optionally add a single attribute, when None no attribute will be added

  8. def ?/@(attribs: ⇒ Iterable[Attribute]): OptionalDslBuilder

    Permalink

    Add attributes

  9. def ?~>(value: Option[String]): OptionalDslBuilder

    Permalink

    Optionally sets the tree to a single Text node child, replacing all others, None will not change the current node.

    Optionally sets the tree to a single Text node child, replacing all others, None will not change the current node.

    <(Elem("root"l)) ~> None

    would leave an empty <root/>

  10. def ?~>(value: String): OptionalDslBuilder

    Permalink

    sets the tree to a single Text node child, replacing all others, calling this forces the resulting OptionalDslBuilder to be non empty

  11. def addNonEmpty(itemOrElems: xml.ItemOrElem*): OptionalDslBuilder

    Permalink

    Adds items and filters out empty trees.

  12. def addNonEmpty(itemOrElems: ⇒ Iterable[xml.ItemOrElem]): OptionalDslBuilder

    Permalink

    Adds items and filters out empty trees.

  13. def addOptionalAttribute(attrib: Option[Attribute]): OptionalDslBuilder

    Permalink

    Optionally add a single attribute, when None no attribute will be added

  14. def addOptionalAttributes(attribs: ⇒ Iterable[Attribute]): OptionalDslBuilder

    Permalink

    Add attributes

  15. def addOptionalChild(itemOrElem: OptionalDslBuilder): OptionalDslBuilder

    Permalink

    Optionally add a child, when None no child will be added

  16. def addOptionalChildren(items: OptionalDslBuilder*): OptionalDslBuilder

    Permalink

    Optionally add a number of children, when empty no child will be added

  17. def addOptionalChildren(items: ⇒ Iterable[OptionalDslBuilder]): OptionalDslBuilder

    Permalink

    Optionally add a number of children, when empty no child will be added

  18. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  29. def setNonOptionalValue(value: String): OptionalDslBuilder

    Permalink

    see ?~>

  30. def setOptionalValue(value: Option[String]): OptionalDslBuilder

    Permalink

    see ~> Option[String]

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toOptionalTree: Option[xml.XmlTree]

    Permalink

    If all of the underly Elem is empty - no children or attributes then it returns None.

    If all of the underly Elem is empty - no children or attributes then it returns None.

    NB xsi:nil still counts as an attribute as it has an intended meaning.

  33. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  34. val tree: xml.XmlTree

    Permalink
  35. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped