c

scala.xml.dtd

ElementValidator

class ElementValidator extends (Node) ⇒ Boolean

validate children and/or attributes of an element exceptions are created but not thrown.

Linear Supertypes
(Node) ⇒ Boolean, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ElementValidator
  2. Function1
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ElementValidator()

Value Members

  1. def andThen[A](g: (Boolean) ⇒ A): (Node) ⇒ A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  2. def apply(n: Node): Boolean

    applies various validations - accumulates error messages in exc

    applies various validations - accumulates error messages in exc

    Definition Classes
    ElementValidator → Function1
    To do

    fail on first error, ignore other errors (rearranging conditions)

  3. def check(nodes: Seq[Node]): Boolean

    check children, return true if conform to content model

    check children, return true if conform to content model

    Note

    contentModel != null

  4. def check(md: MetaData): Boolean

    check attributes, return true if md corresponds to attribute declarations in adecls.

  5. def compose[A](g: (A) ⇒ Node): (A) ⇒ Boolean
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  6. def getContentModel: ContentModel
  7. def getIterable(nodes: Seq[Node], skipPCDATA: Boolean): Iterable[ElemName]
  8. def setContentModel(cm: ContentModel): Unit

    set content model, enabling element validation

  9. def setMetaData(adecls: List[AttrDecl]): Unit

    set meta data, enabling attribute validation

  10. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any