|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sourceprojects.xmlparser.AbstractTagParser<B>
B
- Type of ContextObject to useAbstractTagParser
instead
@Deprecated public abstract class AbstractTagParser<B>
Abstract implementation of
TagDefinitionParser
with basic handling
of some of the needed method structures. If someone want's to implement a tag
parser / transformer, he must extends this class instead of implementing the
interface directly.
Constructor Summary | |
---|---|
AbstractTagParser()
Deprecated. |
Method Summary | |
---|---|
void |
parseElement(Element element,
ParserContext<B> parserContext,
DefinitionBuilder definitionBuilder)
Deprecated. Parses an element. |
void |
parseElement(Element element,
String localName,
ParserContext<B> parserContext,
DefinitionBuilder definitionBuilder)
Deprecated. Parses an element. |
void |
parseElement(Element element,
String localName,
QName parent,
ParserContext<B> parserContext,
DefinitionBuilder definitionBuilder)
Deprecated. Parses an element. |
Node |
transformElement(Element element,
ParserContext<B> parserContext,
DefinitionBuilder definitionBuilder)
Deprecated. Transforms an element. |
Node |
transformElement(Element element,
String localName,
ParserContext<B> parserContext,
DefinitionBuilder definitionBuilder)
Deprecated. Transforms an element. |
Node |
transformElement(Element element,
String localName,
QName parent,
ParserContext<B> parserContext,
DefinitionBuilder definitionBuilder)
Deprecated. Transforms an element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.sourceprojects.xmlparser.TagDefinitionParser |
---|
getNamespace, getTags |
Constructor Detail |
---|
public AbstractTagParser()
Method Detail |
---|
public void parseElement(Element element, ParserContext<B> parserContext, DefinitionBuilder definitionBuilder) throws XmlParserParsingException
TagDefinitionParser
parseElement
in interface TagDefinitionParser<B>
element
- Element which was foundparserContext
- ParserContext instance which was given to the
XmlParser
instancedefinitionBuilder
- DefinitionBuilder instance which was given to the
XmlParser
instance
XmlParserParsingException
- Is thrown when some error occurs. Implementation specific
exceptions are wrapped into XmlParserParsingExceptionpublic void parseElement(Element element, String localName, ParserContext<B> parserContext, DefinitionBuilder definitionBuilder) throws XmlParserParsingException
TagDefinitionParser
parseElement
in interface TagDefinitionParser<B>
element
- Element which was foundlocalName
- Name, as String, of the actual elementparserContext
- ParserContext instance which was given to the
XmlParser
instancedefinitionBuilder
- DefinitionBuilder instance which was given to the
XmlParser
instance
XmlParserParsingException
- Is thrown when some error occurs. Implementation specific
exceptions are wrapped into XmlParserParsingExceptionpublic void parseElement(Element element, String localName, QName parent, ParserContext<B> parserContext, DefinitionBuilder definitionBuilder) throws XmlParserParsingException
TagDefinitionParser
parseElement
in interface TagDefinitionParser<B>
element
- Element which was foundlocalName
- Name, as String, of the actual elementparent
- QName
instance of the parent element, null if no
parent-hierarchy was definedparserContext
- ParserContext instance which was given to the
XmlParser
instancedefinitionBuilder
- DefinitionBuilder instance which was given to the
XmlParser
instance
XmlParserParsingException
- Is thrown when some error occurs. Implementation specific
exceptions are wrapped into XmlParserParsingExceptionpublic Node transformElement(Element element, ParserContext<B> parserContext, DefinitionBuilder definitionBuilder) throws XmlParserParsingException
TagDefinitionParser
transformElement
in interface TagDefinitionParser<B>
element
- Element which was foundparserContext
- ParserContext instance which was given to the
XmlParser
instancedefinitionBuilder
- DefinitionBuilder instance which was given to the
XmlParser
instance
Node
of the transformed element (defined against
DefinitionBuilder
.getDocument() Document
), null
if element should be removed from returning Document
XmlParserParsingException
- Is thrown when some error occurs. Implementation specific
exceptions are wrapped into XmlParserParsingExceptionpublic Node transformElement(Element element, String localName, ParserContext<B> parserContext, DefinitionBuilder definitionBuilder) throws XmlParserParsingException
TagDefinitionParser
transformElement
in interface TagDefinitionParser<B>
element
- Element which was foundlocalName
- Name, as String, of the actual elementparserContext
- ParserContext instance which was given to the
XmlParser
instancedefinitionBuilder
- DefinitionBuilder instance which was given to the
XmlParser
instance
Node
of the transformed element (defined against
DefinitionBuilder
.getDocument() Document
), null
if element should be removed from returning Document
XmlParserParsingException
- Is thrown when some error occurs. Implementation specific
exceptions are wrapped into XmlParserParsingExceptionpublic Node transformElement(Element element, String localName, QName parent, ParserContext<B> parserContext, DefinitionBuilder definitionBuilder) throws XmlParserParsingException
TagDefinitionParser
transformElement
in interface TagDefinitionParser<B>
element
- Element which was foundlocalName
- Name, as String, of the actual elementparent
- QName
instance of the parent element, null if no
parent-hierarchy was definedparserContext
- ParserContext instance which was given to the
XmlParser
instancedefinitionBuilder
- DefinitionBuilder instance which was given to the
XmlParser
instance
Node
of the transformed element (defined against
DefinitionBuilder
.getDocument() Document
), null
if element should be removed from returning Document
XmlParserParsingException
- Is thrown when some error occurs. Implementation specific
exceptions are wrapped into XmlParserParsingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |