class ElementValidator extends (Node) => Boolean
validate children and/or attributes of an element exceptions are created but not thrown.
- Annotations
- @deprecated
- Deprecated
(Since version 1.3.0) This class will be removed
- Alphabetic
- By Inheritance
- ElementValidator
- Function1
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ElementValidator()
Value Members
- def andThen[A](g: (Boolean) => A): (Node) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- 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)
- def check(nodes: collection.Seq[Node]): Boolean
check children, return true if conform to content model
check children, return true if conform to content model
- Note
contentModel != null
- def check(md: MetaData): Boolean
check attributes, return true if md corresponds to attribute declarations in adecls.
- def compose[A](g: (A) => Node): (A) => Boolean
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def getContentModel: ContentModel
- def getIterable(nodes: collection.Seq[Node], skipPCDATA: Boolean): Iterable[ElemName]
- def setContentModel(cm: ContentModel): Unit
set content model, enabling element validation
- def setMetaData(adecls: List[AttrDecl]): Unit
set meta data, enabling attribute validation
- def toString(): String
- Definition Classes
- Function1 → AnyRef → Any