public abstract class AbstractFieldParser extends Object implements FieldParser
Modifier | Constructor and Description |
---|---|
protected |
AbstractFieldParser(String nodeName) |
protected |
AbstractFieldParser(String[] nodeNames) |
Modifier and Type | Method and Description |
---|---|
boolean |
canParse(Element element,
ParsingContext context) |
protected static Element |
getElement(Element fieldNode,
int elementIndex)
Find the first element item within the passed Element objects child nodes
|
protected static boolean |
isElement(Node item)
Determines if the passed Node is of type element
|
protected abstract Field |
parse(Element fieldNode,
boolean optional,
ParsingContext context) |
Field |
parse(Element fieldNode,
ParsingContext parent) |
protected static void |
parseExternalAttributes(Element element,
Field field) |
protected AbstractFieldParser(String nodeName)
protected AbstractFieldParser(String[] nodeNames)
public boolean canParse(Element element, ParsingContext context)
canParse
in interface FieldParser
public final Field parse(Element fieldNode, ParsingContext parent)
parse
in interface FieldParser
protected abstract Field parse(Element fieldNode, boolean optional, ParsingContext context)
protected static Element getElement(Element fieldNode, int elementIndex)
fieldNode
- The dom element objectprotected static boolean isElement(Node item)
item
- The Node that is being checked to see if its of type elementCopyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.