Class DTDIdRefsAttr


  • public final class DTDIdRefsAttr
    extends DTDAttribute
    Attribute class for attributes that contain multiple references to elements that have matching identifier specified.
    • Constructor Detail

      • DTDIdRefsAttr

        public DTDIdRefsAttr​(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
        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.

        It's unlikely there will be default values... but just in case, let's implement it properly.

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