public class PackageInspector extends ProxyReceiver
nextReceiver
pipelineConfiguration, previousAtomic, systemId
Modifier and Type | Method and Description |
---|---|
void |
attribute(NodeName name,
SimpleType typeCode,
java.lang.CharSequence value,
Location locationId,
int properties)
Notify an attribute.
|
static PackageDetails |
getPackageDetails(java.io.File top,
Configuration config) |
void |
startElement(NodeName namecode,
SchemaType typecode,
Location location,
int properties)
Abort the parse when the first start element tag is found
|
append, characters, close, comment, endDocument, endElement, getNamePool, getNextReceiver, namespace, open, processingInstruction, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument, usesTypeAnnotations
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getPipelineConfiguration, getSystemId, handlesAppend
public void startElement(NodeName namecode, SchemaType typecode, Location location, int properties) throws XPathException
startElement
in interface Receiver
startElement
in class ProxyReceiver
namecode
- integer code identifying the name of the element within the name pool.typecode
- the element's type annotation.location
- a location associated with the event (typically either a location in the
source document or the stylesheet)properties
- properties of the element nodeXPathException
- if an error occurspublic void attribute(NodeName name, SimpleType typeCode, java.lang.CharSequence value, Location locationId, int properties) throws XPathException
attribute
in interface Receiver
attribute
in class ProxyReceiver
name
- The name of the attributetypeCode
- The type of the attributevalue
- locationId
- the location of the node in the source, or of the instruction that created itproperties
- Bit significant value. The following bits are defined:
IllegalStateException:
- attempt to output an attribute when there is no open elementXPathException
- if an error occurspublic static PackageDetails getPackageDetails(java.io.File top, Configuration config) throws XPathException
XPathException
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.