Packages

c

scala.xml.dtd

ElementValidator

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

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ElementValidator
  2. Function1
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ElementValidator()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. var adecls: List[AttrDecl]
    Attributes
    protected
  5. def andThen[A](g: (Boolean) => A): (Node) => A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  6. 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)

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. 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

  9. def check(md: MetaData): Boolean

    check attributes, return true if md corresponds to attribute declarations in adecls.

  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  11. def compose[A](g: (A) => Node): (A) => Boolean
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  12. var contentModel: ContentModel
    Attributes
    protected
  13. var dfa: DetWordAutom[ElemName]
    Attributes
    protected
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def getContentModel: ContentModel
  18. def getIterable(nodes: collection.Seq[Node], skipPCDATA: Boolean): Iterable[ElemName]
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. def setContentModel(cm: ContentModel): Unit

    set content model, enabling element validation

  25. def setMetaData(adecls: List[AttrDecl]): Unit

    set meta data, enabling attribute validation

  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from (Node) => Boolean

Inherited from AnyRef

Inherited from Any

Ungrouped