public class MatchSaxonProcessorDelegate extends Object implements SaxonProcessorDelegate
SaxonProcessorDelegate.NextSteps| Constructor and Description |
|---|
MatchSaxonProcessorDelegate(com.google.common.base.Predicate<net.sf.saxon.s9api.XdmNode> predicate,
SaxonProcessorDelegate matchDelegate,
SaxonProcessorDelegate nomatchDelegate)
Creates a new instance that uses the given predicate to dispatch events
to the two given delegates.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attribute(net.sf.saxon.s9api.XdmNode node,
SaxonBuilder builder)
Called when starting the processing of an attribute node.
|
void |
comment(net.sf.saxon.s9api.XdmNode node,
SaxonBuilder builder)
Called when starting the processing of a comment node.
|
void |
endDocument(net.sf.saxon.s9api.XdmNode node,
SaxonBuilder builder)
Called after having processed a document.
|
void |
endElement(net.sf.saxon.s9api.XdmNode node,
SaxonBuilder builder)
Called after having processed an element.
|
void |
processingInstruction(net.sf.saxon.s9api.XdmNode node,
SaxonBuilder builder)
Called when starting the processing of a processing instruction node
|
boolean |
startDocument(net.sf.saxon.s9api.XdmNode node,
SaxonBuilder builder)
Called when starting the processing of a document.
|
EnumSet<SaxonProcessorDelegate.NextSteps> |
startElement(net.sf.saxon.s9api.XdmNode node,
SaxonBuilder builder)
Called when starting the processing of an element.
|
void |
text(net.sf.saxon.s9api.XdmNode node,
SaxonBuilder builder)
Called when starting the processing of a text node.
|
public MatchSaxonProcessorDelegate(com.google.common.base.Predicate<net.sf.saxon.s9api.XdmNode> predicate,
SaxonProcessorDelegate matchDelegate,
SaxonProcessorDelegate nomatchDelegate)
pattern - The XSLT match pattern evaluated for each nodematchDelegate - The processor delegate called if the pattern matches a nodenomatchDelegate - The processor delegate called if the pattern does not match a
nodepublic void attribute(net.sf.saxon.s9api.XdmNode node,
SaxonBuilder builder)
SaxonProcessorDelegateattribute in interface SaxonProcessorDelegatenode - the attribute nodebuilder - the shared builder used to create the result documentpublic void comment(net.sf.saxon.s9api.XdmNode node,
SaxonBuilder builder)
SaxonProcessorDelegatecomment in interface SaxonProcessorDelegatenode - the comment nodebuilder - the shared builder used to create the result documentpublic void endDocument(net.sf.saxon.s9api.XdmNode node,
SaxonBuilder builder)
SaxonProcessorDelegateendDocument in interface SaxonProcessorDelegatenode - the document nodebuilder - the shared builder used to create the result documentpublic void endElement(net.sf.saxon.s9api.XdmNode node,
SaxonBuilder builder)
SaxonProcessorDelegateendElement in interface SaxonProcessorDelegatenode - the element nodebuilder - the shared builder used to create the result documentpublic void processingInstruction(net.sf.saxon.s9api.XdmNode node,
SaxonBuilder builder)
SaxonProcessorDelegateprocessingInstruction in interface SaxonProcessorDelegatenode - the processing instruction node.builder - the shared builder used to create the result documentpublic boolean startDocument(net.sf.saxon.s9api.XdmNode node,
SaxonBuilder builder)
SaxonProcessorDelegatestartDocument in interface SaxonProcessorDelegatenode - the document nodebuilder - the shared builder used to create the result documenttrue iff the processor should keep on processing the
children nodespublic EnumSet<SaxonProcessorDelegate.NextSteps> startElement(net.sf.saxon.s9api.XdmNode node, SaxonBuilder builder)
SaxonProcessorDelegatestartElement in interface SaxonProcessorDelegatenode - the element nodebuilder - the shared builder used to create the result documentpublic void text(net.sf.saxon.s9api.XdmNode node,
SaxonBuilder builder)
SaxonProcessorDelegatetext in interface SaxonProcessorDelegatenode - the text nodebuilder - the shared builder used to create the result documentCopyright © 2009-2012 TranceCode. All Rights Reserved.