MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.xdmio
Class XDMAtomicItemFactory

java.lang.Object
  extended by ch.ethz.mxquery.xdmio.XDMAtomicItemFactory

public class XDMAtomicItemFactory
extends java.lang.Object

Factory to create items of all atomic types in XDM


Constructor Summary
XDMAtomicItemFactory()
           
 
Method Summary
static XDMIterator createAnyURI(java.lang.String uri)
          Creates an AnyURI Item
static XDMIterator createBase64Binary(byte[] binValue)
          Creates a Base 64 Binary Item
static XDMIterator createBase64Binary(java.lang.String base64Val)
          Creates a Base 64 Binary Item
static XDMIterator createBoolean(boolean val)
          Creates a Boolean Item
static XDMIterator createByte(byte bVal)
          Creates a Byte Item
static XDMIterator createDate(java.lang.String dVal)
          Creates a Date Item
static XDMIterator createDateTime(java.lang.String dTimeVal)
          Creates a DateTime Item
static XDMIterator createDecimal(MXQueryBigDecimal dVal)
          Creates a Decimal Item
static XDMIterator createDouble(MXQueryDouble dVal)
          Creates a Double Item
static XDMIterator createDuration(java.lang.String durVal)
          Creates a Duration Item
static XDMIterator createFloat(MXQueryFloat fVal)
          Creates a Float Item
static XDMIterator createGDay(int gDayVal)
          Creates a Gregorian Day Item
static XDMIterator createGMonth(int gMonthVal)
          Creates a Gregorian Month Item
static XDMIterator createGMonthDay(int gMonthVal, int gDayVal)
          Creates a Gregorian MonthDay Item
static XDMIterator createGYear(int gYearVal)
          Creates a Gregorian Year Item
static XDMIterator createGYearMonth(int gYearVal, int gMonthVal)
          Creates a Gregorian YearMonth Item
static XDMIterator createHexBinary(byte[] binValue)
          Creates a Hex Binary Item from a binary representation
static XDMIterator createHexBinary(java.lang.String hexVal)
          Creates a Hex Binary Item from a string representation
static XDMIterator createInt(int intVal)
          Creates an Int Item
static XDMIterator createInteger(long intVal)
          Creates an Integer Item
static XDMIterator createLong(long longVal)
          Creates a Long Item
static XDMIterator createNCName(java.lang.String ncname)
          Creates a NCName Item
static XDMIterator createNegativeInteger(long longVal)
          Creates a Negative Integer Item
static XDMIterator createNonNegativeInteger(long longVal)
          Creates a Non-Negative Integer Item
static XDMIterator createNonPositiveInteger(long longVal)
          Creates a Non-Positive Integer Item
static XDMIterator createPositiveInteger(long longVal)
          Creates a Positive Integer Item
static XDMIterator createQName(java.lang.String prefix, java.lang.String localName)
          Creates a QName Item
static XDMIterator createQName(java.lang.String namespace, java.lang.String prefix, java.lang.String localName)
          Creates a qualified QName Item
static XDMIterator createShort(short shortVal)
          Creates a Short Item
static XDMIterator createString(java.lang.String str)
          Creates a String Item
static XDMIterator createTime(java.lang.String timeVal)
          Creates a Time Item
static XDMIterator createUnsignedByte(short ubVal)
          Creates an Unsigned Byte Item
static XDMIterator createUnsignedInt(long usVal)
          Creates an Unsigned Int Item
static XDMIterator createUnsignedLong(long ulVal)
          Creates an Unsigned Long Item.
static XDMIterator createUnsignedShort(int uiVal)
          Creates an Unsigned Short Item
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XDMAtomicItemFactory

public XDMAtomicItemFactory()
Method Detail

createAnyURI

public static XDMIterator createAnyURI(java.lang.String uri)
                                throws MXQueryException
Creates an AnyURI Item

Parameters:
uri - the String to be represented as anyURI item
Returns:
an XDM Iterator representing the constructed AnyURI Item
Throws:
MXQueryException

createBase64Binary

public static XDMIterator createBase64Binary(java.lang.String base64Val)
                                      throws MXQueryException
Creates a Base 64 Binary Item

Parameters:
base64Val - String representation of a Base 64 value
Returns:
an XDM Iterator representing the constructed Base 64 Binary Item
Throws:
MXQueryException

createBase64Binary

public static XDMIterator createBase64Binary(byte[] binValue)
                                      throws MXQueryException
Creates a Base 64 Binary Item

Parameters:
binValue - binary values to be represented as Base 64
Returns:
an XDM Iterator representing the constructed Base 64 Binary Item
Throws:
MXQueryException

createBoolean

public static XDMIterator createBoolean(boolean val)
                                 throws MXQueryException
Creates a Boolean Item

Parameters:
val - the boolean value for the item
Returns:
an XDM Iterator representing the constructed Boolean Item
Throws:
MXQueryException

createByte

public static XDMIterator createByte(byte bVal)
                              throws MXQueryException
Creates a Byte Item

Parameters:
bVal - the byte value for the item
Returns:
an XDM Iterator representing the constructed Byte Item
Throws:
MXQueryException

createDate

public static XDMIterator createDate(java.lang.String dVal)
                              throws MXQueryException
Creates a Date Item

Parameters:
dVal - a String expressing the date for this item (XML Schema/XQuery format)
Returns:
an XDM Iterator representing the constructed Date Item
Throws:
MXQueryException

createDateTime

public static XDMIterator createDateTime(java.lang.String dTimeVal)
                                  throws MXQueryException
Creates a DateTime Item

Parameters:
dTimeVal - a String expressing the dateTime for this item (XML Schema/XQuery format)
Returns:
an XDM Iterator representing the constructed DateTim Item
Throws:
MXQueryException

createDuration

public static XDMIterator createDuration(java.lang.String durVal)
                                  throws MXQueryException
Creates a Duration Item

Parameters:
durVal - a String expressing the duration for this item (XML Schema/XQuery format)
Returns:
an XDM Iterator representing the constructed Duration Item
Throws:
MXQueryException

createDecimal

public static XDMIterator createDecimal(MXQueryBigDecimal dVal)
                                 throws MXQueryException
Creates a Decimal Item

Parameters:
dVal - a MXQueryBigDecimal expressing the decimal value for this item
Returns:
an XDM Iterator representing the constructed Decimal Item
Throws:
MXQueryException

createDouble

public static XDMIterator createDouble(MXQueryDouble dVal)
                                throws MXQueryException
Creates a Double Item

Parameters:
dVal - a MXQueryDouble expressing the double value for this item
Returns:
an XDM Iterator representing the constructed Double Item
Throws:
MXQueryException

createFloat

public static XDMIterator createFloat(MXQueryFloat fVal)
                               throws MXQueryException
Creates a Float Item

Parameters:
fVal - a MXQueryFloat expressing the float value for this item
Returns:
an XDM Iterator representing the constructed Float Item
Throws:
MXQueryException

createGDay

public static XDMIterator createGDay(int gDayVal)
                              throws MXQueryException
Creates a Gregorian Day Item

Parameters:
gDayVal - the day number (1-31) expressing the Gregorian Day for this item
Returns:
an XDM Iterator representing the constructed Gregorian Day Item
Throws:
MXQueryException

createGMonth

public static XDMIterator createGMonth(int gMonthVal)
                                throws MXQueryException
Creates a Gregorian Month Item

Parameters:
gMonthVal - the month number (1-12) expressing the Gregorian Month for this item
Returns:
an XDM Iterator representing the constructed Gregorian Month Item
Throws:
MXQueryException

createGMonthDay

public static XDMIterator createGMonthDay(int gMonthVal,
                                          int gDayVal)
                                   throws MXQueryException
Creates a Gregorian MonthDay Item

Parameters:
gMonthVal - gMonthVal the month number (1-12) expressing the Gregorian Month for this item
gDayVal - the day number (1-31) expressing the Gregorian Day for this item
Returns:
an XDM Iterator representing the constructed Gregorian MonthDay Item
Throws:
MXQueryException

createGYear

public static XDMIterator createGYear(int gYearVal)
                               throws MXQueryException
Creates a Gregorian Year Item

Parameters:
gYearVal - the year number expressing the Gregorian Year for this item
Returns:
an XDM Iterator representing the constructed Gregorian Year Item
Throws:
MXQueryException

createGYearMonth

public static XDMIterator createGYearMonth(int gYearVal,
                                           int gMonthVal)
                                    throws MXQueryException
Creates a Gregorian YearMonth Item

Parameters:
gYearVal - gYearVal the year number expressing the Gregorian Year for this item
gMonthVal - gMonthVal the month number (1-12) expressing the Gregorian Month for this item
Returns:
an XDM Iterator representing the constructed Gregorian YearMonth Item
Throws:
MXQueryException

createHexBinary

public static XDMIterator createHexBinary(java.lang.String hexVal)
                                   throws MXQueryException
Creates a Hex Binary Item from a string representation

Parameters:
hexVal - a string expressing the hex binary value for this item
Returns:
an XDM Iterator representing the constructed HexBinary Item
Throws:
MXQueryException

createHexBinary

public static XDMIterator createHexBinary(byte[] binValue)
                                   throws MXQueryException
Creates a Hex Binary Item from a binary representation

Parameters:
binValue - a byte array expressing the hex binary value for this item
Returns:
an XDM Iterator representing the constructed HexBinary Item
Throws:
MXQueryException

createInt

public static XDMIterator createInt(int intVal)
                             throws MXQueryException
Creates an Int Item

Parameters:
intVal - an integer expressing the int value for this item
Returns:
an XDM Iterator representing the constructed Int Item
Throws:
MXQueryException

createInteger

public static XDMIterator createInteger(long intVal)
                                 throws MXQueryException
Creates an Integer Item

Parameters:
intVal - an integer expressing the integer value for this item
Returns:
an XDM Iterator representing the constructed Integer Item
Throws:
MXQueryException

createLong

public static XDMIterator createLong(long longVal)
                              throws MXQueryException
Creates a Long Item

Parameters:
longVal - a long expressing the long value for this item
Returns:
an XDM Iterator representing the constructed Long Item
Throws:
MXQueryException

createNCName

public static XDMIterator createNCName(java.lang.String ncname)
                                throws MXQueryException
Creates a NCName Item

Parameters:
ncname - a String expressing the NCNAME value for this item
Returns:
an XDM Iterator representing the constructed NCNAME Item
Throws:
MXQueryException

createNegativeInteger

public static XDMIterator createNegativeInteger(long longVal)
                                         throws MXQueryException
Creates a Negative Integer Item

Parameters:
longVal - a long expressing the negative integer value for this item
Returns:
an XDM Iterator representing the constructed Negative Integer Item
Throws:
MXQueryException

createNonNegativeInteger

public static XDMIterator createNonNegativeInteger(long longVal)
                                            throws MXQueryException
Creates a Non-Negative Integer Item

Parameters:
longVal - a long expressing the non-negative integer value for this item
Returns:
an XDM Iterator representing the constructed Non-Negative Integer Item
Throws:
MXQueryException

createNonPositiveInteger

public static XDMIterator createNonPositiveInteger(long longVal)
                                            throws MXQueryException
Creates a Non-Positive Integer Item

Parameters:
longVal - a long expressing the non-positive integer value for this item
Returns:
an XDM Iterator representing the constructed Non-Positive Integer Item
Throws:
MXQueryException

createPositiveInteger

public static XDMIterator createPositiveInteger(long longVal)
                                         throws MXQueryException
Creates a Positive Integer Item

Parameters:
longVal - a long expressing the positive integer value for this item
Returns:
an XDM Iterator representing the constructed Positive Integer Item
Throws:
MXQueryException

createQName

public static XDMIterator createQName(java.lang.String prefix,
                                      java.lang.String localName)
                               throws MXQueryException
Creates a QName Item

Parameters:
prefix - a string representing the namespace prefix
localName - a string representing the local name
Returns:
an XDM Iterator representing the constructed QName Item
Throws:
MXQueryException

createQName

public static XDMIterator createQName(java.lang.String namespace,
                                      java.lang.String prefix,
                                      java.lang.String localName)
                               throws MXQueryException
Creates a qualified QName Item

Parameters:
namespace - a string representing the namespace URI
prefix - a string representing the namespace prefix
localName - a string representing the local name
Returns:
an XDM Iterator representing the constructed QName Item
Throws:
MXQueryException

createShort

public static XDMIterator createShort(short shortVal)
                               throws MXQueryException
Creates a Short Item

Parameters:
shortVal - a short expressing the short value for this item
Returns:
an XDM Iterator representing the constructed Short Item
Throws:
MXQueryException

createString

public static XDMIterator createString(java.lang.String str)
                                throws MXQueryException
Creates a String Item

Parameters:
str - a String expressing the string value for this item
Returns:
an XDM Iterator representing the constructed String Item
Throws:
MXQueryException

createTime

public static XDMIterator createTime(java.lang.String timeVal)
                              throws MXQueryException
Creates a Time Item

Parameters:
timeVal - a string expressing the time value for this item (XML Schema/XQuery format)
Returns:
an XDM Iterator representing the constructed Time Item
Throws:
MXQueryException

createUnsignedByte

public static XDMIterator createUnsignedByte(short ubVal)
                                      throws MXQueryException
Creates an Unsigned Byte Item

Parameters:
ubVal - a short expressing the unsigned byte value for this item
Returns:
an XDM Iterator representing the constructed Unsigned Byte Item
Throws:
MXQueryException

createUnsignedInt

public static XDMIterator createUnsignedInt(long usVal)
                                     throws MXQueryException
Creates an Unsigned Int Item

Parameters:
usVal - a long expressing the unsigned int value for this item
Returns:
an XDM Iterator representing the constructed Unsigned Int Item
Throws:
MXQueryException

createUnsignedLong

public static XDMIterator createUnsignedLong(long ulVal)
                                      throws MXQueryException
Creates an Unsigned Long Item. Note: Unsigned Long is limited to the signed long space in MXQuery

Parameters:
ulVal - a long expressing the unsigned long value for this item
Returns:
an XDM Iterator representing the constructed Unsigned Long Item
Throws:
MXQueryException

createUnsignedShort

public static XDMIterator createUnsignedShort(int uiVal)
                                       throws MXQueryException
Creates an Unsigned Short Item

Parameters:
uiVal - an integer expressing the unsigned short value for this item
Returns:
an XDM Iterator representing the constructed Unsigned Short Item
Throws:
MXQueryException

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich