API

com.ibm.xml.xapi
Interface XItemFactory


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
 XItemView item(BigDecimal value)
          Create a new atomic item of type decimal.
 XItemView item(BigDecimal value, QName type)
          Create a new atomic item.
 XItemView item(BigInteger value)
          Create a new atomic item of type integer.
 XItemView item(BigInteger value, QName type)
          Create a new atomic item.
 XItemView item(boolean value)
          Create a new atomic item of type boolean.
 XItemView item(boolean value, QName type)
          Create a new atomic item.
 XItemView item(byte value)
          Create a new atomic item of type byte.
 XItemView item(byte[] value)
          Create a new atomic item of type hexBinary.
 XItemView item(byte[] value, QName type)
          Create a new atomic item.
 XItemView item(byte value, QName type)
          Create a new atomic item.
 XItemView item(double value)
          Create a new atomic item of type double.
 XItemView item(double value, QName type)
          Create a new atomic item.
 XItemView item(Duration value)
          Create a new atomic item of type duration.
 XItemView item(Duration value, QName type)
          Create a new atomic item.
 XItemView item(float value)
          Create a new atomic item of type float.
 XItemView item(float value, QName type)
          Create a new atomic item.
 XItemView item(int value)
          Create a new atomic item of type int.
 XItemView item(int value, QName type)
          Create a new atomic item.
 XItemView item(long value)
          Create a new atomic item of type long.
 XItemView item(long value, QName type)
          Create a new atomic item.
 XItemView item(Node value)
          Create a new item of complex type.
 XItemView item(Object value, QName type)
          Create a new atomic item.
 XItemView item(QName value)
          Create a new atomic item of type QName.
 XItemView item(QName value, QName type)
          Create a new atomic item.
 XItemView item(short value)
          Create a new atomic item of type short.
 XItemView item(short value, QName type)
          Create a atomic new item.
 XItemView item(Source value)
          Create a new item of complex type.
 XItemView item(String value)
          Create a new atomic item of type string.
 XItemView item(String value, QName type)
          Create a new atomic item.
 XItemView item(XMLGregorianCalendar value)
          Create a new atomic item of type dateTime.
 XItemView item(XMLGregorianCalendar value, QName type)
          Create a new atomic item.
 XSequenceCursor sequence(BigDecimal[] values)
          Create a new sequence of decimal items.
 XSequenceCursor sequence(BigDecimal[] values, QName type)
          Create a new sequence.
 XSequenceCursor sequence(BigInteger[] values)
          Create a new sequence of integer items.
 XSequenceCursor sequence(BigInteger[] values, QName type)
          Create a new sequence.
 XSequenceCursor sequence(boolean[] values)
          Create a new sequence of boolean items.
 XSequenceCursor sequence(boolean[] values, QName type)
          Create a new sequence.
 XSequenceCursor sequence(byte[] values)
          Create a new sequence of byte items.
 XSequenceCursor sequence(byte[][] values)
          Create a new sequence of hexBinary items.
 XSequenceCursor sequence(byte[][] values, QName type)
          Create a new sequence.
 XSequenceCursor sequence(byte[] values, QName type)
          Create a new sequence.
 XSequenceCursor sequence(double[] values)
          Create a new sequence of double items.
 XSequenceCursor sequence(double[] values, QName type)
          Create a new sequence.
 XSequenceCursor sequence(Duration[] values)
          Create a new sequence of duration items.
 XSequenceCursor sequence(Duration[] values, QName type)
          Create a new sequence.
 XSequenceCursor sequence(float[] values)
          Create a new sequence of float items.
 XSequenceCursor sequence(float[] values, QName type)
          Create a new sequence.
 XSequenceCursor sequence(int[] values)
          Create a new sequence of int items.
 XSequenceCursor sequence(int[] values, QName type)
          Create a new sequence.
 XSequenceCursor sequence(long[] values)
          Create a new sequence of long items.
 XSequenceCursor sequence(long[] values, QName type)
          Create a new sequence.
 XSequenceCursor sequence(NodeList list)
          Create a new sequence from a NodeList.
 XSequenceCursor sequence(Object[] values, QName type)
          Create a new sequence.
 XSequenceCursor sequence(QName[] values)
          Create a new sequence of QName items.
 XSequenceCursor sequence(QName[] values, QName type)
          Create a new sequence.
 XSequenceCursor sequence(short[] values)
          Create a new sequence of short items.
 XSequenceCursor sequence(short[] values, QName type)
          Create a new sequence.
 XSequenceCursor sequence(String[] values)
          Create a new sequence of string items.
 XSequenceCursor sequence(String[] values, QName type)
          Create a new sequence.
 XSequenceCursor sequence(XItemView[] items)
          Create a new sequence.
 XSequenceCursor sequence(XMLGregorianCalendar[] values)
          Create a new sequence of dateTime items.
 XSequenceCursor sequence(XMLGregorianCalendar[] values, QName type)
          Create a new sequence.
 

Method Detail

item

XItemView item(Object value,
               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:
NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:
XTypeConstants

item

XItemView item(String value,
               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:
NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:
XTypeConstants

item

XItemView item(boolean value,
               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:
NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:
XTypeConstants

item

XItemView item(byte value,
               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:
NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:
XTypeConstants

item

XItemView item(byte[] value,
               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:
NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:
XTypeConstants

item

XItemView item(short value,
               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:
NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:
XTypeConstants

item

XItemView item(int value,
               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:
NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:
XTypeConstants

item

XItemView item(long value,
               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:
NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:
XTypeConstants

item

XItemView item(float value,
               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:
NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:
XTypeConstants

item

XItemView item(double value,
               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:
NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:
XTypeConstants

item

XItemView item(BigDecimal value,
               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:
NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:
XTypeConstants

item

XItemView item(BigInteger value,
               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:
NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:
XTypeConstants

item

XItemView item(QName value,
               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:
NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:
XTypeConstants

item

XItemView item(XMLGregorianCalendar value,
               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:
NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:
XTypeConstants

item

XItemView item(Duration value,
               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:
NullPointerException - if the value or the type is null.
XProcessException - if the value is not valid for the type.
See Also:
XTypeConstants

item

XItemView item(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:
NullPointerException - if the value is null.

item

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

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

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:
NullPointerException - if the value is null.

item

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

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

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

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

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

XItemView item(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:
NullPointerException - if the value is null.

item

XItemView item(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:
NullPointerException - if the value is null.

item

XItemView item(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:
NullPointerException - if the value is null.

item

XItemView item(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:
NullPointerException - if the value is null.

item

XItemView item(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:
NullPointerException - if the value is null.

item

XItemView item(Node value)
Create a new item of complex type.

Parameters:
value - The value for the item.
Returns:
The new item as an XItemView.
Throws:
NullPointerException - if the value is null.

item

XItemView item(Source value)
Create a new item of complex type.

Parameters:
value - The value for the item.
Returns:
The new item as an XItemView.
Throws:
NullPointerException - if the value is null.

sequence

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:
NullPointerException - if items is null.

sequence

XSequenceCursor sequence(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:
NullPointerException - if list is null.

sequence

XSequenceCursor sequence(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:
NullPointerException - if values is null.

sequence

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:
NullPointerException - if values is null.

sequence

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:
NullPointerException - if values is null.

sequence

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:
NullPointerException - if values is null.

sequence

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:
NullPointerException - if values is null.

sequence

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:
NullPointerException - if values is null.

sequence

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:
NullPointerException - if values is null.

sequence

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:
NullPointerException - if values is null.

sequence

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:
NullPointerException - if values is null.

sequence

XSequenceCursor sequence(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:
NullPointerException - if values is null.

sequence

XSequenceCursor sequence(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:
NullPointerException - if values is null.

sequence

XSequenceCursor sequence(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:
NullPointerException - if values is null.

sequence

XSequenceCursor sequence(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:
NullPointerException - if values is null.

sequence

XSequenceCursor sequence(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:
NullPointerException - if values is null.

sequence

XSequenceCursor sequence(Object[] values,
                         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:
NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:
XTypeConstants

sequence

XSequenceCursor sequence(String[] values,
                         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:
NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:
XTypeConstants

sequence

XSequenceCursor sequence(boolean[] values,
                         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:
NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:
XTypeConstants

sequence

XSequenceCursor sequence(byte[] values,
                         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:
NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:
XTypeConstants

sequence

XSequenceCursor sequence(byte[][] values,
                         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:
NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:
XTypeConstants

sequence

XSequenceCursor sequence(short[] values,
                         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:
NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:
XTypeConstants

sequence

XSequenceCursor sequence(int[] values,
                         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:
NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:
XTypeConstants

sequence

XSequenceCursor sequence(long[] values,
                         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:
NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:
XTypeConstants

sequence

XSequenceCursor sequence(float[] values,
                         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:
NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:
XTypeConstants

sequence

XSequenceCursor sequence(double[] values,
                         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:
NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:
XTypeConstants

sequence

XSequenceCursor sequence(BigDecimal[] values,
                         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:
NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:
XTypeConstants

sequence

XSequenceCursor sequence(BigInteger[] values,
                         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:
NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:
XTypeConstants

sequence

XSequenceCursor sequence(QName[] values,
                         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:
NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:
XTypeConstants

sequence

XSequenceCursor sequence(XMLGregorianCalendar[] values,
                         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:
NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:
XTypeConstants

sequence

XSequenceCursor sequence(Duration[] values,
                         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:
NullPointerException - if values or the type is null.
XProcessException - if any of the values are not valid for the type.
See Also:
XTypeConstants

IBM Copyright 2004-2008