public class LaxValidator extends ContentValidator
ContentValidator.Nillability
childValidator, nil, pendingMessages
locallyInvalid
nextReceiver
pipelineConfiguration, previousAtomic, systemId
Constructor and Description |
---|
LaxValidator(Receiver next) |
Modifier and Type | Method and Description |
---|---|
void |
attribute(NodeName attName,
SimpleType typeCode,
java.lang.CharSequence value,
Location locationId,
int properties)
Handle an attribute
|
void |
characters(java.lang.CharSequence chars,
Location locationId,
int properties)
Character data
|
ContentValidator |
getChildValidator()
Get a validator to handle the children of the current element.
|
SchemaType |
getSchemaType()
Get the schema type against which we are validating, if any
|
void |
startElement(NodeName nodeName,
SchemaType typeCode,
Location location,
int properties)
Output element start tag for a child element
|
checkNoCharactersWhenNil, checkNoChildrenWhenNil, endDocument, getAnnotation, getContainingElement, getContainingElementLocationId, getContainingElementName, getElementDeclaration, getNamespaceResolver, getNillability, isNil, makeChildValidator, makeValidator, makeValidatorForType, setAnnotation, setContainingElement, setElementDeclaration, setNillability
append, getConstraintChecker, getStartTagBuffer, getValidationContext, reportIfInvalid, reportValidationError, setConstraintChecker, setStartTagBuffer, setValidationContext, usesTypeAnnotations
close, comment, endElement, getNamePool, getNextReceiver, namespace, open, processingInstruction, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getPipelineConfiguration, getSystemId, handlesAppend
public LaxValidator(Receiver next)
public SchemaType getSchemaType()
getSchemaType
in class ContentValidator
public void startElement(NodeName nodeName, SchemaType typeCode, Location location, int properties) throws XPathException
startElement
in interface Receiver
startElement
in class ContentValidator
nodeName
- 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 ContentValidator getChildValidator()
ContentValidator
getChildValidator
in class ContentValidator
public void attribute(NodeName attName, SimpleType typeCode, java.lang.CharSequence value, Location locationId, int properties) throws XPathException
attribute
in interface Receiver
attribute
in class ProxyReceiver
attName
- integer identifying the name of the attributetypeCode
- 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 net.sf.saxon.trans.XPathException
On any failure to write the attributeXPathException
- if an error occurspublic void characters(java.lang.CharSequence chars, Location locationId, int properties) throws XPathException
characters
in interface Receiver
characters
in class ProxyReceiver
chars
- The characterslocationId
- provides information such as line number and system ID.properties
- Bit significant value. The following bits are defined:
XPathException
- if an error occursCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.