Package com.adobe.xfa

Class TagnameFilter

java.lang.Object
com.adobe.xfa.NodeListFilter
com.adobe.xfa.TagnameFilter

public final class TagnameFilter extends NodeListFilter
  • Constructor Details

    • TagnameFilter

      public TagnameFilter()
      Default constructor for TagnameFilter. When this constructor is used, the tag should be set before using this filter.
      See Also:
    • TagnameFilter

      public TagnameFilter(int eTag)
      Constructor for TagnameFilter.
      Parameters:
      eTag - Note that the tag provided must be one of the tags contained in the XFA namespace. e.g. XFA.FIELDTAG
  • Method Details

    • accept

      public boolean accept(Node node)
      The accept method defines a set of criteria that each node must pass if it is to be accepted by this filter.
      Overrides:
      accept in class NodeListFilter
      Parameters:
      node - the node to test for inclusion
      Returns:
      true if the node is to be included. The default implementation always returns true.
    • setTagname

      public void setTagname(int eTag)
      Set the tag to look for when filtering nodes.
      Parameters:
      eTag - Note that the tag provided must be one of the tags contained in the XFA namespace. e.g. XFA.FIELDTAG