|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
B
- Type of ContextObject to useTagDefinitionParser
instead
@Deprecated public interface TagDefinitionParser<B>
Interface for TagDefinitionParsers to implement. Defines basic methods to handle parsing and transforming of XML elements.
Method Summary | |
---|---|
String |
getNamespace()
Deprecated. Returns the namespace URI this TagDefinitionParser implementation
handles |
String[] |
getTags()
Deprecated. Returns a string array with all tags handled by this TagDefinitionParser implementation |
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. |
Method Detail |
---|
String getNamespace()
TagDefinitionParser
implementation
handles
String[] getTags()
TagDefinitionParser
implementation
void parseElement(Element element, ParserContext<B> parserContext, DefinitionBuilder definitionBuilder) throws XmlParserParsingException
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 XmlParserParsingExceptionvoid parseElement(Element element, String localName, ParserContext<B> parserContext, DefinitionBuilder definitionBuilder) throws XmlParserParsingException
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 XmlParserParsingExceptionvoid parseElement(Element element, String localName, QName parent, ParserContext<B> parserContext, DefinitionBuilder definitionBuilder) throws XmlParserParsingException
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 XmlParserParsingExceptionNode transformElement(Element element, ParserContext<B> parserContext, DefinitionBuilder definitionBuilder) throws XmlParserParsingException
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 XmlParserParsingExceptionNode transformElement(Element element, String localName, ParserContext<B> parserContext, DefinitionBuilder definitionBuilder) throws XmlParserParsingException
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 XmlParserParsingExceptionNode transformElement(Element element, String localName, QName parent, ParserContext<B> parserContext, DefinitionBuilder definitionBuilder) throws XmlParserParsingException
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 |