com.ibm.xml.xapi

Interface XItemFactory


  1. public interface XItemFactory

Factory for creating new items and sequences. This factory can be used to create items and sequences from Java objects and primitives. Many of the methods in the API accept Java objects and primitives directly (such as the bind methods in XDynamicContext for binding variable values), however, if a heterogeneous sequence is required this factory can be used to create it by first creating the individual items using the item method and then using the sequence method that takes an array of items.

For the methods that take a type this is the QName of the schema type. For built-in schema types there are predefined QName objects available in XTypeConstants. For the methods that do not take a type, a type is assumed. See the javadoc for the individual methods to see which type is used.

See Also:
XTypeConstants

Method Summary

Modifier and Type Method and Description
  1. XItemView
item(java.math.BigDecimal value)
Create a new atomic item of type decimal.
  1. XItemView
item(java.math.BigDecimal value,javax.xml.namespace.QName type)
Create a new atomic item.
  1. XItemView
item(java.math.BigInteger value)
Create a new atomic item of type integer.
  1. XItemView
item(java.math.BigInteger value,javax.xml.namespace.QName type)
Create a new atomic item.
  1. XItemView
item(boolean value)
Create a new atomic item of type boolean.
  1. XItemView
item(boolean value,javax.xml.namespace.QName type)
Create a new atomic item.
  1. XItemView
item(byte value)
Create a new atomic item of type byte.
  1. XItemView
item(byte[] value)
Create a new atomic item of type hexBinary.
  1. XItemView
item(byte[] value,javax.xml.namespace.QName type)
Create a new atomic item.
  1. XItemView
item(byte value,javax.xml.namespace.QName type)
Create a new atomic item.
  1. XItemView
item(double value)
Create a new atomic item of type double.
  1. XItemView
item(double value,javax.xml.namespace.QName type)
Create a new atomic item.
  1. XItemView
item(javax.xml.datatype.Duration value)
Create a new atomic item of type duration.
  1. XItemView
item(javax.xml.datatype.Duration value,javax.xml.namespace.QName type)
Create a new atomic item.
  1. XItemView
item(float value)
Create a new atomic item of type float.
  1. XItemView
item(float value,javax.xml.namespace.QName type)
Create a new atomic item.
  1. XItemView
item(int value)
Create a new atomic item of type int.
  1. XItemView
item(int value,javax.xml.namespace.QName type)
Create a new atomic item.
  1. XItemView
item(long value)
Create a new atomic item of type long.
  1. XItemView
item(long value,javax.xml.namespace.QName type)
Create a new atomic item.
  1. XItemView
item(org.w3c.dom.Node value)
Create a new item of complex type.
  1. XItemView
item(java.lang.Object value,javax.xml.namespace.QName type)
Create a new atomic item.
  1. XItemView
item(javax.xml.namespace.QName value)
Create a new atomic item of type QName.
  1. XItemView
item(javax.xml.namespace.QName value,javax.xml.namespace.QName type)
Create a new atomic item.
  1. XItemView
item(short value)
Create a new atomic item of type short.
  1. XItemView
item(short value,javax.xml.namespace.QName type)
Create a atomic new item.
  1. XItemView
item(javax.xml.transform.Source value)
Create a new item of complex type.
  1. XItemView
item(java.lang.String value)
Create a new atomic item of type string.
  1. XItemView
item(java.lang.String value,javax.xml.namespace.QName type)
Create a new atomic item.
  1. XItemView
item(javax.xml.datatype.XMLGregorianCalendar value)
Create a new atomic item of type dateTime.
  1. XItemView
item(javax.xml.datatype.XMLGregorianCalendar value,javax.xml.namespace.QName type)
Create a new atomic item.
  1. XSequenceCursor
sequence(java.math.BigDecimal[] values)
Create a new sequence of decimal items.
  1. XSequenceCursor
sequence(java.math.BigDecimal[] values,javax.xml.namespace.QName type)
Create a new sequence.
  1. XSequenceCursor
sequence(java.math.BigInteger[] values)
Create a new sequence of integer items.
  1. XSequenceCursor
sequence(java.math.BigInteger[] values,javax.xml.namespace.QName type)
Create a new sequence.
  1. XSequenceCursor
sequence(boolean[] values)
Create a new sequence of boolean items.
  1. XSequenceCursor
sequence(boolean[] values,javax.xml.namespace.QName type)
Create a new sequence.
  1. XSequenceCursor
sequence(byte[] values)
Create a new sequence of byte items.
  1. XSequenceCursor
sequence(byte[][] values)
Create a new sequence of hexBinary items.
  1. XSequenceCursor
sequence(byte[][] values,javax.xml.namespace.QName type)
Create a new sequence.
  1. XSequenceCursor
sequence(byte[] values,javax.xml.namespace.QName type)
Create a new sequence.
  1. XSequenceCursor
sequence(double[] values)
Create a new sequence of double items.
  1. XSequenceCursor
sequence(double[] values,javax.xml.namespace.QName type)
Create a new sequence.
  1. XSequenceCursor
sequence(javax.xml.datatype.Duration[] values)
Create a new sequence of duration items.
  1. XSequenceCursor
sequence(javax.xml.datatype.Duration[] values,javax.xml.namespace.QName type)
Create a new sequence.
  1. XSequenceCursor
sequence(float[] values)
Create a new sequence of float items.
  1. XSequenceCursor
sequence(float[] values,javax.xml.namespace.QName type)
Create a new sequence.
  1. XSequenceCursor
sequence(int[] values)
Create a new sequence of int items.
  1. XSequenceCursor
sequence(int[] values,javax.xml.namespace.QName type)
Create a new sequence.
  1. XSequenceCursor
sequence(long[] values)
Create a new sequence of long items.
  1. XSequenceCursor
sequence(long[] values,javax.xml.namespace.QName type)
Create a new sequence.
  1. XSequenceCursor
sequence(org.w3c.dom.NodeList list)
Create a new sequence from a NodeList.
  1. XSequenceCursor
sequence(java.lang.Object[] values,javax.xml.namespace.QName type)
Create a new sequence.
  1. XSequenceCursor
sequence(javax.xml.namespace.QName[] values)
Create a new sequence of QName items.
  1. XSequenceCursor
sequence(javax.xml.namespace.QName[] values,javax.xml.namespace.QName type)
Create a new sequence.
  1. XSequenceCursor
sequence(short[] values)
Create a new sequence of short items.
  1. XSequenceCursor
sequence(short[] values,javax.xml.namespace.QName type)
Create a new sequence.
  1. XSequenceCursor
sequence(java.lang.String[] values)
Create a new sequence of string items.
  1. XSequenceCursor
sequence(java.lang.String[] values,javax.xml.namespace.QName type)
Create a new sequence.
  1. XSequenceCursor
sequence(XItemView[] items)
Create a new sequence.
  1. XSequenceCursor
sequence(javax.xml.datatype.XMLGregorianCalendar[] values)
Create a new sequence of dateTime items.
  1. XSequenceCursor
sequence(javax.xml.datatype.XMLGregorianCalendar[] values,javax.xml.namespace.QName type)
Create a new sequence.

Method Detail

item

  1. XItemView item(java.lang.Object value,
  2. javax.xml.namespace.QName type)
Create a new atomic item. The value of the item must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
value - The value for the item.
type - The type for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:

item

  1. XItemView item(java.lang.String value,
  2. javax.xml.namespace.QName type)
Create a new atomic item. The value of the item must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
value - The value for the item.
type - The type for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:

item

  1. XItemView item(boolean value,
  2. javax.xml.namespace.QName type)
Create a new atomic item. The value of the item must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
value - The value for the item.
type - The type for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:

item

  1. XItemView item(byte value,
  2. javax.xml.namespace.QName type)
Create a new atomic item. The value of the item must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
value - The value for the item.
type - The type for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:

item

  1. XItemView item(byte[] value,
  2. javax.xml.namespace.QName type)
Create a new atomic item. The value of the item must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
value - The value for the item.
type - The type for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:

item

  1. XItemView item(short value,
  2. javax.xml.namespace.QName type)
Create a atomic new item. The value of the item must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
value - The value for the item.
type - The type for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:

item

  1. XItemView item(int value,
  2. javax.xml.namespace.QName type)
Create a new atomic item. The value of the item must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
value - The value for the item.
type - The type for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:

item

  1. XItemView item(long value,
  2. javax.xml.namespace.QName type)
Create a new atomic item. The value of the item must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
value - The value for the item.
type - The type for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:

item

  1. XItemView item(float value,
  2. javax.xml.namespace.QName type)
Create a new atomic item. The value of the item must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
value - The value for the item.
type - The type for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:

item

  1. XItemView item(double value,
  2. javax.xml.namespace.QName type)
Create a new atomic item. The value of the item must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
value - The value for the item.
type - The type for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:

item

  1. XItemView item(java.math.BigDecimal value,
  2. javax.xml.namespace.QName type)
Create a new atomic item. The value of the item must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
value - The value for the item.
type - The type for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:

item

  1. XItemView item(java.math.BigInteger value,
  2. javax.xml.namespace.QName type)
Create a new atomic item. The value of the item must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
value - The value for the item.
type - The type for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:

item

  1. XItemView item(javax.xml.namespace.QName value,
  2. javax.xml.namespace.QName type)
Create a new atomic item. The value of the item must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
value - The value for the item.
type - The type for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:

item

  1. XItemView item(javax.xml.datatype.XMLGregorianCalendar value,
  2. javax.xml.namespace.QName type)
Create a new atomic item. The value of the item must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
value - The value for the item.
type - The type for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:

item

  1. XItemView item(javax.xml.datatype.Duration value,
  2. javax.xml.namespace.QName type)
Create a new atomic item. The value of the item must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
value - The value for the item.
type - The type for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:

item

  1. XItemView item(java.lang.String value)
Create a new atomic item of type string.
Parameters:
value - The value for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value is null.

item

  1. XItemView item(boolean value)
Create a new atomic item of type boolean.
Parameters:
value - The value for the item.
Returns:
The new item as an XItemView.

item

  1. XItemView item(byte value)
Create a new atomic item of type byte.
Parameters:
value - The value for the item.
Returns:
The new item as an XItemView.

item

  1. XItemView item(byte[] value)
Create a new atomic item of type hexBinary.
Parameters:
value - The value for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value is null.

item

  1. XItemView item(short value)
Create a new atomic item of type short.
Parameters:
value - The value for the item.
Returns:
The new item as an XItemView.

item

  1. XItemView item(int value)
Create a new atomic item of type int.
Parameters:
value - The value for the item.
Returns:
The new item as an XItemView.

item

  1. XItemView item(long value)
Create a new atomic item of type long.
Parameters:
value - The value for the item.
Returns:
The new item as an XItemView.

item

  1. XItemView item(float value)
Create a new atomic item of type float.
Parameters:
value - The value for the item.
Returns:
The new item as an XItemView.

item

  1. XItemView item(double value)
Create a new atomic item of type double.
Parameters:
value - The value for the item.
Returns:
The new item as an XItemView.

item

  1. XItemView item(java.math.BigDecimal value)
Create a new atomic item of type decimal.
Parameters:
value - The value for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value is null.

item

  1. XItemView item(java.math.BigInteger value)
Create a new atomic item of type integer.
Parameters:
value - The value for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value is null.

item

  1. XItemView item(javax.xml.namespace.QName value)
Create a new atomic item of type QName.
Parameters:
value - The value for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value is null.

item

  1. XItemView item(javax.xml.datatype.XMLGregorianCalendar value)
Create a new atomic item of type dateTime.
Parameters:
value - The value for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value is null.

item

  1. XItemView item(javax.xml.datatype.Duration value)
Create a new atomic item of type duration.
Parameters:
value - The value for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value is null.

item

  1. XItemView item(org.w3c.dom.Node value)
Create a new item of complex type.
Parameters:
value - The value for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value is null.

item

  1. XItemView item(javax.xml.transform.Source value)
Create a new item of complex type.
Parameters:
value - The value for the item.
Returns:
The new item as an XItemView.
Throws:
java.lang.NullPointerException - if the value is null.

sequence

  1. XSequenceCursor sequence(XItemView[] items)
Create a new sequence.
Parameters:
items - The items to include in the sequence.
Returns:
The new sequence as an XSequenceCursor or null if the items array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if items is null.

sequence

  1. XSequenceCursor sequence(org.w3c.dom.NodeList list)
Create a new sequence from a NodeList.
Parameters:
list - The NodeList.
Returns:
The new sequence as an XSequenceCursor or null if list was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if list is null.

sequence

  1. XSequenceCursor sequence(java.lang.String[] values)
Create a new sequence of string items.
Parameters:
values - The values for the sequence.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values is null.

sequence

  1. XSequenceCursor sequence(boolean[] values)
Create a new sequence of boolean items.
Parameters:
values - The values for the sequence.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values is null.

sequence

  1. XSequenceCursor sequence(byte[] values)
Create a new sequence of byte items.
Parameters:
values - The values for the sequence.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values is null.

sequence

  1. XSequenceCursor sequence(byte[][] values)
Create a new sequence of hexBinary items.
Parameters:
values - The values for the sequence.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values is null.

sequence

  1. XSequenceCursor sequence(short[] values)
Create a new sequence of short items.
Parameters:
values - The values for the sequence.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values is null.

sequence

  1. XSequenceCursor sequence(int[] values)
Create a new sequence of int items.
Parameters:
values - The values for the sequence.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values is null.

sequence

  1. XSequenceCursor sequence(long[] values)
Create a new sequence of long items.
Parameters:
values - The values for the sequence.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values is null.

sequence

  1. XSequenceCursor sequence(float[] values)
Create a new sequence of float items.
Parameters:
values - The values for the sequence.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values is null.

sequence

  1. XSequenceCursor sequence(double[] values)
Create a new sequence of double items.
Parameters:
values - The values for the sequence.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values is null.

sequence

  1. XSequenceCursor sequence(java.math.BigDecimal[] values)
Create a new sequence of decimal items.
Parameters:
values - The values for the sequence.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values is null.

sequence

  1. XSequenceCursor sequence(java.math.BigInteger[] values)
Create a new sequence of integer items.
Parameters:
values - The values for the sequence.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values is null.

sequence

  1. XSequenceCursor sequence(javax.xml.namespace.QName[] values)
Create a new sequence of QName items.
Parameters:
values - The values for the sequence.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values is null.

sequence

  1. XSequenceCursor sequence(javax.xml.datatype.XMLGregorianCalendar[] values)
Create a new sequence of dateTime items.
Parameters:
values - The values for the sequence.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values is null.

sequence

  1. XSequenceCursor sequence(javax.xml.datatype.Duration[] values)
Create a new sequence of duration items.
Parameters:
values - The values for the sequence.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values is null.

sequence

  1. XSequenceCursor sequence(java.lang.Object[] values,
  2. javax.xml.namespace.QName type)
Create a new sequence. Each of the values must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
values - The item values.
type - The type for each item.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:

sequence

  1. XSequenceCursor sequence(java.lang.String[] values,
  2. javax.xml.namespace.QName type)
Create a new sequence. Each of the values must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
values - The item values.
type - The type for each item.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:

sequence

  1. XSequenceCursor sequence(boolean[] values,
  2. javax.xml.namespace.QName type)
Create a new sequence. Each of the values must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
values - The item values.
type - The type for each item.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:

sequence

  1. XSequenceCursor sequence(byte[] values,
  2. javax.xml.namespace.QName type)
Create a new sequence. Each of the values must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
values - The item values.
type - The type for each item.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:

sequence

  1. XSequenceCursor sequence(byte[][] values,
  2. javax.xml.namespace.QName type)
Create a new sequence. Each of the values must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
values - The item values.
type - The type for each item.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:

sequence

  1. XSequenceCursor sequence(short[] values,
  2. javax.xml.namespace.QName type)
Create a new sequence. Each of the values must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
values - The item values.
type - The type for each item.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:

sequence

  1. XSequenceCursor sequence(int[] values,
  2. javax.xml.namespace.QName type)
Create a new sequence. Each of the values must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
values - The item values.
type - The type for each item.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:

sequence

  1. XSequenceCursor sequence(long[] values,
  2. javax.xml.namespace.QName type)
Create a new sequence. Each of the values must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
values - The item values.
type - The type for each item.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:

sequence

  1. XSequenceCursor sequence(float[] values,
  2. javax.xml.namespace.QName type)
Create a new sequence. Each of the values must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
values - The item values.
type - The type for each item.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:

sequence

  1. XSequenceCursor sequence(double[] values,
  2. javax.xml.namespace.QName type)
Create a new sequence. Each of the values must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
values - The item values.
type - The type for each item.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:

sequence

  1. XSequenceCursor sequence(java.math.BigDecimal[] values,
  2. javax.xml.namespace.QName type)
Create a new sequence. Each of the values must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
values - The item values.
type - The type for each item.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:

sequence

  1. XSequenceCursor sequence(java.math.BigInteger[] values,
  2. javax.xml.namespace.QName type)
Create a new sequence. Each of the values must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
values - The item values.
type - The type for each item.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:

sequence

  1. XSequenceCursor sequence(javax.xml.namespace.QName[] values,
  2. javax.xml.namespace.QName type)
Create a new sequence. Each of the values must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
values - The item values.
type - The type for each item.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:

sequence

  1. XSequenceCursor sequence(javax.xml.datatype.XMLGregorianCalendar[] values,
  2. javax.xml.namespace.QName type)
Create a new sequence. Each of the values must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
values - The item values.
type - The type for each item.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:

sequence

  1. XSequenceCursor sequence(javax.xml.datatype.Duration[] values,
  2. javax.xml.namespace.QName type)
Create a new sequence. Each of the values must be valid for the given type. Predefined QName objects for the built-in types are available from XTypeConstants.
Parameters:
values - The item values.
type - The type for each item.
Returns:
The new sequence as an XSequenceCursor or null if the values array was empty (an empty sequence is represented by null).
Throws:
java.lang.NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also: