public interface XSequenceTypeFactory
XFactory
instance can be
obtained by calling the getSequenceTypeFactory
method on the XFactory
instance. The two are related because
they share the schemas that are registered with the XFactory
instance. Schemas added to the XFactory after
getSequenceTypeFactory
is called will be visible to the
XSequenceTypeFactory
instance that was returned.
Modifier and Type | Method and Description |
---|---|
XSequenceType |
atomic(javax.xml.namespace.QName typeName,
XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches atomic items.
|
XSequenceType |
attribute(javax.xml.namespace.QName attributeNameOrWildcard,
javax.xml.namespace.QName typeName,
XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches attributes.
|
XSequenceType |
comment(XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches comments.
|
XSequenceType |
documentNode(XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches document nodes.
|
XSequenceType |
documentNodeWithElement(javax.xml.namespace.QName elementNameOrWildcard,
javax.xml.namespace.QName typeName,
boolean nillable,
XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches document nodes having exactly one element node matching a given element test.
|
XSequenceType |
documentNodeWithSchemaElement(javax.xml.namespace.QName elementName,
XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches document nodes having exactly one element node matching a given schema-element test.
|
XSequenceType |
element(javax.xml.namespace.QName elementNameOrWildcard,
javax.xml.namespace.QName typeName,
boolean nillable,
XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches elements
|
XSequenceType |
emptySequence()
Creates a sequence type that matches the empty sequence.
|
XSequenceType |
item(XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches items.
|
XSequenceType |
node(XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches nodes..
|
XSequenceType |
processingInstruction(javax.xml.namespace.QName piNCName,
XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches processing instructions.
|
XSequenceType |
schemaAttribute(javax.xml.namespace.QName attributeName,
XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches schema attributes.
|
XSequenceType |
schemaElement(javax.xml.namespace.QName elementName,
XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches schema elements.
|
XSequenceType |
text(XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches text nodes.
|
XSequenceType emptySequence()
XSequenceType item(XSequenceType.OccurrenceIndicator cardinality)
cardinality
- the cardinality of the sequence typejava.lang.NullPointerException
- if cardinality is nullXSequenceType atomic(javax.xml.namespace.QName typeName, XSequenceType.OccurrenceIndicator cardinality)
typeName
- the name of the simple type to matchcardinality
- the cardinality of the sequence typejava.lang.NullPointerException
- if typeName or cardinality is nulljava.lang.IllegalArgumentException
- if typeName does not refer to a known simple typeXSequenceType documentNode(XSequenceType.OccurrenceIndicator cardinality)
cardinality
- the cardinality of the sequence typejava.lang.NullPointerException
- if cardinality is nullXSequenceType documentNodeWithElement(javax.xml.namespace.QName elementNameOrWildcard, javax.xml.namespace.QName typeName, boolean nillable, XSequenceType.OccurrenceIndicator cardinality)
elementNameOrWildcard
- the name of the element to match or null for wildcardtypeName
- the name of a type to match (or null for any type)nillable
- whether the sequence type matches nil elementscardinality
- the cardinality of the sequence typejava.lang.NullPointerException
- if cardinality is nulljava.lang.IllegalArgumentException
- if a typeName is supplied but does not refer to a known typeXSequenceType documentNodeWithSchemaElement(javax.xml.namespace.QName elementName, XSequenceType.OccurrenceIndicator cardinality)
elementName
- the name of the schema element declaration to matchcardinality
- the cardinality of the sequence typejava.lang.NullPointerException
- if elementName or cardinality is nulljava.lang.IllegalArgumentException
- if elementName refers to an unknown global element declarationXSequenceType element(javax.xml.namespace.QName elementNameOrWildcard, javax.xml.namespace.QName typeName, boolean nillable, XSequenceType.OccurrenceIndicator cardinality)
elementNameOrWildcard
- the name of the element to match or null for wildcardtypeName
- the name of a type to match (or null for any type)nillable
- whether the sequence type matches nil elementscardinality
- the cardinality of the sequence typejava.lang.NullPointerException
- if cardinality is nulljava.lang.IllegalArgumentException
- if a typeName is supplied but does not refer to a known typeXSequenceType attribute(javax.xml.namespace.QName attributeNameOrWildcard, javax.xml.namespace.QName typeName, XSequenceType.OccurrenceIndicator cardinality)
attributeNameOrWildcard
- the name of the attribute to match or null for wildcardtypeName
- the name of a simple type to match (or null for any type)cardinality
- the cardinality of the sequence typejava.lang.NullPointerException
- if cardinality is nulljava.lang.IllegalArgumentException
- if a typeName is supplied but does not refer to a known simple typeXSequenceType schemaElement(javax.xml.namespace.QName elementName, XSequenceType.OccurrenceIndicator cardinality)
elementName
- the name of the schema element declaration to matchcardinality
- the cardinality of the sequence typejava.lang.NullPointerException
- if elementName or cardinality is nulljava.lang.IllegalArgumentException
- if elementName refers to an unknown global element declarationXSequenceType schemaAttribute(javax.xml.namespace.QName attributeName, XSequenceType.OccurrenceIndicator cardinality)
attributeName
- the name of the schema element declaration to matchcardinality
- the cardinality of the sequence typejava.lang.NullPointerException
- if attributeName or cardinality is nulljava.lang.IllegalArgumentException
- if attributeName refers to an unknown global attribute declarationXSequenceType processingInstruction(javax.xml.namespace.QName piNCName, XSequenceType.OccurrenceIndicator cardinality)
cardinality
- the cardinality of the sequence typejava.lang.NullPointerException
- if cardinality is nullXSequenceType comment(XSequenceType.OccurrenceIndicator cardinality)
cardinality
- the cardinality of the sequence typejava.lang.NullPointerException
- if cardinality is nullXSequenceType text(XSequenceType.OccurrenceIndicator cardinality)
cardinality
- the cardinality of the sequence typejava.lang.NullPointerException
- if cardinality is nullXSequenceType node(XSequenceType.OccurrenceIndicator cardinality)
cardinality
- the cardinality of the sequence typejava.lang.NullPointerException
- if cardinality is null