Package com.adobe.xfa
Class TagnameFilter
- java.lang.Object
-
- com.adobe.xfa.NodeListFilter
-
- com.adobe.xfa.TagnameFilter
-
public final class TagnameFilter extends NodeListFilter
-
-
Constructor Summary
Constructors Constructor Description TagnameFilter()Default constructor for TagnameFilter.TagnameFilter(int eTag)Constructor for TagnameFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(Node node)The accept method defines a set of criteria that each node must pass if it is to be accepted by this filter.voidsetTagname(int eTag)Set the tag to look for when filtering nodes.-
Methods inherited from class com.adobe.xfa.NodeListFilter
checkChildren, checkFinished, filterNodes, filterNodes, filterNodes, init
-
-
-
-
Constructor Detail
-
TagnameFilter
public TagnameFilter()
Default constructor for TagnameFilter. When this constructor is used, the tag should be set before using this filter.- See Also:
setTagname(int)
-
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 Detail
-
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:
acceptin classNodeListFilter- Parameters:
node- the node to test for inclusion- Returns:
trueif the node is to be included. The default implementation always returnstrue.
-
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
-
-