Class DTDEntityAttr


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

      • DTDEntityAttr

        public DTDEntityAttr​(PrefixedName name,
                             DefaultAttrValue defValue,
                             int specIndex,
                             boolean nsAware,
                             boolean xml11)
        Main constructor. Note that id attributes can never have default 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 DTDValidatorBase 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 object 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