public interface ElementValidator
HdxResourceType
. Implementations of this interface are
linked with types using the method setElementValidator
on the object representing the type.Modifier and Type | Method and Description |
---|---|
boolean |
validateElement(Element el)
Checks that an element is a valid instance of a type.
|
boolean validateElement(Element el)
The validator should not assume that the element it is validating has been constructed by an authoritative source (such as the package or class which implements this interface). In particular, it should not react to invalid elements by throwing unchecked exceptions or using assertions. That is, this method should be usable by code which is constructing its own DOM representing the type in question.
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.