scales.xml.dsl

OptionalDslBuilder

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.

Source
OptionalDSLBuilder.scala
Linear Supertypes
AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. OptionalDslBuilder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def ?/(itemOrElem: ⇒ Iterable[OptionalDslBuilder]): OptionalDslBuilder

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

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

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

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

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

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

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

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

    Add attributes

  11. 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/>

  12. 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

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

    Adds items and filters out empty trees.

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

    Adds items and filters out empty trees.

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

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

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

    Add attributes

  17. def addOptionalChild(itemOrElem: OptionalDslBuilder): OptionalDslBuilder

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

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

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

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

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

  20. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  21. def clone(): AnyRef

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

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

    see ?~>

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

    see ~> Option[String]

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

    Definition Classes
    AnyRef
  34. 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.

  35. def toString(): String

    Definition Classes
    AnyRef → Any
  36. val tree: xml.XmlTree

  37. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped