public class Stripper extends ProxyReceiver
| Modifier and Type | Class and Description |
|---|---|
static class |
Stripper.StripRuleTarget |
| Modifier and Type | Field and Description |
|---|---|
static byte |
ALWAYS_PRESERVE |
static byte |
ALWAYS_STRIP |
static byte |
ASSERTIONS_EXIST |
static Stripper.StripRuleTarget |
PRESERVE |
static byte |
PRESERVE_PARENT |
protected SpaceStrippingRule |
rule |
static byte |
SIMPLE_CONTENT |
static Stripper.StripRuleTarget |
STRIP |
static byte |
STRIP_DEFAULT |
nextReceiverpipelineConfiguration, previousAtomic, systemId| Constructor and Description |
|---|
Stripper(SpaceStrippingRule rule,
Receiver next) |
| Modifier and Type | Method and Description |
|---|---|
void |
attribute(NodeName nameCode,
SimpleType typeCode,
java.lang.CharSequence value,
Location locationId,
int properties)
Notify an attribute.
|
void |
characters(java.lang.CharSequence chars,
Location locationId,
int properties)
Handle a text node
|
void |
endElement()
Handle an end-of-element event
|
Stripper |
getAnother(Receiver next)
Get a clean copy of this stripper.
|
SpaceStrippingRule |
getSpaceStrippingRule() |
void |
open()
Callback interface for SAX: not for application use
|
void |
startElement(NodeName elemName,
SchemaType type,
Location location,
int properties)
Notify the start of an element
|
boolean |
usesTypeAnnotations()
Ask whether this Receiver (or the downstream pipeline) makes any use of the type annotations
supplied on element and attribute events
|
append, close, comment, endDocument, getNamePool, getUnderlyingReceiver, namespace, processingInstruction, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocumentappend, getConfiguration, getPipelineConfiguration, getSystemId, isTrueSequenceReceiverpublic static final Stripper.StripRuleTarget STRIP
public static final Stripper.StripRuleTarget PRESERVE
protected SpaceStrippingRule rule
public static final byte ALWAYS_PRESERVE
public static final byte ALWAYS_STRIP
public static final byte STRIP_DEFAULT
public static final byte PRESERVE_PARENT
public static final byte SIMPLE_CONTENT
public static final byte ASSERTIONS_EXIST
public Stripper(SpaceStrippingRule rule, Receiver next)
public Stripper getAnother(Receiver next)
next - the next receiver in the pipeline for the new Stripperpublic void open()
throws XPathException
open in interface Receiveropen in class ProxyReceiverXPathException - if an error occurspublic void startElement(NodeName elemName, SchemaType type, Location location, int properties) throws XPathException
ProxyReceiverstartElement in interface ReceiverstartElement in class ProxyReceiverelemName - integer code identifying the name of the element within the name pool.type - integer code identifying the element's type within the name pool.location - an object providing information about the module, line, and column where the node originatedproperties - properties of the element nodeXPathException - if an error occurspublic void attribute(NodeName nameCode, SimpleType typeCode, java.lang.CharSequence value, Location locationId, int properties) throws XPathException
ProxyReceiverattribute in interface Receiverattribute in class ProxyReceivernameCode - The name of the attribute, as held in the name pooltypeCode - The type of the attribute, as held in the name poolvalue - the string value of the attributelocationId - provides information such as line number and system ID.properties - Bit significant value. The following bits are defined:
XPathException - if an error occurspublic void endElement()
throws XPathException
endElement in interface ReceiverendElement in class ProxyReceiverXPathException - if an error occurspublic void characters(java.lang.CharSequence chars,
Location locationId,
int properties)
throws XPathException
characters in interface Receivercharacters in class ProxyReceiverchars - The characterslocationId - provides information such as line number and system ID.properties - Bit significant value. The following bits are defined:
XPathException - if an error occurspublic boolean usesTypeAnnotations()
usesTypeAnnotations in interface ReceiverusesTypeAnnotations in class ProxyReceiverpublic SpaceStrippingRule getSpaceStrippingRule()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.