Class Occur

  • All Implemented Interfaces:
    Peer

    public final class Occur
    extends ProtoableNode
    An element that describes the constraints over the number of allowable instances for a subform or page
    • Constructor Detail

      • Occur

        public Occur​(Element parent,
                     Node prevSibling)
    • Method Detail

      • getAttribute

        public Attribute getAttribute​(int eTag,
                                      boolean bPeek,
                                      boolean bValidate)
        Description copied from class: Element
        Gets this element's attribute whose attribute tag is given.

        To peek at an attribute, set the peek argument to true. If the attribute is present, it is returned; otherwise null is returned.

        To create an attribute, set the peek argument to false. If the attribute is absent, a default attribute is created and returned; for attributes with no default, null is returned.

        If validation argument is true, and the validation fails, this method throws.

        Overrides:
        getAttribute in class ProtoableNode
        Parameters:
        eTag - the tag of the attribute.
        bPeek - whether to peek at the attribute or not.
        bValidate - whether to validate the attribute or not.
        Returns:
        the attribute.