pub trait ValidityStateMethods<D>where
    D: DomTypes,{
    // Required methods
    fn ValueMissing(&self) -> bool;
    fn TypeMismatch(&self) -> bool;
    fn PatternMismatch(&self) -> bool;
    fn TooLong(&self) -> bool;
    fn TooShort(&self) -> bool;
    fn RangeUnderflow(&self) -> bool;
    fn RangeOverflow(&self) -> bool;
    fn StepMismatch(&self) -> bool;
    fn BadInput(&self) -> bool;
    fn CustomError(&self) -> bool;
    fn Valid(&self) -> bool;
}