Class DTDNotationAttr


  • public final class DTDNotationAttr
    extends DTDAttribute
    Specific attribute class for attributes that are of NOTATION type, and also contain enumerated set of legal values.
    • Method Detail

      • getValueType

        public int getValueType()
        Description copied from class: DTDAttribute
        Returns the value type of this attribute as an enumerated int to match type (CDATA, ...)

        Note:

        Overrides:
        getValueType in class DTDAttribute
      • validate

        public java.lang.String validate​(DTDValidatorBase v,
                                         char[] cbuf,
                                         int start,
                                         int end,
                                         boolean normalize)
                                  throws javax.xml.stream.XMLStreamException
        Method called by the validator to let the attribute do necessary normalization and/or validation for the value.

        Note: identical to the implementation in DTDEnumAttr

        Specified by:
        validate in class DTDAttribute
        Throws:
        javax.xml.stream.XMLStreamException
      • validateDefault

        public void validateDefault​(InputProblemReporter rep,
                                    boolean normalize)
                             throws javax.xml.stream.XMLStreamException
        Method called by the validator to ask attribute to verify that the default it has (if any) is valid for such type.
        Specified by:
        validateDefault in class DTDAttribute
        Throws:
        javax.xml.stream.XMLStreamException