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( ... )