public class SkipValidator extends ContentValidator
ContentValidator.Nillability
childValidator, nil, pendingMessages
locallyInvalid
nextReceiver
pipelineConfiguration, previousAtomic, systemId
Constructor and Description |
---|
SkipValidator(Receiver next) |
Modifier and Type | Method and Description |
---|---|
void |
append(Item item,
Location locationId,
int copyNamespaces)
Append an arbitrary item (node or atomic value) to the output
|
void |
attribute(NodeName nameCode,
SimpleType type,
java.lang.CharSequence value,
Location locationId,
int properties)
Handle an attribute
|
protected ContentValidator |
getChildValidator()
Get a validator to handle the children of the current element.
|
protected ConstraintChecker |
getConstraintChecker()
Get the constraint checker used in this pipeline
|
SchemaType |
getSchemaType()
Get the schema type against which we are validating, if any
|
void |
setPipelineConfiguration(PipelineConfiguration pipe)
Set the pipeline configuration
|
void |
startElement(NodeName nameCode,
SchemaType typeCode,
Location location,
int properties)
Output element start tag
|
checkNoCharactersWhenNil, checkNoChildrenWhenNil, endDocument, getAnnotation, getContainingElement, getContainingElementLocationId, getContainingElementName, getElementDeclaration, getNamespaceResolver, getNillability, isNil, makeChildValidator, makeValidator, makeValidatorForType, setAnnotation, setContainingElement, setElementDeclaration, setNillability
getStartTagBuffer, getValidationContext, reportIfInvalid, reportValidationError, setConstraintChecker, setStartTagBuffer, setValidationContext, usesTypeAnnotations
characters, close, comment, endElement, getNamePool, getNextReceiver, namespace, open, processingInstruction, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getPipelineConfiguration, getSystemId, handlesAppend
public SkipValidator(Receiver next)
public void setPipelineConfiguration(PipelineConfiguration pipe)
Receiver
setPipelineConfiguration
in interface Receiver
setPipelineConfiguration
in class ProxyReceiver
pipe
- the pipeline configurationpublic SchemaType getSchemaType()
getSchemaType
in class ContentValidator
protected ConstraintChecker getConstraintChecker()
ValidatingFilter
getConstraintChecker
in class ValidatingFilter
public void startElement(NodeName nameCode, SchemaType typeCode, Location location, int properties) throws XPathException
startElement
in interface Receiver
startElement
in class ContentValidator
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 occursprotected ContentValidator getChildValidator()
getChildValidator
in class ContentValidator
public void attribute(NodeName nameCode, SimpleType type, java.lang.CharSequence value, Location locationId, int properties) throws XPathException
attribute
in interface Receiver
attribute
in class ProxyReceiver
nameCode
- integer identifying the name of the attributetype
- integer identifying the type annotation of the
attributevalue
- the value of the attributelocationId
- the location of the node in the source, or of the instruction that created itproperties
- bit-significant flags indicating special action to
be taken @throws XPathException On any failure to write the attributeXPathException
- if an error occurspublic void append(Item item, Location locationId, int copyNamespaces) throws XPathException
ProxyReceiver
append
in interface Receiver
append
in class ValidatingFilter
item
- the item to be appendedlocationId
- the location of the calling instruction, for diagnosticscopyNamespaces
- if the item is an element node, this indicates whether its namespaces
need to be copied. Values are ReceiverOptions.ALL_NAMESPACES
,
ReceiverOptions.LOCAL_NAMESPACES
; the default (0) means
no namespacesXPathException
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.