Package org.beanio.internal.parser
Class ParserComponent
- java.lang.Object
-
- org.beanio.internal.util.TreeNode<Component>
-
- org.beanio.internal.parser.Component
-
- org.beanio.internal.parser.ParserComponent
-
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Iterable<Component>
,Parser
,Replicateable
- Direct Known Subclasses:
DelegatingParser
,Field
,Group
,Segment
,XmlSelectorWrapper
public abstract class ParserComponent extends Component implements Parser
Base class for all parser components in that implementParser
.The method
isSupportedChild(Component)
is overridden to restrict children to components that also implementParser
.- Since:
- 2.0
- See Also:
Parser
-
-
Constructor Summary
Constructors Constructor Description ParserComponent()
Constructs a newParserComponent
.ParserComponent(int size)
Constructs a newParserComponent
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isSupportedChild(Component child)
Returns whether a node is a supported child of this node.-
Methods inherited from class org.beanio.internal.parser.Component
registerLocals
-
Methods inherited from class org.beanio.internal.util.TreeNode
add, clone, find, getChildren, getFirst, getName, isDescendant, iterator, print, print, setName, size, sort, toParamString, toString, updateReferences
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.beanio.internal.parser.Parser
clearValue, getName, getSize, getValue, hasContent, isIdentifier, isOptional, marshal, matches, setValue, unmarshal
-
-
-
-
Method Detail
-
isSupportedChild
protected boolean isSupportedChild(Component child)
Description copied from class:TreeNode
Returns whether a node is a supported child of this node. Called byTreeNode.add(TreeNode)
.- Overrides:
isSupportedChild
in classTreeNode<Component>
- Parameters:
child
- the node to test- Returns:
- true if the child is allowed
-
-