|
API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
XItemView item(Object value, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
value
- The value for the item.type
- The type for the item.
NullPointerException
- if the value
or the type
is null
.
XProcessException
- if the value
is not valid for the type
.XTypeConstants
XItemView item(String value, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
value
- The value for the item.type
- The type for the item.
NullPointerException
- if the value
or the type
is null
.
XProcessException
- if the value
is not valid for the type
.XTypeConstants
XItemView item(boolean value, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
value
- The value for the item.type
- The type for the item.
NullPointerException
- if the value
or the type
is null
.
XProcessException
- if the value
is not valid for the type
.XTypeConstants
XItemView item(byte value, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
value
- The value for the item.type
- The type for the item.
NullPointerException
- if the value
or the type
is null
.
XProcessException
- if the value
is not valid for the type
.XTypeConstants
XItemView item(byte[] value, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
value
- The value for the item.type
- The type for the item.
NullPointerException
- if the value
or the type
is null
.
XProcessException
- if the value
is not valid for the type
.XTypeConstants
XItemView item(short value, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
value
- The value for the item.type
- The type for the item.
NullPointerException
- if the value
or the type
is null
.
XProcessException
- if the value
is not valid for the type
.XTypeConstants
XItemView item(int value, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
value
- The value for the item.type
- The type for the item.
NullPointerException
- if the value
or the type
is null
.
XProcessException
- if the value
is not valid for the type
.XTypeConstants
XItemView item(long value, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
value
- The value for the item.type
- The type for the item.
NullPointerException
- if the value
or the type
is null
.
XProcessException
- if the value
is not valid for the type
.XTypeConstants
XItemView item(float value, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
value
- The value for the item.type
- The type for the item.
NullPointerException
- if the value
or the type
is null
.
XProcessException
- if the value
is not valid for the type
.XTypeConstants
XItemView item(double value, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
value
- The value for the item.type
- The type for the item.
NullPointerException
- if the value
or the type
is null
.
XProcessException
- if the value
is not valid for the type
.XTypeConstants
XItemView item(BigDecimal value, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
value
- The value for the item.type
- The type for the item.
NullPointerException
- if the value
or the type
is null
.
XProcessException
- if the value
is not valid for the type
.XTypeConstants
XItemView item(BigInteger value, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
value
- The value for the item.type
- The type for the item.
NullPointerException
- if the value
or the type
is null
.
XProcessException
- if the value
is not valid for the type
.XTypeConstants
XItemView item(QName value, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
value
- The value for the item.type
- The type for the item.
NullPointerException
- if the value
or the type
is null
.
XProcessException
- if the value
is not valid for the type
.XTypeConstants
XItemView item(XMLGregorianCalendar value, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
value
- The value for the item.type
- The type for the item.
NullPointerException
- if the value
or the type
is null
.
XProcessException
- if the value
is not valid for the type
.XTypeConstants
XItemView item(Duration value, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
value
- The value for the item.type
- The type for the item.
NullPointerException
- if the value
or the type
is null
.
XProcessException
- if the value
is not valid for the type
.XTypeConstants
XItemView item(String value)
value
- The value for the item.
NullPointerException
- if the value
is null
.XItemView item(boolean value)
value
- The value for the item.
XItemView item(byte value)
value
- The value for the item.
XItemView item(byte[] value)
value
- The value for the item.
NullPointerException
- if the value
is null
.XItemView item(short value)
value
- The value for the item.
XItemView item(int value)
value
- The value for the item.
XItemView item(long value)
value
- The value for the item.
XItemView item(float value)
value
- The value for the item.
XItemView item(double value)
value
- The value for the item.
XItemView item(BigDecimal value)
value
- The value for the item.
NullPointerException
- if the value
is null
.XItemView item(BigInteger value)
value
- The value for the item.
NullPointerException
- if the value
is null
.XItemView item(QName value)
value
- The value for the item.
NullPointerException
- if the value
is null
.XItemView item(XMLGregorianCalendar value)
value
- The value for the item.
NullPointerException
- if the value
is null
.XItemView item(Duration value)
value
- The value for the item.
NullPointerException
- if the value
is null
.XItemView item(Node value)
value
- The value for the item.
NullPointerException
- if the value
is null
.XItemView item(Source value)
value
- The value for the item.
NullPointerException
- if the value
is null
.XSequenceCursor sequence(XItemView[] items)
items
- The items to include in the sequence.
null
if the items
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if items
is null
.XSequenceCursor sequence(NodeList list)
NodeList
.
list
- The NodeList
.
null
if list
was empty (an empty sequence is represented
by null
).
NullPointerException
- if list
is null
.XSequenceCursor sequence(String[] values)
values
- The values for the sequence.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
is null
.XSequenceCursor sequence(boolean[] values)
values
- The values for the sequence.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
is null
.XSequenceCursor sequence(byte[] values)
values
- The values for the sequence.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
is null
.XSequenceCursor sequence(byte[][] values)
values
- The values for the sequence.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
is null
.XSequenceCursor sequence(short[] values)
values
- The values for the sequence.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
is null
.XSequenceCursor sequence(int[] values)
values
- The values for the sequence.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
is null
.XSequenceCursor sequence(long[] values)
values
- The values for the sequence.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
is null
.XSequenceCursor sequence(float[] values)
values
- The values for the sequence.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
is null
.XSequenceCursor sequence(double[] values)
values
- The values for the sequence.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
is null
.XSequenceCursor sequence(BigDecimal[] values)
values
- The values for the sequence.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
is null
.XSequenceCursor sequence(BigInteger[] values)
values
- The values for the sequence.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
is null
.XSequenceCursor sequence(QName[] values)
values
- The values for the sequence.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
is null
.XSequenceCursor sequence(XMLGregorianCalendar[] values)
values
- The values for the sequence.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
is null
.XSequenceCursor sequence(Duration[] values)
values
- The values for the sequence.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
is null
.XSequenceCursor sequence(Object[] values, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
values
- The item values.type
- The type for each item.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
or the type
is null
.
XProcessException
- if any of the values
are not valid for the type
.XTypeConstants
XSequenceCursor sequence(String[] values, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
values
- The item values.type
- The type for each item.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
or the type
is null
.
XProcessException
- if any of the values
are not valid for the type
.XTypeConstants
XSequenceCursor sequence(boolean[] values, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
values
- The item values.type
- The type for each item.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
or the type
is null
.
XProcessException
- if any of the values
are not valid for the type
.XTypeConstants
XSequenceCursor sequence(byte[] values, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
values
- The item values.type
- The type for each item.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
or the type
is null
.
XProcessException
- if any of the values
are not valid for the type
.XTypeConstants
XSequenceCursor sequence(byte[][] values, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
values
- The item values.type
- The type for each item.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
or the type
is null
.
XProcessException
- if any of the values
are not valid for the type
.XTypeConstants
XSequenceCursor sequence(short[] values, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
values
- The item values.type
- The type for each item.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
or the type
is null
.
XProcessException
- if any of the values
are not valid for the type
.XTypeConstants
XSequenceCursor sequence(int[] values, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
values
- The item values.type
- The type for each item.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
or the type
is null
.
XProcessException
- if any of the values
are not valid for the type
.XTypeConstants
XSequenceCursor sequence(long[] values, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
values
- The item values.type
- The type for each item.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
or the type
is null
.
XProcessException
- if any of the values
are not valid for the type
.XTypeConstants
XSequenceCursor sequence(float[] values, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
values
- The item values.type
- The type for each item.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
or the type
is null
.
XProcessException
- if any of the values
are not valid for the type
.XTypeConstants
XSequenceCursor sequence(double[] values, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
values
- The item values.type
- The type for each item.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
or the type
is null
.
XProcessException
- if any of the values
are not valid for the type
.XTypeConstants
XSequenceCursor sequence(BigDecimal[] values, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
values
- The item values.type
- The type for each item.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
or the type
is null
.
XProcessException
- if any of the values
are not valid for the type
.XTypeConstants
XSequenceCursor sequence(BigInteger[] values, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
values
- The item values.type
- The type for each item.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
or the type
is null
.
XProcessException
- if any of the values
are not valid for the type
.XTypeConstants
XSequenceCursor sequence(QName[] values, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
values
- The item values.type
- The type for each item.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
or the type
is null
.
XProcessException
- if any of the values
are not valid for the type
.XTypeConstants
XSequenceCursor sequence(XMLGregorianCalendar[] values, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
values
- The item values.type
- The type for each item.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
or the type
is null
.
XProcessException
- if any of the values
are not valid for the type
.XTypeConstants
XSequenceCursor sequence(Duration[] values, QName type)
QName
objects for the built-in types
are available from XTypeConstants
.
values
- The item values.type
- The type for each item.
null
if the
values
array was empty (an empty sequence is represented
by null
).
NullPointerException
- if values
or the type
is null
.
XProcessException
- if any of the values
are not valid for the type
.XTypeConstants
|
IBM Copyright 2004-2008 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |