/condor-7.9.0/src/condor_contrib/aviary/codegen/query/src/AviaryQuery_GetSubmissionIDResponse.cpp

# · C++ · 1007 lines · 595 code · 314 blank · 98 comment · 117 complexity · 0875b59db8511dfaa113a5526b8164bc MD5 · raw file

  1. /**
  2. * GetSubmissionIDResponse.cpp
  3. *
  4. * This file was auto-generated from WSDL
  5. * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
  6. */
  7. #include "AviaryQuery_GetSubmissionIDResponse.h"
  8. #include <Environment.h>
  9. #include <WSFError.h>
  10. using namespace wso2wsf;
  11. using namespace std;
  12. using namespace AviaryQuery;
  13. /*
  14. * Implementation of the GetSubmissionIDResponse|http://query.aviary.grid.redhat.com Element
  15. */
  16. AviaryQuery::GetSubmissionIDResponse::GetSubmissionIDResponse()
  17. {
  18. qname = NULL;
  19. property_Ids = NULL;
  20. isValidIds = false;
  21. isValidRemaining = false;
  22. qname = axutil_qname_create (Environment::getEnv(),
  23. "GetSubmissionIDResponse",
  24. "http://query.aviary.grid.redhat.com",
  25. NULL);
  26. }
  27. AviaryQuery::GetSubmissionIDResponse::GetSubmissionIDResponse(std::vector<AviaryCommon::SubmissionID*>* arg_Ids,int arg_Remaining)
  28. {
  29. qname = NULL;
  30. property_Ids = NULL;
  31. isValidIds = true;
  32. isValidRemaining = true;
  33. qname = axutil_qname_create (Environment::getEnv(),
  34. "GetSubmissionIDResponse",
  35. "http://query.aviary.grid.redhat.com",
  36. NULL);
  37. property_Ids = arg_Ids;
  38. property_Remaining = arg_Remaining;
  39. }
  40. AviaryQuery::GetSubmissionIDResponse::~GetSubmissionIDResponse()
  41. {
  42. }
  43. bool WSF_CALL
  44. AviaryQuery::GetSubmissionIDResponse::deserialize(axiom_node_t** dp_parent,bool *dp_is_early_node_valid, bool dont_care_minoccurs)
  45. {
  46. axiom_node_t *parent = *dp_parent;
  47. bool status = AXIS2_SUCCESS;
  48. const axis2_char_t* text_value = NULL;
  49. axutil_qname_t *mqname = NULL;
  50. int i = 0;
  51. int sequence_broken = 0;
  52. axiom_node_t *tmp_node = NULL;
  53. axutil_qname_t *element_qname = NULL;
  54. axiom_node_t *first_node = NULL;
  55. bool is_early_node_valid = true;
  56. axiom_node_t *current_node = NULL;
  57. axiom_element_t *current_element = NULL;
  58. while(parent && axiom_node_get_node_type(parent, Environment::getEnv()) != AXIOM_ELEMENT)
  59. {
  60. parent = axiom_node_get_next_sibling(parent, Environment::getEnv());
  61. }
  62. if (NULL == parent)
  63. {
  64. return AXIS2_FAILURE;
  65. }
  66. current_element = (axiom_element_t *)axiom_node_get_data_element(parent, Environment::getEnv());
  67. mqname = axiom_element_get_qname(current_element, Environment::getEnv(), parent);
  68. if (axutil_qname_equals(mqname, Environment::getEnv(), this->qname))
  69. {
  70. first_node = axiom_node_get_first_child(parent, Environment::getEnv());
  71. }
  72. else
  73. {
  74. WSF_LOG_ERROR_MSG(Environment::getEnv()->log, WSF_LOG_SI,
  75. "Failed in building adb object for GetSubmissionIDResponse : "
  76. "Expected %s but returned %s",
  77. axutil_qname_to_string(qname, Environment::getEnv()),
  78. axutil_qname_to_string(mqname, Environment::getEnv()));
  79. return AXIS2_FAILURE;
  80. }
  81. {
  82. /*
  83. * building Ids array
  84. */
  85. std::vector<AviaryCommon::SubmissionID*>* arr_list =new std::vector<AviaryCommon::SubmissionID*>();
  86. /*
  87. * building ids element
  88. */
  89. element_qname = axutil_qname_create(Environment::getEnv(), "ids", NULL, NULL);
  90. for (i = 0, sequence_broken = 0, current_node = first_node; !sequence_broken && current_node != NULL;)
  91. {
  92. if(axiom_node_get_node_type(current_node, Environment::getEnv()) != AXIOM_ELEMENT)
  93. {
  94. current_node =axiom_node_get_next_sibling(current_node, Environment::getEnv());
  95. is_early_node_valid = false;
  96. continue;
  97. }
  98. current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, Environment::getEnv());
  99. mqname = axiom_element_get_qname(current_element, Environment::getEnv(), current_node);
  100. if (axutil_qname_equals(element_qname, Environment::getEnv(), mqname) || !axutil_strcmp("ids", axiom_element_get_localname(current_element, Environment::getEnv())))
  101. {
  102. is_early_node_valid = true;
  103. AviaryCommon::SubmissionID* element = new AviaryCommon::SubmissionID();
  104. status = element->deserialize(&current_node, &is_early_node_valid, false);
  105. if(AXIS2_FAILURE == status)
  106. {
  107. WSF_LOG_ERROR_MSG(Environment::getEnv()->log,WSF_LOG_SI, "failed in building element ids ");
  108. }
  109. else
  110. {
  111. arr_list->push_back(element);
  112. }
  113. if(AXIS2_FAILURE == status)
  114. {
  115. WSF_LOG_ERROR_MSG(Environment::getEnv()->log, WSF_LOG_SI, "failed in setting the value for ids ");
  116. if(element_qname)
  117. {
  118. axutil_qname_free(element_qname, Environment::getEnv());
  119. }
  120. if(arr_list)
  121. {
  122. delete arr_list;
  123. }
  124. return false;
  125. }
  126. i++;
  127. current_node = axiom_node_get_next_sibling(current_node, Environment::getEnv());
  128. }
  129. else
  130. {
  131. is_early_node_valid = false;
  132. sequence_broken = 1;
  133. }
  134. }
  135. if (i < 0)
  136. {
  137. /* found element out of order */
  138. WSF_LOG_ERROR_MSG( Environment::getEnv()->log,WSF_LOG_SI,"ids (@minOccurs = '0') only have %d elements", i);
  139. if(element_qname)
  140. {
  141. axutil_qname_free(element_qname, Environment::getEnv());
  142. }
  143. if(arr_list)
  144. {
  145. delete arr_list;
  146. }
  147. return false;
  148. }
  149. if(0 == arr_list->size())
  150. {
  151. delete arr_list;
  152. }
  153. else
  154. {
  155. status = setIds(arr_list);
  156. }
  157. }
  158. if(element_qname)
  159. {
  160. axutil_qname_free(element_qname, Environment::getEnv());
  161. element_qname = NULL;
  162. }
  163. /*
  164. * building remaining element
  165. */
  166. /*
  167. * because elements are ordered this works fine
  168. */
  169. if(current_node != NULL && is_early_node_valid)
  170. {
  171. current_node = axiom_node_get_next_sibling(current_node, Environment::getEnv());
  172. while(current_node && axiom_node_get_node_type(current_node, Environment::getEnv()) != AXIOM_ELEMENT)
  173. {
  174. current_node = axiom_node_get_next_sibling(current_node, Environment::getEnv());
  175. }
  176. if(current_node != NULL)
  177. {
  178. current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, Environment::getEnv());
  179. mqname = axiom_element_get_qname(current_element, Environment::getEnv(), current_node);
  180. }
  181. }
  182. is_early_node_valid = false;
  183. element_qname = axutil_qname_create(Environment::getEnv(), "remaining", NULL, NULL);
  184. if (
  185. (current_node && current_element && (axutil_qname_equals(element_qname, Environment::getEnv(), mqname) || !axutil_strcmp("remaining", axiom_element_get_localname(current_element, Environment::getEnv())))))
  186. {
  187. if( current_node && current_element && (axutil_qname_equals(element_qname, Environment::getEnv(), mqname) || !axutil_strcmp("remaining", axiom_element_get_localname(current_element, Environment::getEnv()))))
  188. {
  189. is_early_node_valid = true;
  190. }
  191. text_value = axiom_element_get_text(current_element, Environment::getEnv(), current_node);
  192. if(text_value != NULL)
  193. {
  194. status = setRemaining(atoi(text_value));
  195. }
  196. else
  197. {
  198. WSF_LOG_ERROR_MSG(Environment::getEnv()->log, WSF_LOG_SI, "NULL value is set to a non nillable element remaining");
  199. status = AXIS2_FAILURE;
  200. }
  201. if(AXIS2_FAILURE == status)
  202. {
  203. WSF_LOG_ERROR_MSG( Environment::getEnv()->log,WSF_LOG_SI,"failed in setting the value for remaining ");
  204. if(element_qname)
  205. {
  206. axutil_qname_free(element_qname, Environment::getEnv());
  207. }
  208. return AXIS2_FAILURE;
  209. }
  210. }
  211. else if(!dont_care_minoccurs)
  212. {
  213. if(element_qname)
  214. {
  215. axutil_qname_free(element_qname, Environment::getEnv());
  216. }
  217. /* this is not a nillable element*/
  218. WSF_LOG_ERROR_MSG(Environment::getEnv()->log,WSF_LOG_SI, "non nillable or minOuccrs != 0 element remaining missing");
  219. return AXIS2_FAILURE;
  220. }
  221. if(element_qname)
  222. {
  223. axutil_qname_free(element_qname, Environment::getEnv());
  224. element_qname = NULL;
  225. }
  226. return status;
  227. }
  228. bool WSF_CALL
  229. AviaryQuery::GetSubmissionIDResponse::isParticle()
  230. {
  231. return false;
  232. }
  233. void WSF_CALL
  234. AviaryQuery::GetSubmissionIDResponse::declareParentNamespaces(
  235. axiom_element_t *parent_element,
  236. axutil_hash_t *namespaces, int *next_ns_index)
  237. {
  238. /* Here this is an empty function, Nothing to declare */
  239. }
  240. axiom_node_t* WSF_CALL
  241. AviaryQuery::GetSubmissionIDResponse::serialize(axiom_node_t *parent,
  242. axiom_element_t *parent_element,
  243. int parent_tag_closed,
  244. axutil_hash_t *namespaces,
  245. int *next_ns_index)
  246. {
  247. axiom_node_t *current_node = NULL;
  248. int tag_closed = 0;
  249. axiom_namespace_t *ns1 = NULL;
  250. axis2_char_t *qname_uri = NULL;
  251. axis2_char_t *qname_prefix = NULL;
  252. axis2_char_t *p_prefix = NULL;
  253. int i = 0;
  254. int count = 0;
  255. void *element = NULL;
  256. axis2_char_t text_value_1[ADB_DEFAULT_DIGIT_LIMIT];
  257. axis2_char_t text_value_2[ADB_DEFAULT_DIGIT_LIMIT];
  258. axis2_char_t *start_input_str = NULL;
  259. axis2_char_t *end_input_str = NULL;
  260. unsigned int start_input_str_len = 0;
  261. unsigned int end_input_str_len = 0;
  262. axiom_data_source_t *data_source = NULL;
  263. axutil_stream_t *stream = NULL;
  264. int next_ns_index_value = 0;
  265. namespaces = axutil_hash_make(Environment::getEnv());
  266. next_ns_index = &next_ns_index_value;
  267. ns1 = axiom_namespace_create (Environment::getEnv(),
  268. "http://query.aviary.grid.redhat.com",
  269. "n");
  270. axutil_hash_set(namespaces, "http://query.aviary.grid.redhat.com", AXIS2_HASH_KEY_STRING, axutil_strdup(Environment::getEnv(), "n"));
  271. parent_element = axiom_element_create (Environment::getEnv(), NULL, "GetSubmissionIDResponse", ns1 , &parent);
  272. axiom_element_set_namespace(parent_element, Environment::getEnv(), ns1, parent);
  273. data_source = axiom_data_source_create(Environment::getEnv(), parent, &current_node);
  274. stream = axiom_data_source_get_stream(data_source, Environment::getEnv());
  275. p_prefix = NULL;
  276. if (!isValidIds)
  277. {
  278. /* no need to complain for minoccurs=0 element */
  279. }
  280. else
  281. {
  282. start_input_str = (axis2_char_t*)AXIS2_MALLOC(Environment::getEnv()->allocator, sizeof(axis2_char_t) *
  283. (4 + axutil_strlen(p_prefix) +
  284. axutil_strlen("ids")));
  285. /* axutil_strlen("<:>") + 1 = 4 */
  286. end_input_str = (axis2_char_t*)AXIS2_MALLOC(Environment::getEnv()->allocator, sizeof(axis2_char_t) *
  287. (5 + axutil_strlen(p_prefix) + axutil_strlen("ids")));
  288. /* axutil_strlen("</:>") + 1 = 5 */
  289. /*
  290. * Parsing Ids array
  291. */
  292. if (property_Ids != NULL)
  293. {
  294. sprintf(start_input_str, "<%s%sids",
  295. p_prefix?p_prefix:"",
  296. (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
  297. start_input_str_len = axutil_strlen(start_input_str);
  298. sprintf(end_input_str, "</%s%sids>",
  299. p_prefix?p_prefix:"",
  300. (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
  301. end_input_str_len = axutil_strlen(end_input_str);
  302. count = property_Ids->size();
  303. for(i = 0; i < count; i++)
  304. {
  305. AviaryCommon::SubmissionID* element = (*property_Ids)[i];
  306. if(NULL == element)
  307. {
  308. continue;
  309. }
  310. /*
  311. * parsing ids element
  312. */
  313. if(!element->isParticle())
  314. {
  315. axutil_stream_write(stream, Environment::getEnv(), start_input_str, start_input_str_len);
  316. }
  317. element->serialize(current_node, parent_element,
  318. element->isParticle() || false, namespaces, next_ns_index);
  319. if(!element->isParticle())
  320. {
  321. axutil_stream_write(stream, Environment::getEnv(), end_input_str, end_input_str_len);
  322. }
  323. }
  324. }
  325. AXIS2_FREE(Environment::getEnv()->allocator,start_input_str);
  326. AXIS2_FREE(Environment::getEnv()->allocator,end_input_str);
  327. }
  328. p_prefix = NULL;
  329. if (!isValidRemaining)
  330. {
  331. WSF_LOG_ERROR_MSG( Environment::getEnv()->log,WSF_LOG_SI,"Nil value found in non-nillable property remaining");
  332. return NULL;
  333. }
  334. else
  335. {
  336. start_input_str = (axis2_char_t*)AXIS2_MALLOC(Environment::getEnv()->allocator, sizeof(axis2_char_t) *
  337. (4 + axutil_strlen(p_prefix) +
  338. axutil_strlen("remaining")));
  339. /* axutil_strlen("<:>") + 1 = 4 */
  340. end_input_str = (axis2_char_t*)AXIS2_MALLOC(Environment::getEnv()->allocator, sizeof(axis2_char_t) *
  341. (5 + axutil_strlen(p_prefix) + axutil_strlen("remaining")));
  342. /* axutil_strlen("</:>") + 1 = 5 */
  343. /*
  344. * parsing remaining element
  345. */
  346. sprintf(start_input_str, "<%s%sremaining>",
  347. p_prefix?p_prefix:"",
  348. (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
  349. start_input_str_len = axutil_strlen(start_input_str);
  350. sprintf(end_input_str, "</%s%sremaining>",
  351. p_prefix?p_prefix:"",
  352. (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
  353. end_input_str_len = axutil_strlen(end_input_str);
  354. sprintf (text_value_2, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, property_Remaining);
  355. axutil_stream_write(stream, Environment::getEnv(), start_input_str, start_input_str_len);
  356. axutil_stream_write(stream, Environment::getEnv(), text_value_2, axutil_strlen(text_value_2));
  357. axutil_stream_write(stream, Environment::getEnv(), end_input_str, end_input_str_len);
  358. AXIS2_FREE(Environment::getEnv()->allocator,start_input_str);
  359. AXIS2_FREE(Environment::getEnv()->allocator,end_input_str);
  360. }
  361. if(namespaces)
  362. {
  363. axutil_hash_index_t *hi;
  364. void *val;
  365. for (hi = axutil_hash_first(namespaces, Environment::getEnv()); hi; hi = axutil_hash_next(Environment::getEnv(), hi))
  366. {
  367. axutil_hash_this(hi, NULL, NULL, &val);
  368. AXIS2_FREE(Environment::getEnv()->allocator, val);
  369. }
  370. axutil_hash_free(namespaces, Environment::getEnv());
  371. }
  372. return parent;
  373. }
  374. /**
  375. * Getter for ids by Property Number 1
  376. */
  377. std::vector<AviaryCommon::SubmissionID*>* WSF_CALL
  378. AviaryQuery::GetSubmissionIDResponse::getProperty1()
  379. {
  380. return getIds();
  381. }
  382. /**
  383. * getter for ids.
  384. */
  385. std::vector<AviaryCommon::SubmissionID*>* WSF_CALL
  386. AviaryQuery::GetSubmissionIDResponse::getIds()
  387. {
  388. return property_Ids;
  389. }
  390. /**
  391. * setter for ids
  392. */
  393. bool WSF_CALL
  394. AviaryQuery::GetSubmissionIDResponse::setIds(
  395. std::vector<AviaryCommon::SubmissionID*>* arg_Ids)
  396. {
  397. int size = 0;
  398. int i = 0;
  399. bool non_nil_exists = false;
  400. if(isValidIds &&
  401. arg_Ids == property_Ids)
  402. {
  403. return true;
  404. }
  405. size = arg_Ids->size();
  406. if (size < 0)
  407. {
  408. WSF_LOG_ERROR_MSG( Environment::getEnv()->log,WSF_LOG_SI,"ids has less than minOccurs(0)");
  409. return false;
  410. }
  411. for(i = 0; i < size; i ++ )
  412. {
  413. if(NULL != (*arg_Ids)[i])
  414. {
  415. non_nil_exists = true;
  416. break;
  417. }
  418. }
  419. resetIds();
  420. if(NULL == arg_Ids)
  421. {
  422. /* We are already done */
  423. return true;
  424. }
  425. property_Ids = arg_Ids;
  426. if(non_nil_exists)
  427. {
  428. isValidIds = true;
  429. }
  430. return true;
  431. }
  432. /**
  433. * Get ith element of ids.
  434. */
  435. AviaryCommon::SubmissionID* WSF_CALL
  436. AviaryQuery::GetSubmissionIDResponse::getIdsAt(int i)
  437. {
  438. AviaryCommon::SubmissionID* ret_val;
  439. if(property_Ids == NULL)
  440. {
  441. return (AviaryCommon::SubmissionID*)0;
  442. }
  443. ret_val = (*property_Ids)[i];
  444. return ret_val;
  445. }
  446. /**
  447. * Set the ith element of ids.
  448. */
  449. bool WSF_CALL
  450. AviaryQuery::GetSubmissionIDResponse::setIdsAt(int i,
  451. AviaryCommon::SubmissionID* arg_Ids)
  452. {
  453. AviaryCommon::SubmissionID* element;
  454. int size = 0;
  455. int non_nil_count;
  456. bool non_nil_exists = false;
  457. if( isValidIds &&
  458. property_Ids &&
  459. arg_Ids == (*property_Ids)[i])
  460. {
  461. return AXIS2_SUCCESS;
  462. }
  463. non_nil_exists = true;
  464. if(property_Ids == NULL)
  465. {
  466. property_Ids = new std::vector<AviaryCommon::SubmissionID*>();
  467. }
  468. else{
  469. /* check whether there already exist an element */
  470. element = (*property_Ids)[i];
  471. }
  472. if(NULL != element)
  473. {
  474. delete element;
  475. }
  476. if(!non_nil_exists)
  477. {
  478. isValidIds = true;
  479. (*property_Ids)[i]= NULL;
  480. return AXIS2_SUCCESS;
  481. }
  482. (*property_Ids)[i] = arg_Ids;
  483. isValidIds = true;
  484. return AXIS2_SUCCESS;
  485. }
  486. /**
  487. * Add to ids.
  488. */
  489. bool WSF_CALL
  490. AviaryQuery::GetSubmissionIDResponse::addIds(
  491. AviaryCommon::SubmissionID* arg_Ids)
  492. {
  493. if( NULL == arg_Ids
  494. )
  495. {
  496. return true;
  497. }
  498. if(property_Ids == NULL)
  499. {
  500. property_Ids = new std::vector<AviaryCommon::SubmissionID*>();
  501. }
  502. property_Ids->push_back(arg_Ids);
  503. isValidIds = true;
  504. return true;
  505. }
  506. /**
  507. * Get the size of the ids array.
  508. */
  509. int WSF_CALL
  510. AviaryQuery::GetSubmissionIDResponse::sizeofIds()
  511. {
  512. if(property_Ids == NULL)
  513. {
  514. return 0;
  515. }
  516. return property_Ids->size();
  517. }
  518. /**
  519. * remove the ith element, same as set_nil_at.
  520. */
  521. bool WSF_CALL
  522. AviaryQuery::GetSubmissionIDResponse::removeIdsAt(int i)
  523. {
  524. return setIdsNilAt(i);
  525. }
  526. /**
  527. * resetter for ids
  528. */
  529. bool WSF_CALL
  530. AviaryQuery::GetSubmissionIDResponse::resetIds()
  531. {
  532. int i = 0;
  533. int count = 0;
  534. if (property_Ids != NULL)
  535. {
  536. std::vector<AviaryCommon::SubmissionID*>::iterator it = property_Ids->begin();
  537. for( ; it < property_Ids->end() ; ++it)
  538. {
  539. AviaryCommon::SubmissionID* element = *it;
  540. if(element != NULL)
  541. {
  542. delete element;
  543. }
  544. }
  545. }
  546. if(NULL != property_Ids)
  547. delete property_Ids;
  548. isValidIds = false;
  549. return true;
  550. }
  551. /**
  552. * Check whether ids is nill
  553. */
  554. bool WSF_CALL
  555. AviaryQuery::GetSubmissionIDResponse::isIdsNil()
  556. {
  557. return !isValidIds;
  558. }
  559. /**
  560. * Set ids to nill (currently the same as reset)
  561. */
  562. bool WSF_CALL
  563. AviaryQuery::GetSubmissionIDResponse::setIdsNil()
  564. {
  565. return resetIds();
  566. }
  567. /**
  568. * Check whether ids is nill at i
  569. */
  570. bool WSF_CALL
  571. AviaryQuery::GetSubmissionIDResponse::isIdsNilAt(int i)
  572. {
  573. return (isValidIds == false ||
  574. NULL == property_Ids ||
  575. NULL == (*property_Ids)[i]);
  576. }
  577. /**
  578. * Set ids to nil at i
  579. */
  580. bool WSF_CALL
  581. AviaryQuery::GetSubmissionIDResponse::setIdsNilAt(int i)
  582. {
  583. int size = 0;
  584. int j;
  585. bool non_nil_exists = false;
  586. int k = 0;
  587. if(property_Ids == NULL ||
  588. isValidIds == false)
  589. {
  590. non_nil_exists = false;
  591. }
  592. else
  593. {
  594. size = property_Ids->size();
  595. for(j = 0, k = 0; j < size; j ++ )
  596. {
  597. if(i == j) continue;
  598. if(NULL != (*property_Ids)[i])
  599. {
  600. k++;
  601. non_nil_exists = true;
  602. if( k >= 0)
  603. {
  604. break;
  605. }
  606. }
  607. }
  608. }
  609. if( k < 0)
  610. {
  611. WSF_LOG_ERROR_MSG(Environment::getEnv()->log, WSF_LOG_SI, "Size of the array of ids is beinng set to be smaller than the specificed number of minOccurs(0)");
  612. return AXIS2_FAILURE;
  613. }
  614. if(property_Ids == NULL)
  615. {
  616. isValidIds = false;
  617. return true;
  618. }
  619. /* check whether there already exist an element */
  620. AviaryCommon::SubmissionID* element = (*property_Ids)[i];
  621. if(NULL != element)
  622. {
  623. delete element;
  624. }
  625. if(!non_nil_exists)
  626. {
  627. isValidIds = false;
  628. (*property_Ids)[i] = NULL;
  629. return AXIS2_SUCCESS;
  630. }
  631. (*property_Ids)[i] = NULL;
  632. return AXIS2_SUCCESS;
  633. }
  634. /**
  635. * Getter for remaining by Property Number 2
  636. */
  637. int WSF_CALL
  638. AviaryQuery::GetSubmissionIDResponse::getProperty2()
  639. {
  640. return getRemaining();
  641. }
  642. /**
  643. * getter for remaining.
  644. */
  645. int WSF_CALL
  646. AviaryQuery::GetSubmissionIDResponse::getRemaining()
  647. {
  648. return property_Remaining;
  649. }
  650. /**
  651. * setter for remaining
  652. */
  653. bool WSF_CALL
  654. AviaryQuery::GetSubmissionIDResponse::setRemaining(
  655. const int arg_Remaining)
  656. {
  657. if(isValidRemaining &&
  658. arg_Remaining == property_Remaining)
  659. {
  660. return true;
  661. }
  662. resetRemaining();
  663. property_Remaining = arg_Remaining;
  664. isValidRemaining = true;
  665. return true;
  666. }
  667. /**
  668. * resetter for remaining
  669. */
  670. bool WSF_CALL
  671. AviaryQuery::GetSubmissionIDResponse::resetRemaining()
  672. {
  673. int i = 0;
  674. int count = 0;
  675. isValidRemaining = false;
  676. return true;
  677. }
  678. /**
  679. * Check whether remaining is nill
  680. */
  681. bool WSF_CALL
  682. AviaryQuery::GetSubmissionIDResponse::isRemainingNil()
  683. {
  684. return !isValidRemaining;
  685. }
  686. /**
  687. * Set remaining to nill (currently the same as reset)
  688. */
  689. bool WSF_CALL
  690. AviaryQuery::GetSubmissionIDResponse::setRemainingNil()
  691. {
  692. return resetRemaining();
  693. }