1 
2 %{  // start Implementation
3 
4 
5 
createAnyURI(const std::string & aURI)6   Item 	ItemFactory::createAnyURI (const std::string &aURI){
7     return Item(theItemFactory->createAnyURI(aURI));
8   }
9 
createAttributeNode(Item & aParent,Item & aNodeName,Item & aTypeName,Item & aTypedValue)10   Item 	ItemFactory::createAttributeNode (Item& aParent, Item& aNodeName, Item& aTypeName, Item& aTypedValue){
11     return Item( theItemFactory->createAttributeNode( aParent.theItem, aNodeName.theItem, aTypeName.theItem, aTypedValue.theItem ));
12   }
13 
14 #ifndef SWIGRUBY
createAttributeNode(Item & aParent,Item & aNodeName,Item & aTypeName,std::vector<Item> aTypedValue)15   Item 	ItemFactory::createAttributeNode (Item& aParent, Item& aNodeName, Item& aTypeName, std::vector< Item > aTypedValue){
16 
17     std::vector< zorba::Item > typedValue;
18     typedValue.reserve(aTypedValue.size());
19     std::vector< Item >::iterator iter;
20     for(iter = aTypedValue.begin(); iter != aTypedValue.end(); iter++) {
21       typedValue.push_back((*iter).theItem);
22     }
23     return Item( theItemFactory->createAttributeNode (aParent.theItem, aNodeName.theItem, aTypeName.theItem, typedValue ));
24   }
25 #endif
26 
createBase64Binary(const char * aBinData,size_t aLength)27   Item 	ItemFactory::createBase64Binary (const char *aBinData, size_t aLength){
28     return Item( theItemFactory->createBase64Binary(aBinData, aLength));
29   }
createBase64Binary(std::istream & aStream)30   Item 	ItemFactory::createBase64Binary (std::istream &aStream){
31     return Item( theItemFactory->createBase64Binary(aStream));
32   }
createBase64Binary(const unsigned char * aBinData,size_t aLength)33   Item 	ItemFactory::createBase64Binary (const unsigned char *aBinData, size_t aLength){
34     return Item( theItemFactory->createBase64Binary(aBinData, aLength));
35   }
createBoolean(bool aValue)36   Item 	ItemFactory::createBoolean (bool aValue){
37     return Item( theItemFactory->createBoolean(aValue));
38   }
createByte(char aByte)39   Item 	ItemFactory::createByte (char aByte){
40     return Item( theItemFactory->createByte(aByte));
41   }
createCommentNode(Item & aParent,const std::string & aContent)42   Item 	ItemFactory::createCommentNode (Item &aParent, const std::string &aContent){
43     zorba::String lContent = zorba::String(aContent);
44     return Item( theItemFactory->createCommentNode (aParent.theItem, lContent));
45   }
createDate(const std::string & aDate)46   Item 	ItemFactory::createDate (const std::string &aDate){
47     return Item( theItemFactory->createDate(aDate));
48   }
createDate(short aYear,short aMonth,short aDay)49   Item 	ItemFactory::createDate (short aYear, short aMonth, short aDay){
50     return Item( theItemFactory->createDate (aYear, aMonth, aDay));
51   }
createDateTime(const std::string & aDateTimeValue)52   Item 	ItemFactory::createDateTime (const std::string &aDateTimeValue){
53     return Item( theItemFactory->createDateTime (aDateTimeValue));
54   }
createDateTime(short aYear,short aMonth,short aDay,short aHour,short aMinute,double aSecond,short aTimeZone_hours)55   Item 	ItemFactory::createDateTime (short aYear, short aMonth, short aDay, short aHour, short aMinute, double aSecond, short aTimeZone_hours){
56     return Item( theItemFactory->createDateTime (aYear, aMonth, aDay, aHour, aMinute, aSecond, aTimeZone_hours));
57   }
createDecimal(const std::string & aValue)58   Item 	ItemFactory::createDecimal (const std::string &aValue){
59     return Item( theItemFactory->createDecimal (aValue));
60   }
createDecimalFromDouble(double aValue)61   Item 	ItemFactory::createDecimalFromDouble (double aValue){
62     return Item( theItemFactory->createDecimalFromDouble (aValue));
63   }
createDecimalFromLong(unsigned long aValue)64   Item 	ItemFactory::createDecimalFromLong (unsigned long aValue){
65     return Item( theItemFactory->createDecimalFromLong (aValue));
66   }
createDouble(const std::string & aValue)67   Item 	ItemFactory::createDouble (const std::string &aValue){
68     return Item( theItemFactory->createDouble (aValue));
69   }
createDouble(double aValue)70   Item 	ItemFactory::createDouble (double aValue){
71     return Item( theItemFactory->createDouble (aValue));
72   }
createDuration(const std::string & aValue)73   Item 	ItemFactory::createDuration (const std::string &aValue){
74     return Item( theItemFactory->createDuration (aValue));
75   }
createDuration(short aYear,short aMonths,short aDays,short aHours,short aMinutes,double aSeconds)76   Item 	ItemFactory::createDuration (short aYear, short aMonths, short aDays, short aHours, short aMinutes, double aSeconds){
77     return Item( theItemFactory->createDuration (aYear, aMonths, aDays, aHours, aMinutes, aSeconds));
78   }
createDayTimeDuration(const std::string & aValue)79   Item 	ItemFactory::createDayTimeDuration (const std::string &aValue){
80     return Item( theItemFactory->createDayTimeDuration (aValue));
81   }
createYearMonthDuration(const std::string & aValue)82   Item 	ItemFactory::createYearMonthDuration (const std::string &aValue){
83     return Item( theItemFactory->createYearMonthDuration (aValue));
84   }
createDocumentNode(const std::string & aBaseUri,const std::string & aDocUri)85   Item 	ItemFactory::createDocumentNode (const std::string &aBaseUri, const std::string &aDocUri){
86     return Item( theItemFactory->createDocumentNode (aBaseUri, aDocUri));
87   }
88 #ifndef SWIGRUBY
createElementNode(Item & aParent,Item & aNodeName,Item & aTypeName,bool aHasTypedValue,bool aHasEmptyValue,std::vector<std::pair<std::string,std::string>> aNsBindings)89   Item 	ItemFactory::createElementNode (Item &aParent, Item& aNodeName, Item& aTypeName, bool aHasTypedValue, bool aHasEmptyValue, std::vector< std::pair< std::string, std::string > > aNsBindings){
90     std::vector< std::pair< zorba::String, zorba::String > > items;
91     items.reserve(aNsBindings.size());
92     std::vector< std::pair< std::string, std::string > >::iterator iter;
93     for(iter = aNsBindings.begin(); iter != aNsBindings.end(); iter++) {
94       std::pair< zorba::String, zorba::String > pair;
95       pair.first = (*iter).first;
96       pair.second = (*iter).second;
97       items.push_back(pair);
98     }
99     return Item( theItemFactory->createElementNode (aParent.theItem, aNodeName.theItem, aTypeName.theItem, aHasTypedValue, aHasEmptyValue, items));
100   }
101 #endif
createElementNode(Item & aParent,Item & aNodeName,Item & aTypeName,bool aHasTypedValue,bool aHasEmptyValue)102   Item 	ItemFactory::createElementNode (Item &aParent, Item& aNodeName, Item& aTypeName, bool aHasTypedValue, bool aHasEmptyValue){
103     return Item( theItemFactory->createElementNode (aParent.theItem, aNodeName.theItem, aTypeName.theItem, aHasTypedValue, aHasEmptyValue, std::vector<std::pair<zorba::String, zorba::String> >()));
104   }
createFloat(const std::string & aValue)105   Item 	ItemFactory::createFloat (const std::string &aValue){
106     return Item( theItemFactory->createFloat (aValue));
107   }
createFloat(float aValue)108   Item 	ItemFactory::createFloat (float aValue){
109     return Item( theItemFactory->createFloat (aValue));
110   }
createGDay(const std::string & aValue)111   Item 	ItemFactory::createGDay (const std::string &aValue){
112     return Item( theItemFactory->createGDay (aValue));
113   }
createGDay(short aDay)114   Item 	ItemFactory::createGDay (short aDay){
115     return Item( theItemFactory->createGDay (aDay));
116   }
createGMonth(const std::string & aValue)117   Item 	ItemFactory::createGMonth (const std::string &aValue){
118     return Item( theItemFactory->createGMonth (aValue));
119   }
createGMonth(short aMonth)120   Item 	ItemFactory::createGMonth (short aMonth){
121     return Item( theItemFactory->createGMonth (aMonth));
122   }
createGMonthDay(const std::string & aValue)123   Item 	ItemFactory::createGMonthDay (const std::string &aValue){
124     return Item( theItemFactory->createGMonthDay (aValue));
125   }
createGMonthDay(short aMonth,short aDay)126   Item 	ItemFactory::createGMonthDay (short aMonth, short aDay){
127     return Item( theItemFactory->createGMonthDay (aMonth, aDay));
128   }
createGYear(short aYear)129   Item 	ItemFactory::createGYear (short aYear){
130     return Item( theItemFactory->createGYear (aYear));
131   }
createGYear(const std::string & aValue)132   Item 	ItemFactory::createGYear (const std::string &aValue){
133     return Item( theItemFactory->createGYear (aValue));
134   }
createGYearMonth(const std::string & aValue)135   Item 	ItemFactory::createGYearMonth (const std::string &aValue){
136     return Item( theItemFactory->createGYearMonth (aValue));
137   }
createGYearMonth(short aYear,short aMonth)138   Item 	ItemFactory::createGYearMonth (short aYear, short aMonth){
139     return Item( theItemFactory->createGYearMonth (aYear, aMonth));
140   }
createHexBinary(const char * aHexData,size_t aSize)141   Item 	ItemFactory::createHexBinary (const char *aHexData, size_t aSize){
142     return Item( theItemFactory->createHexBinary (aHexData, aSize));
143   }
createInt(int aInt)144   Item 	ItemFactory::createInt (int aInt){
145     return Item( theItemFactory->createInt (aInt));
146   }
createInteger(const std::string & aInteger)147   Item 	ItemFactory::createInteger (const std::string &aInteger){
148     return Item( theItemFactory->createInteger (aInteger));
149   }
createInteger(long long aInteger)150   Item 	ItemFactory::createInteger (long long aInteger){
151     return Item( theItemFactory->createInteger (aInteger));
152   }
createLong(long long aLong)153   Item 	ItemFactory::createLong (long long aLong){
154     return Item( theItemFactory->createLong (aLong));
155   }
createNCName(const std::string & aValue)156   Item 	ItemFactory::createNCName (const std::string &aValue){
157     return Item( theItemFactory->createNCName (aValue));
158   }
createNegativeInteger(long long aValue)159   Item 	ItemFactory::createNegativeInteger (long long aValue){
160     return Item( theItemFactory->createNegativeInteger (aValue));
161   }
createNonNegativeInteger(unsigned long long aValue)162   Item 	ItemFactory::createNonNegativeInteger (unsigned long long aValue){
163     return Item( theItemFactory->createNonNegativeInteger (aValue));
164   }
createNonPositiveInteger(long long aValue)165   Item 	ItemFactory::createNonPositiveInteger (long long aValue){
166     return Item( theItemFactory->createNonPositiveInteger (aValue));
167   }
createPiNode(Item & aParent,const std::string & aTarget,const std::string & aContent,const std::string & aBaseUri)168   Item 	ItemFactory::createPiNode (Item &aParent, const std::string &aTarget, const std::string &aContent, const std::string &aBaseUri){
169     zorba::String lTarget = zorba::String(aTarget);
170     zorba::String lContent = zorba::String(aContent);
171     zorba::String lBaseUri = zorba::String(aBaseUri);
172     return Item( theItemFactory->createPiNode (aParent.theItem, lTarget, lContent, lBaseUri));
173   }
createPositiveInteger(unsigned long long aValue)174   Item 	ItemFactory::createPositiveInteger (unsigned long long aValue){
175     return Item( theItemFactory->createPositiveInteger (aValue));
176   }
createQName(const std::string & aNamespace,const std::string & aPrefix,const std::string & aLocalname)177   Item 	ItemFactory::createQName (const std::string &aNamespace, const std::string &aPrefix, const std::string &aLocalname){
178     return Item( theItemFactory->createQName (aNamespace, aPrefix, aLocalname));
179   }
createQName(const std::string & aNamespace,const std::string & aLocalname)180   Item 	ItemFactory::createQName (const std::string &aNamespace, const std::string &aLocalname){
181     return Item( theItemFactory->createQName (aNamespace, aLocalname));
182   }
createQName(const std::string & aQNameString)183   Item 	ItemFactory::createQName (const std::string &aQNameString){
184     return Item( theItemFactory->createQName (aQNameString));
185   }
createShort(short aShort)186   Item 	ItemFactory::createShort (short aShort){
187     return Item( theItemFactory->createShort (aShort));
188   }
189   /*
190   Item 	ItemFactory::createStreamableString (std::istream &stream, StreamReleaser streamReleaser, bool seekable=false){
191     return Item( theItemFactory->createStreamableString (std::istream &stream, StreamReleaser streamReleaser, seekable));
192   }
193   */
createString(const std::string & aString)194   Item 	ItemFactory::createString (const std::string &aString){
195     return Item( theItemFactory->createString (aString));
196   }
createTextNode(Item & aParent,const std::string & aContent)197   Item 	ItemFactory::createTextNode (Item &aParent, const std::string &aContent){
198     zorba::String lContent = zorba::String(aContent);
199     return Item( theItemFactory->createTextNode (aParent.theItem, lContent));
200   }
createTime(short aHour,short aMinute,double aSecond,short aTimeZone_hours)201   Item 	ItemFactory::createTime (short aHour, short aMinute, double aSecond, short aTimeZone_hours){
202     return Item( theItemFactory->createTime (aHour, aMinute, aSecond, aTimeZone_hours));
203   }
createTime(short aHour,short aMinute,double aSecond)204   Item 	ItemFactory::createTime (short aHour, short aMinute, double aSecond){
205     return Item( theItemFactory->createTime (aHour, aMinute, aSecond));
206   }
createTime(const std::string & aValue)207   Item 	ItemFactory::createTime (const std::string &aValue){
208     return Item( theItemFactory->createTime (aValue));
209   }
createUnsignedByte(const unsigned char aValue)210   Item 	ItemFactory::createUnsignedByte (const unsigned char aValue){
211     return Item( theItemFactory->createUnsignedByte (aValue));
212   }
createUnsignedInt(unsigned int aValue)213   Item 	ItemFactory::createUnsignedInt (unsigned int aValue){
214     return Item( theItemFactory->createUnsignedInt (aValue));
215   }
createUnsignedLong(unsigned long long aValue)216   Item 	ItemFactory::createUnsignedLong (unsigned long long aValue){
217     return Item( theItemFactory->createUnsignedLong (aValue));
218   }
createUnsignedShort(unsigned short aValue)219   Item 	ItemFactory::createUnsignedShort (unsigned short aValue){
220     return Item( theItemFactory->createUnsignedShort (aValue));
221   }
222 
223 
224 %}  // end Implementation
225 
226 %include "ItemFactory.h"
227