XFactory after
getSequenceTypeFactory is called will be visible to the
XSequenceTypeFactory instance that was returned.
- See Also:
XSequenceType,
XFactory.getSequenceTypeFactory()
|
Method Summary |
XSequenceType |
atomic(QName typeName,
XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches atomic items. |
XSequenceType |
attribute(QName attributeNameOrWildcard,
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(QName elementNameOrWildcard,
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(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(QName elementNameOrWildcard,
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(QName piNCName,
XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches processing instructions. |
XSequenceType |
schemaAttribute(QName attributeName,
XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches schema attributes. |
XSequenceType |
schemaElement(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. |
emptySequence
XSequenceType emptySequence()
- Creates a sequence type that matches the empty sequence.
- Returns:
- an XSequenceType
item
XSequenceType item(XSequenceType.OccurrenceIndicator cardinality)
- Creates a sequence type that matches items.
- Parameters:
cardinality - the cardinality of the sequence type
- Returns:
- an XSequenceType
- Throws:
NullPointerException - if cardinality is null
atomic
XSequenceType atomic(QName typeName,
XSequenceType.OccurrenceIndicator cardinality)
- Creates a sequence type that matches atomic items.
- Parameters:
typeName - the name of the simple type to matchcardinality - the cardinality of the sequence type
- Returns:
- an XSequenceType
- Throws:
NullPointerException - if typeName or cardinality is null
IllegalArgumentException - if typeName does not refer to a known simple type
documentNode
XSequenceType documentNode(XSequenceType.OccurrenceIndicator cardinality)
- Creates a sequence type that matches document nodes.
- Parameters:
cardinality - the cardinality of the sequence type
- Returns:
- an XSequenceType
- Throws:
NullPointerException - if cardinality is null
documentNodeWithElement
XSequenceType documentNodeWithElement(QName elementNameOrWildcard,
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.
- Parameters:
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 type
- Returns:
- an XSequenceType
- Throws:
NullPointerException - if cardinality is null
IllegalArgumentException - if a typeName is supplied but does not refer to a known type
documentNodeWithSchemaElement
XSequenceType documentNodeWithSchemaElement(QName elementName,
XSequenceType.OccurrenceIndicator cardinality)
- Creates a sequence type that matches document nodes having exactly one element node matching a given schema-element test.
- Parameters:
elementName - the name of the schema element declaration to matchcardinality - the cardinality of the sequence type
- Returns:
- an XSequenceType
- Throws:
NullPointerException - if elementName or cardinality is null
IllegalArgumentException - if elementName refers to an unknown global element declaration
element
XSequenceType element(QName elementNameOrWildcard,
QName typeName,
boolean nillable,
XSequenceType.OccurrenceIndicator cardinality)
- Creates a sequence type that matches elements
- Parameters:
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 type
- Returns:
- an XSequenceType
- Throws:
NullPointerException - if cardinality is null
IllegalArgumentException - if a typeName is supplied but does not refer to a known type
attribute
XSequenceType attribute(QName attributeNameOrWildcard,
QName typeName,
XSequenceType.OccurrenceIndicator cardinality)
- Creates a sequence type that matches attributes.
- Parameters:
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 type
- Returns:
- an XSequenceType
- Throws:
NullPointerException - if cardinality is null
IllegalArgumentException - if a typeName is supplied but does not refer to a known simple type
schemaElement
XSequenceType schemaElement(QName elementName,
XSequenceType.OccurrenceIndicator cardinality)
- Creates a sequence type that matches schema elements.
- Parameters:
elementName - the name of the schema element declaration to matchcardinality - the cardinality of the sequence type
- Returns:
- an XSequenceType
- Throws:
NullPointerException - if elementName or cardinality is null
IllegalArgumentException - if elementName refers to an unknown global element declaration
schemaAttribute
XSequenceType schemaAttribute(QName attributeName,
XSequenceType.OccurrenceIndicator cardinality)
- Creates a sequence type that matches schema attributes.
- Parameters:
attributeName - the name of the schema element declaration to matchcardinality - the cardinality of the sequence type
- Returns:
- an XSequenceType
- Throws:
NullPointerException - if attributeName or cardinality is null
IllegalArgumentException - if attributeName refers to an unknown global attribute declaration
processingInstruction
XSequenceType processingInstruction(QName piNCName,
XSequenceType.OccurrenceIndicator cardinality)
- Creates a sequence type that matches processing instructions.
- Parameters:
cardinality - the cardinality of the sequence type
- Returns:
- an XSequenceType
- Throws:
NullPointerException - if cardinality is null
comment
XSequenceType comment(XSequenceType.OccurrenceIndicator cardinality)
- Creates a sequence type that matches comments.
- Parameters:
cardinality - the cardinality of the sequence type
- Returns:
- an XSequenceType
- Throws:
NullPointerException - if cardinality is null
text
XSequenceType text(XSequenceType.OccurrenceIndicator cardinality)
- Creates a sequence type that matches text nodes.
- Parameters:
cardinality - the cardinality of the sequence type
- Returns:
- an XSequenceType
- Throws:
NullPointerException - if cardinality is null
node
XSequenceType node(XSequenceType.OccurrenceIndicator cardinality)
- Creates a sequence type that matches nodes..
- Parameters:
cardinality - the cardinality of the sequence type
- Returns:
- an XSequenceType
- Throws:
NullPointerException - if cardinality is null