Class DTDNmTokenAttr


  • public final class DTDNmTokenAttr
    extends DTDAttribute
    Specific attribute class for attributes that contain (unique) identifiers.
    • Constructor Detail

      • DTDNmTokenAttr

        public DTDNmTokenAttr​(PrefixedName name,
                              DefaultAttrValue defValue,
                              int specIndex,
                              boolean nsAware,
                              boolean xml11)
        Main constructor.
    • 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.
        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