class ElementValidator extends (Node) ⇒ Boolean
validate children and/or attributes of an element exceptions are created but not thrown.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ElementValidator
- Function1
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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: 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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getContentModel: ContentModel
- def getIterable(nodes: Seq[Node], skipPCDATA: Boolean): Iterable[ElemName]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )