Package com.saxonica.ee.schema.sdoc
Class XSDComplexContentRestriction
- java.lang.Object
- 
- net.sf.saxon.tree.linked.NodeImpl
- 
- net.sf.saxon.tree.linked.ParentNodeImpl
- 
- net.sf.saxon.tree.linked.ElementImpl
- 
- com.saxonica.ee.schema.sdoc.SchemaElement
- 
- com.saxonica.ee.schema.sdoc.XSDComplexContentRestriction
 
 
 
 
 
- 
- All Implemented Interfaces:
- javax.xml.transform.Source,- javax.xml.transform.SourceLocator,- ActiveSource,- GroundedValue,- Item,- MutableNodeInfo,- NamespaceResolver,- NodeInfo,- Sequence,- Location,- SteppingNode,- SiblingCountingNode,- org.xml.sax.Locator
 
 public class XSDComplexContentRestriction extends SchemaElement An xs:restriction element that is a child of xs:complexContent within an XML Schema document
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.saxonica.ee.schema.sdoc.SchemaElementSchemaElement.XPathStaticContext
 
- 
 - 
Field Summary- 
Fields inherited from class com.saxonica.ee.schema.sdoc.SchemaElementNAMESPACE_ANY, NAMESPACE_LOCAL, NAMESPACE_OTHER, NAMESPACE_TARGET, REQUIRE_NULL_NS, REQUIRE_TARGET_NS, USE_DEFAULT_NS, USE_DEFAULT_NS_WITHOUT_IMPORT
 - 
Fields inherited from class net.sf.saxon.tree.linked.NodeImplNODE_LETTER
 
- 
 - 
Constructor SummaryConstructors Constructor Description XSDComplexContentRestriction()Creates a new Restriction element
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ComplexTypegetComplexType()Get the complex type that is the result of the restrictionprotected booleanisFinalState(int state)For elements whose content model is parsed using a finite state machine, test whether a given state is a final state.voidpostValidate(SchemaCompiler compiler)Process child elements after validationprotected voidprepareAttributes()Validate and process the attributes on this element in the schema documentvoidvalidate(SchemaCompiler compiler)Validate this schema element, checking all document-level constraints- 
Methods inherited from class com.saxonica.ee.schema.sdoc.SchemaElementallocateAnonymousTypeCode, allowAttributes, checkContentModel, checkLocalTargetNamespace, checkMutuallyExclusiveAttributes, checkOnlyChildIsAnnotation, checkPermittedType, duplicate, duplicateElement, error, error, getComponentName, getContainingComplexType, getContainingSimpleType, getFingerprint, getSchema, getSchemaNodeFactory, getXSDSchema, illegalElement, indefiniteArticle, invalidAttributeValue, isTopLevel, makeNamespaceContext, missingAttribute, missingChildElement, mustBeFirstElement, mustPrecede, mutuallyExclusive, mutuallyExclusiveAttributes, mutuallyExclusiveElementAndAttribute, parseBooleanAttribute, parseFinalOrBlock, processAllAttributes, processAllowedNamespaces, processDisallowedNamespaces, processDisallowedQNames, processId, processMaxOccurs, processMinOccurs, requireAttribute, setSchemaNodeFactory, validateChildren, validateSubtree, warning
 - 
Methods inherited from class net.sf.saxon.tree.linked.ElementImpladdAttribute, addNamespace, addNamespace, attributes, checkNotNamespaceSensitiveElement, copy, delete, fixupInsertedNamespaces, generateId, getAllNamespaces, getAttributeValue, getBaseURI, getColumnNumber, getDeclaredNamespaces, getLineNumber, getNodeKind, getNodeName, getRoot, getSchemaType, getSystemId, getURIForPrefix, initialise, isId, isIdref, isIdRefNode, isInScopeNamespace, isNilled, iteratePrefixes, removeAttribute, removeNamespace, removeTypeAnnotation, rename, replaceStringValue, setAttributeInfo, setAttributes, setLocation, setNamespaceMap, setNilled, setNodeName, setSystemId, setTypeAnnotation
 - 
Methods inherited from class net.sf.saxon.tree.linked.ParentNodeImpladdChild, compact, getFirstChild, getLastChild, getNthChild, getNumberOfChildren, getRawSequenceNumber, getSequenceNumber, getUnicodeStringValue, hasChildNodes, insertChildren, insertChildrenAt, iterateChildren, removeChild, replaceChildrenAt, setChildren, setRawSequenceNumber
 - 
Methods inherited from class net.sf.saxon.tree.linked.NodeImplatomize, compareOrder, effectiveBooleanValue, equals, getConfiguration, getDisplayName, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPhysicalRoot, getPrefix, getPreviousInDocument, getPreviousSibling, getRawParent, getSiblingPosition, getSuccessorElement, getTreeInfo, getURI, hasFingerprint, hashCode, head, insertSiblings, isDeleted, iterateAxis, iterateAxis, newBuilder, replace, saveLocation, setRawParent, setSiblingPosition
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface net.sf.saxon.om.GroundedValueasIterable, concatenate, containsNode, materialize
 - 
Methods inherited from interface net.sf.saxon.om.ItemgetLength, getStringValue, itemAt, iterate, reduce, subsequence
 - 
Methods inherited from interface net.sf.saxon.om.NodeInfoasActiveSource, children, children, deliver, getGenre, getPublicId, isSameNodeInfo, isStreamed, toShortString
 - 
Methods inherited from interface net.sf.saxon.om.SequencemakeRepeatable
 
- 
 
- 
- 
- 
Method Detail- 
prepareAttributesprotected void prepareAttributes() throws SchemaExceptionValidate and process the attributes on this element in the schema document- Specified by:
- prepareAttributesin class- SchemaElement
- Throws:
- SchemaException- if any errors are found in the attributes
 
 - 
validatepublic void validate(SchemaCompiler compiler) throws SchemaException Validate this schema element, checking all document-level constraints- Overrides:
- validatein class- SchemaElement
- Parameters:
- compiler- used for error reporting
- Throws:
- SchemaException- if any XML representation constraints are violated
 
 - 
isFinalStateprotected boolean isFinalState(int state) Description copied from class:SchemaElementFor elements whose content model is parsed using a finite state machine, test whether a given state is a final state. The default implementation of this method is never used; it exists for the benefit of subclasses that do not use this mechanism- Overrides:
- isFinalStatein class- SchemaElement
- Parameters:
- state- the state to be tested
- Returns:
- true if the given state is a final state
 
 - 
getComplexTypepublic ComplexType getComplexType() Get the complex type that is the result of the restriction- Returns:
- the type formed by restriction
 
 - 
postValidatepublic void postValidate(SchemaCompiler compiler) throws SchemaException Process child elements after validation- Overrides:
- postValidatein class- SchemaElement
- Parameters:
- compiler- used for error reporting
- Throws:
- SchemaException- if errors are found
 
 
- 
 
-