Class Caption

  • All Implemented Interfaces:
    Peer

    public final class Caption
    extends ProtoableNode
    Captionclass for caption objects. An element that describes a caption to be associated with a form field or draw element.
    • Constructor Detail

      • Caption

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

      • getElement

        public Element getElement​(int eTag,
                                  boolean bPeek,
                                  int nOccurrence,
                                  boolean bReturnDefault,
                                  boolean bValidate)
        Description copied from class: Element
        Gets this element's sub element whose element tag is given.

        To return the element, set the returnDefault argument to true. If the element is present, it is returned; otherwise the default element is created and returned.

        To peek at the element, set the peek argument to true. If the element is present, it is returned; otherwise null is returned. When set to true, default properties aren't created, and proto references are not expanded.

        To create the element, set the peek argument to false. If the element is absent, a default element is created and returned.

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

        If the occurrence argument is out of range, this method throws.

        Overrides:
        getElement in class ProtoableNode
        Parameters:
        eTag - the tag of the element to retrieve.
        bPeek - whether to peek at the element, or not.
        nOccurrence - the n'th occurrence of the element to retrieve.
        bReturnDefault - whether to create a default element, or not.
        bValidate - whether to validate the element, or not.
        Returns:
        the element, or null.