com.ibm.xml.xapi

Interface XSequenceTypeFactory


  1. public interface XSequenceTypeFactory
Factory for creating sequence types. The sequence type factory associated with an 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.
See Also:

Method Summary

Modifier and Type Method and Description
  1. XSequenceType
atomic(javax.xml.namespace.QName typeName,XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches atomic items.
  1. XSequenceType
attribute(javax.xml.namespace.QName attributeNameOrWildcard,javax.xml.namespace.QName typeName,XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches attributes.
  1. XSequenceType
comment(XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches comments.
  1. XSequenceType
documentNode(XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches document nodes.
  1. 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.
  1. 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.
  1. XSequenceType
element(javax.xml.namespace.QName elementNameOrWildcard,javax.xml.namespace.QName typeName,boolean nillable,XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches elements
  1. XSequenceType
emptySequence()
Creates a sequence type that matches the empty sequence.
  1. XSequenceType
item(XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches items.
  1. XSequenceType
node(XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches nodes..
  1. XSequenceType
processingInstruction(javax.xml.namespace.QName piNCName,XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches processing instructions.
  1. XSequenceType
schemaAttribute(javax.xml.namespace.QName attributeName,XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches schema attributes.
  1. XSequenceType
schemaElement(javax.xml.namespace.QName elementName,XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches schema elements.
  1. XSequenceType
text(XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches text nodes.

Method Detail

emptySequence

  1. XSequenceType emptySequence()
Creates a sequence type that matches the empty sequence.
Returns:
an XSequenceType

item

  1. XSequenceType item(XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches items.
Parameters:
cardinality - the cardinality of the sequence type
Returns:
an XSequenceType
Throws:
java.lang.NullPointerException - if cardinality is null

atomic

  1. XSequenceType atomic(javax.xml.namespace.QName typeName,
  2. XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches atomic items.
Parameters:
typeName - the name of the simple type to match
cardinality - the cardinality of the sequence type
Returns:
an XSequenceType
Throws:
java.lang.NullPointerException - if typeName or cardinality is null
java.lang.IllegalArgumentException - if typeName does not refer to a known simple type

documentNode

  1. 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:
java.lang.NullPointerException - if cardinality is null

documentNodeWithElement

  1. XSequenceType documentNodeWithElement( javax.xml.namespace.QName elementNameOrWildcard,
  2. javax.xml.namespace.QName typeName,
  3. boolean nillable,
  4. 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 wildcard
typeName - the name of a type to match (or null for any type)
nillable - whether the sequence type matches nil elements
cardinality - the cardinality of the sequence type
Returns:
an XSequenceType
Throws:
java.lang.NullPointerException - if cardinality is null
java.lang.IllegalArgumentException - if a typeName is supplied but does not refer to a known type

documentNodeWithSchemaElement

  1. XSequenceType documentNodeWithSchemaElement( javax.xml.namespace.QName elementName,
  2. 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 match
cardinality - the cardinality of the sequence type
Returns:
an XSequenceType
Throws:
java.lang.NullPointerException - if elementName or cardinality is null
java.lang.IllegalArgumentException - if elementName refers to an unknown global element declaration

element

  1. XSequenceType element(javax.xml.namespace.QName elementNameOrWildcard,
  2. javax.xml.namespace.QName typeName,
  3. boolean nillable,
  4. XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches elements
Parameters:
elementNameOrWildcard - the name of the element to match or null for wildcard
typeName - the name of a type to match (or null for any type)
nillable - whether the sequence type matches nil elements
cardinality - the cardinality of the sequence type
Returns:
an XSequenceType
Throws:
java.lang.NullPointerException - if cardinality is null
java.lang.IllegalArgumentException - if a typeName is supplied but does not refer to a known type

attribute

  1. XSequenceType attribute(javax.xml.namespace.QName attributeNameOrWildcard,
  2. javax.xml.namespace.QName typeName,
  3. XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches attributes.
Parameters:
attributeNameOrWildcard - the name of the attribute to match or null for wildcard
typeName - the name of a simple type to match (or null for any type)
cardinality - the cardinality of the sequence type
Returns:
an XSequenceType
Throws:
java.lang.NullPointerException - if cardinality is null
java.lang.IllegalArgumentException - if a typeName is supplied but does not refer to a known simple type

schemaElement

  1. XSequenceType schemaElement(javax.xml.namespace.QName elementName,
  2. XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches schema elements.
Parameters:
elementName - the name of the schema element declaration to match
cardinality - the cardinality of the sequence type
Returns:
an XSequenceType
Throws:
java.lang.NullPointerException - if elementName or cardinality is null
java.lang.IllegalArgumentException - if elementName refers to an unknown global element declaration

schemaAttribute

  1. XSequenceType schemaAttribute(javax.xml.namespace.QName attributeName,
  2. XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches schema attributes.
Parameters:
attributeName - the name of the schema element declaration to match
cardinality - the cardinality of the sequence type
Returns:
an XSequenceType
Throws:
java.lang.NullPointerException - if attributeName or cardinality is null
java.lang.IllegalArgumentException - if attributeName refers to an unknown global attribute declaration

processingInstruction

  1. XSequenceType processingInstruction( javax.xml.namespace.QName piNCName,
  2. XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches processing instructions.
Parameters:
cardinality - the cardinality of the sequence type
Returns:
an XSequenceType
Throws:
java.lang.NullPointerException - if cardinality is null

comment

  1. XSequenceType comment(XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches comments.
Parameters:
cardinality - the cardinality of the sequence type
Returns:
an XSequenceType
Throws:
java.lang.NullPointerException - if cardinality is null

text

  1. 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:
java.lang.NullPointerException - if cardinality is null

node

  1. XSequenceType node(XSequenceType.OccurrenceIndicator cardinality)
Creates a sequence type that matches nodes..
Parameters:
cardinality - the cardinality of the sequence type
Returns:
an XSequenceType
Throws:
java.lang.NullPointerException - if cardinality is null