Packages

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
Type Hierarchy
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
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def ?/(itemOrElem: ⇒ Iterable[OptionalDslBuilder]): OptionalDslBuilder

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

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

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

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

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

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

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

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

    Add attributes

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

    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

    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

    Adds items and filters out empty trees.

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

    Adds items and filters out empty trees.

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

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

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

    Add attributes

  15. def addOptionalChild(itemOrElem: OptionalDslBuilder): OptionalDslBuilder

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

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

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

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

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

  18. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  19. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. def setNonOptionalValue(value: String): OptionalDslBuilder

    see ?~>

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

    see ~> Option[String]

  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def toOptionalTree: Option[xml.XmlTree]

    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
    Definition Classes
    AnyRef → Any
  34. val tree: xml.XmlTree
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped