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. 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. var adecls: List[AttrDecl]
    Attributes
    protected
  5. def andThen[A](g: (Boolean) ⇒ A): (Node) ⇒ A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  6. 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)

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. 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

  9. def check(md: MetaData): Boolean

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

  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  11. def compose[A](g: (A) ⇒ Node): (A) ⇒ Boolean
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  12. var contentModel: ContentModel
    Attributes
    protected
  13. var dfa: DetWordAutom[ElemName]
    Attributes
    protected
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def getContentModel: ContentModel
  19. def getIterable(nodes: Seq[Node], skipPCDATA: Boolean): Iterable[ElemName]
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. def setContentModel(cm: ContentModel): Unit

    set content model, enabling element validation

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

    set meta data, enabling attribute validation

  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from (Node) ⇒ Boolean

Inherited from AnyRef

Inherited from Any

Ungrouped