scala.xml.dtd
class ElementValidator

[source: `scala/xml/dtd/ElementValidator.scala`]

`` `class` ElementValidator
  `extends` (Node) => Boolean

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

Value Summary
`protected var` | adecls : List[AttrDecl]
`protected var` | contentModel : ContentModel
`protected var` | dfa : DetWordAutom[ElemName]
`var` | exc : List[ValidationException]

Method Summary
`def` | apply (n : Node) : Boolean applies various validations - accumulates error messages in exc
`def` | check (nodes : Seq[Node]) : Boolean check children, return true if conform to content model
`def` | check (md : MetaData) : Boolean check attributes, return true if md corresponds to attribute declarations in adecls.
`def` | getContentModel : ContentModel
`def` | getIterator (nodes : Seq[Node], skipPCDATA : Boolean) : Iterator[ElemName]
`def` | setContentModel (cm : ContentModel) : Unit set content model, enabling element validation
`def` | setMetaData (adecls : List[AttrDecl]) : Unit set meta data, enabling attribute validation

Methods inherited from Function1
toString, compose, andThen

Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf