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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- var adecls: List[AttrDecl]
- Attributes
- protected
- 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)
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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 clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def compose[A](g: (A) => Node): (A) => Boolean
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- var contentModel: ContentModel
- Attributes
- protected
- var dfa: DetWordAutom[ElemName]
- Attributes
- protected
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getContentModel: ContentModel
- def getIterable(nodes: collection.Seq[Node], skipPCDATA: Boolean): Iterable[ElemName]
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def setContentModel(cm: ContentModel): Unit
set content model, enabling element validation
- def setMetaData(adecls: List[AttrDecl]): Unit
set meta data, enabling attribute validation
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Function1 → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])