1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683
|
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.sbml.libsbml;
/**
* Log of errors and other events encountered during SBML
* processing.
<p>
* <p style='color: #777; font-style: italic'>
This class of objects is defined by libSBML only and has no direct
equivalent in terms of SBML components. This class is not prescribed by
the SBML specifications, although it is used to implement features
defined in SBML.
</p>
<p>
* The error log is a list. Each {@link SBMLDocument} maintains its own
* {@link SBMLErrorLog}. When a libSBML operation on SBML content results in an
* error, or when there is something worth noting about the SBML content,
* the issue is reported as an {@link SBMLError} object stored in the {@link SBMLErrorLog}
* list.
<p>
* {@link SBMLErrorLog} is derived from {@link XMLErrorLog}, an object class that serves
* exactly the same purpose but for the XML parsing layer. {@link XMLErrorLog}
* provides crucial methods such as
* {@link XMLErrorLog#getNumErrors()}
* for determining how many {@link SBMLError} or {@link XMLError} objects are in the log.
* {@link SBMLErrorLog} inherits these methods.
<p>
* The general approach to working with {@link SBMLErrorLog} in user programs
* involves first obtaining a pointer to a log from a libSBML object such
* as {@link SBMLDocument}. Callers should then use
* {@link XMLErrorLog#getNumErrors()} to inquire how
* many objects there are in the list. (The answer may be 0.) If there is
* at least one {@link SBMLError} object in the {@link SBMLErrorLog} instance, callers can
* then iterate over the list using
* {@link SBMLErrorLog#getError(long n)},
* using methods provided by the {@link SBMLError} class to find out the error code
* and associated information such as the error severity, the message, and
* the line number in the input.
<p>
* If you wish to simply print the error strings for a human to read, an
* easier and more direct way might be to use {@link SBMLDocument#printErrors()}.
<p>
* @see SBMLError
* @see XMLErrorLog
* @see XMLError
*/
public class SBMLErrorLog extends XMLErrorLog {
private long swigCPtr;
protected SBMLErrorLog(long cPtr, boolean cMemoryOwn)
{
super(libsbmlJNI.SBMLErrorLog_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(SBMLErrorLog obj)
{
return (obj == null) ? 0 : obj.swigCPtr;
}
protected static long getCPtrAndDisown (SBMLErrorLog obj)
{
long ptr = 0;
if (obj != null)
{
ptr = obj.swigCPtr;
obj.swigCMemOwn = false;
}
return ptr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
libsbmlJNI.delete_SBMLErrorLog(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
/**
* Returns the <i>n</i>th {@link SBMLError} object in this log.
<p>
* Index <code>n</code> is counted from 0. Callers should first inquire about the
* number of items in the log by using the
* {@link XMLErrorLog#getNumErrors()} method.
* Attempts to use an error index number that exceeds the actual number
* of errors in the log will result in a <code>null</code> being returned.
<p>
* @param n the index number of the error to retrieve (with 0 being the
* first error).
<p>
* @return the <i>n</i>th {@link SBMLError} in this log, or <code>null</code> if <code>n</code> is
* greater than or equal to
* {@link XMLErrorLog#getNumErrors()}.
<p>
* @see #getNumErrors()
*/ public
SBMLError getError(long n) {
long cPtr = libsbmlJNI.SBMLErrorLog_getError(swigCPtr, this, n);
return (cPtr == 0) ? null : new SBMLError(cPtr, false);
}
/**
* Returns the number of errors that have been logged with the given
* severity code.
<p>
* <p>
* LibSBML associates severity levels with every {@link SBMLError} object to
* provide an indication of how serious the problem is. Severities range
* from informational diagnostics to fatal (irrecoverable) errors. Given
* an {@link SBMLError} object instance, a caller can interrogate it for its
* severity level using methods such as {@link SBMLError#getSeverity()},
* {@link SBMLError#isFatal()}, and so on. The present method encapsulates
* iteration and interrogation of all objects in an {@link SBMLErrorLog}, making
* it easy to check for the presence of error objects with specific
* severity levels.
<p>
* @param severity a
* value from the set of <code>LIBSBML_SEV_</code> constants defined by
* the interface class <code><a
* href='libsbmlConstants.html'>libsbmlConstants</a></code>
<p>
* @return a count of the number of errors with the given severity code.
<p>
* @see #getNumErrors()
*/ public
long getNumFailsWithSeverity(long severity) {
return libsbmlJNI.SBMLErrorLog_getNumFailsWithSeverity__SWIG_0(swigCPtr, this, severity);
}
/**
* Creates a new, empty {@link SBMLErrorLog}.
* @internal
*/ public
SBMLErrorLog() {
this(libsbmlJNI.new_SBMLErrorLog__SWIG_0(), true);
}
/**
* Copy Constructor
* @internal
*/ public
SBMLErrorLog(SBMLErrorLog other) {
this(libsbmlJNI.new_SBMLErrorLog__SWIG_1(SBMLErrorLog.getCPtr(other), other), true);
}
/**
* Convenience function that combines creating an {@link SBMLError} object and
* adding it to the log.
<p>
* @param errorId a long integer, the identification number of the error.
<p>
* @param level a long integer, the SBML Level
<p>
* @param version a long integer, the SBML Level's Version
<p>
* @param details a string containing additional details about the error.
* If the error code in <code>errorId</code> is one that is recognized by {@link SBMLError},
* the given message is <em>appended</em> to a predefined message associated
* with the given code. If the error code is not recognized, the message
* is stored as-is as the text of the error.
<p>
* @param line a long integer, the line number at which the error occured.
<p>
* @param column a long integer, the column number at which the error occured.
<p>
* @param severity an integer indicating severity of the error.
<p>
* @param category an integer indicating the category to which the error
* belongs.
<p>
*
</dl><dl class="docnote"><dt><b>Documentation note:</b></dt><dd>
The native C++ implementation of this method defines a default argument
value. In the documentation generated for different libSBML language
bindings, you may or may not see corresponding arguments in the method
declarations. For example, in Java and C#, a default argument is handled by
declaring two separate methods, with one of them having the argument and
the other one lacking the argument. However, the libSBML documentation will
be <em>identical</em> for both methods. Consequently, if you are reading
this and do not see an argument even though one is described, please look
for descriptions of other variants of this method near where this one
appears in the documentation.
</dd></dl>
* @internal
*/ public
void logError(long errorId, long level, long version, String details, long line, long column, long severity, long category) {
libsbmlJNI.SBMLErrorLog_logError__SWIG_0(swigCPtr, this, errorId, level, version, details, line, column, severity, category);
}
/**
* Convenience function that combines creating an {@link SBMLError} object and
* adding it to the log.
<p>
* @param errorId a long integer, the identification number of the error.
<p>
* @param level a long integer, the SBML Level
<p>
* @param version a long integer, the SBML Level's Version
<p>
* @param details a string containing additional details about the error.
* If the error code in <code>errorId</code> is one that is recognized by {@link SBMLError},
* the given message is <em>appended</em> to a predefined message associated
* with the given code. If the error code is not recognized, the message
* is stored as-is as the text of the error.
<p>
* @param line a long integer, the line number at which the error occured.
<p>
* @param column a long integer, the column number at which the error occured.
<p>
* @param severity an integer indicating severity of the error.
<p>
* @param category an integer indicating the category to which the error
* belongs.
<p>
*
</dl><dl class="docnote"><dt><b>Documentation note:</b></dt><dd>
The native C++ implementation of this method defines a default argument
value. In the documentation generated for different libSBML language
bindings, you may or may not see corresponding arguments in the method
declarations. For example, in Java and C#, a default argument is handled by
declaring two separate methods, with one of them having the argument and
the other one lacking the argument. However, the libSBML documentation will
be <em>identical</em> for both methods. Consequently, if you are reading
this and do not see an argument even though one is described, please look
for descriptions of other variants of this method near where this one
appears in the documentation.
</dd></dl>
* @internal
*/ public
void logError(long errorId, long level, long version, String details, long line, long column, long severity) {
libsbmlJNI.SBMLErrorLog_logError__SWIG_1(swigCPtr, this, errorId, level, version, details, line, column, severity);
}
/**
* Convenience function that combines creating an {@link SBMLError} object and
* adding it to the log.
<p>
* @param errorId a long integer, the identification number of the error.
<p>
* @param level a long integer, the SBML Level
<p>
* @param version a long integer, the SBML Level's Version
<p>
* @param details a string containing additional details about the error.
* If the error code in <code>errorId</code> is one that is recognized by {@link SBMLError},
* the given message is <em>appended</em> to a predefined message associated
* with the given code. If the error code is not recognized, the message
* is stored as-is as the text of the error.
<p>
* @param line a long integer, the line number at which the error occured.
<p>
* @param column a long integer, the column number at which the error occured.
<p>
* @param severity an integer indicating severity of the error.
<p>
* @param category an integer indicating the category to which the error
* belongs.
<p>
*
</dl><dl class="docnote"><dt><b>Documentation note:</b></dt><dd>
The native C++ implementation of this method defines a default argument
value. In the documentation generated for different libSBML language
bindings, you may or may not see corresponding arguments in the method
declarations. For example, in Java and C#, a default argument is handled by
declaring two separate methods, with one of them having the argument and
the other one lacking the argument. However, the libSBML documentation will
be <em>identical</em> for both methods. Consequently, if you are reading
this and do not see an argument even though one is described, please look
for descriptions of other variants of this method near where this one
appears in the documentation.
</dd></dl>
* @internal
*/ public
void logError(long errorId, long level, long version, String details, long line, long column) {
libsbmlJNI.SBMLErrorLog_logError__SWIG_2(swigCPtr, this, errorId, level, version, details, line, column);
}
/**
* Convenience function that combines creating an {@link SBMLError} object and
* adding it to the log.
<p>
* @param errorId a long integer, the identification number of the error.
<p>
* @param level a long integer, the SBML Level
<p>
* @param version a long integer, the SBML Level's Version
<p>
* @param details a string containing additional details about the error.
* If the error code in <code>errorId</code> is one that is recognized by {@link SBMLError},
* the given message is <em>appended</em> to a predefined message associated
* with the given code. If the error code is not recognized, the message
* is stored as-is as the text of the error.
<p>
* @param line a long integer, the line number at which the error occured.
<p>
* @param column a long integer, the column number at which the error occured.
<p>
* @param severity an integer indicating severity of the error.
<p>
* @param category an integer indicating the category to which the error
* belongs.
<p>
*
</dl><dl class="docnote"><dt><b>Documentation note:</b></dt><dd>
The native C++ implementation of this method defines a default argument
value. In the documentation generated for different libSBML language
bindings, you may or may not see corresponding arguments in the method
declarations. For example, in Java and C#, a default argument is handled by
declaring two separate methods, with one of them having the argument and
the other one lacking the argument. However, the libSBML documentation will
be <em>identical</em> for both methods. Consequently, if you are reading
this and do not see an argument even though one is described, please look
for descriptions of other variants of this method near where this one
appears in the documentation.
</dd></dl>
* @internal
*/ public
void logError(long errorId, long level, long version, String details, long line) {
libsbmlJNI.SBMLErrorLog_logError__SWIG_3(swigCPtr, this, errorId, level, version, details, line);
}
/**
* Convenience function that combines creating an {@link SBMLError} object and
* adding it to the log.
<p>
* @param errorId a long integer, the identification number of the error.
<p>
* @param level a long integer, the SBML Level
<p>
* @param version a long integer, the SBML Level's Version
<p>
* @param details a string containing additional details about the error.
* If the error code in <code>errorId</code> is one that is recognized by {@link SBMLError},
* the given message is <em>appended</em> to a predefined message associated
* with the given code. If the error code is not recognized, the message
* is stored as-is as the text of the error.
<p>
* @param line a long integer, the line number at which the error occured.
<p>
* @param column a long integer, the column number at which the error occured.
<p>
* @param severity an integer indicating severity of the error.
<p>
* @param category an integer indicating the category to which the error
* belongs.
<p>
*
</dl><dl class="docnote"><dt><b>Documentation note:</b></dt><dd>
The native C++ implementation of this method defines a default argument
value. In the documentation generated for different libSBML language
bindings, you may or may not see corresponding arguments in the method
declarations. For example, in Java and C#, a default argument is handled by
declaring two separate methods, with one of them having the argument and
the other one lacking the argument. However, the libSBML documentation will
be <em>identical</em> for both methods. Consequently, if you are reading
this and do not see an argument even though one is described, please look
for descriptions of other variants of this method near where this one
appears in the documentation.
</dd></dl>
* @internal
*/ public
void logError(long errorId, long level, long version, String details) {
libsbmlJNI.SBMLErrorLog_logError__SWIG_4(swigCPtr, this, errorId, level, version, details);
}
/**
* Convenience function that combines creating an {@link SBMLError} object and
* adding it to the log.
<p>
* @param errorId a long integer, the identification number of the error.
<p>
* @param level a long integer, the SBML Level
<p>
* @param version a long integer, the SBML Level's Version
<p>
* @param details a string containing additional details about the error.
* If the error code in <code>errorId</code> is one that is recognized by {@link SBMLError},
* the given message is <em>appended</em> to a predefined message associated
* with the given code. If the error code is not recognized, the message
* is stored as-is as the text of the error.
<p>
* @param line a long integer, the line number at which the error occured.
<p>
* @param column a long integer, the column number at which the error occured.
<p>
* @param severity an integer indicating severity of the error.
<p>
* @param category an integer indicating the category to which the error
* belongs.
<p>
*
</dl><dl class="docnote"><dt><b>Documentation note:</b></dt><dd>
The native C++ implementation of this method defines a default argument
value. In the documentation generated for different libSBML language
bindings, you may or may not see corresponding arguments in the method
declarations. For example, in Java and C#, a default argument is handled by
declaring two separate methods, with one of them having the argument and
the other one lacking the argument. However, the libSBML documentation will
be <em>identical</em> for both methods. Consequently, if you are reading
this and do not see an argument even though one is described, please look
for descriptions of other variants of this method near where this one
appears in the documentation.
</dd></dl>
* @internal
*/ public
void logError(long errorId, long level, long version) {
libsbmlJNI.SBMLErrorLog_logError__SWIG_5(swigCPtr, this, errorId, level, version);
}
/**
* Convenience function that combines creating an {@link SBMLError} object and
* adding it to the log.
<p>
* @param errorId a long integer, the identification number of the error.
<p>
* @param level a long integer, the SBML Level
<p>
* @param version a long integer, the SBML Level's Version
<p>
* @param details a string containing additional details about the error.
* If the error code in <code>errorId</code> is one that is recognized by {@link SBMLError},
* the given message is <em>appended</em> to a predefined message associated
* with the given code. If the error code is not recognized, the message
* is stored as-is as the text of the error.
<p>
* @param line a long integer, the line number at which the error occured.
<p>
* @param column a long integer, the column number at which the error occured.
<p>
* @param severity an integer indicating severity of the error.
<p>
* @param category an integer indicating the category to which the error
* belongs.
<p>
*
</dl><dl class="docnote"><dt><b>Documentation note:</b></dt><dd>
The native C++ implementation of this method defines a default argument
value. In the documentation generated for different libSBML language
bindings, you may or may not see corresponding arguments in the method
declarations. For example, in Java and C#, a default argument is handled by
declaring two separate methods, with one of them having the argument and
the other one lacking the argument. However, the libSBML documentation will
be <em>identical</em> for both methods. Consequently, if you are reading
this and do not see an argument even though one is described, please look
for descriptions of other variants of this method near where this one
appears in the documentation.
</dd></dl>
* @internal
*/ public
void logError(long errorId, long level) {
libsbmlJNI.SBMLErrorLog_logError__SWIG_6(swigCPtr, this, errorId, level);
}
/**
* Convenience function that combines creating an {@link SBMLError} object and
* adding it to the log.
<p>
* @param errorId a long integer, the identification number of the error.
<p>
* @param level a long integer, the SBML Level
<p>
* @param version a long integer, the SBML Level's Version
<p>
* @param details a string containing additional details about the error.
* If the error code in <code>errorId</code> is one that is recognized by {@link SBMLError},
* the given message is <em>appended</em> to a predefined message associated
* with the given code. If the error code is not recognized, the message
* is stored as-is as the text of the error.
<p>
* @param line a long integer, the line number at which the error occured.
<p>
* @param column a long integer, the column number at which the error occured.
<p>
* @param severity an integer indicating severity of the error.
<p>
* @param category an integer indicating the category to which the error
* belongs.
<p>
*
</dl><dl class="docnote"><dt><b>Documentation note:</b></dt><dd>
The native C++ implementation of this method defines a default argument
value. In the documentation generated for different libSBML language
bindings, you may or may not see corresponding arguments in the method
declarations. For example, in Java and C#, a default argument is handled by
declaring two separate methods, with one of them having the argument and
the other one lacking the argument. However, the libSBML documentation will
be <em>identical</em> for both methods. Consequently, if you are reading
this and do not see an argument even though one is described, please look
for descriptions of other variants of this method near where this one
appears in the documentation.
</dd></dl>
* @internal
*/ public
void logError(long errorId) {
libsbmlJNI.SBMLErrorLog_logError__SWIG_7(swigCPtr, this, errorId);
}
/**
* Convenience function that combines creating an {@link SBMLError} object and
* adding it to the log.
<p>
* @param errorId a long integer, the identification number of the error.
<p>
* @param level a long integer, the SBML Level
<p>
* @param version a long integer, the SBML Level's Version
<p>
* @param details a string containing additional details about the error.
* If the error code in <code>errorId</code> is one that is recognized by {@link SBMLError},
* the given message is <em>appended</em> to a predefined message associated
* with the given code. If the error code is not recognized, the message
* is stored as-is as the text of the error.
<p>
* @param line a long integer, the line number at which the error occured.
<p>
* @param column a long integer, the column number at which the error occured.
<p>
* @param severity an integer indicating severity of the error.
<p>
* @param category an integer indicating the category to which the error
* belongs.
<p>
*
</dl><dl class="docnote"><dt><b>Documentation note:</b></dt><dd>
The native C++ implementation of this method defines a default argument
value. In the documentation generated for different libSBML language
bindings, you may or may not see corresponding arguments in the method
declarations. For example, in Java and C#, a default argument is handled by
declaring two separate methods, with one of them having the argument and
the other one lacking the argument. However, the libSBML documentation will
be <em>identical</em> for both methods. Consequently, if you are reading
this and do not see an argument even though one is described, please look
for descriptions of other variants of this method near where this one
appears in the documentation.
</dd></dl>
* @internal
*/ public
void logError() {
libsbmlJNI.SBMLErrorLog_logError__SWIG_8(swigCPtr, this);
}
/** * @internal */ public
void logPackageError(String arg0, long errorId, long pkgVersion, long level, long version, String details, long line, long column, long severity, long category) {
libsbmlJNI.SBMLErrorLog_logPackageError__SWIG_0(swigCPtr, this, arg0, errorId, pkgVersion, level, version, details, line, column, severity, category);
}
/** * @internal */ public
void logPackageError(String arg0, long errorId, long pkgVersion, long level, long version, String details, long line, long column, long severity) {
libsbmlJNI.SBMLErrorLog_logPackageError__SWIG_1(swigCPtr, this, arg0, errorId, pkgVersion, level, version, details, line, column, severity);
}
/** * @internal */ public
void logPackageError(String arg0, long errorId, long pkgVersion, long level, long version, String details, long line, long column) {
libsbmlJNI.SBMLErrorLog_logPackageError__SWIG_2(swigCPtr, this, arg0, errorId, pkgVersion, level, version, details, line, column);
}
/** * @internal */ public
void logPackageError(String arg0, long errorId, long pkgVersion, long level, long version, String details, long line) {
libsbmlJNI.SBMLErrorLog_logPackageError__SWIG_3(swigCPtr, this, arg0, errorId, pkgVersion, level, version, details, line);
}
/** * @internal */ public
void logPackageError(String arg0, long errorId, long pkgVersion, long level, long version, String details) {
libsbmlJNI.SBMLErrorLog_logPackageError__SWIG_4(swigCPtr, this, arg0, errorId, pkgVersion, level, version, details);
}
/** * @internal */ public
void logPackageError(String arg0, long errorId, long pkgVersion, long level, long version) {
libsbmlJNI.SBMLErrorLog_logPackageError__SWIG_5(swigCPtr, this, arg0, errorId, pkgVersion, level, version);
}
/** * @internal */ public
void logPackageError(String arg0, long errorId, long pkgVersion, long level) {
libsbmlJNI.SBMLErrorLog_logPackageError__SWIG_6(swigCPtr, this, arg0, errorId, pkgVersion, level);
}
/** * @internal */ public
void logPackageError(String arg0, long errorId, long pkgVersion) {
libsbmlJNI.SBMLErrorLog_logPackageError__SWIG_7(swigCPtr, this, arg0, errorId, pkgVersion);
}
/** * @internal */ public
void logPackageError(String arg0, long errorId) {
libsbmlJNI.SBMLErrorLog_logPackageError__SWIG_8(swigCPtr, this, arg0, errorId);
}
/** * @internal */ public
void logPackageError(String arg0) {
libsbmlJNI.SBMLErrorLog_logPackageError__SWIG_9(swigCPtr, this, arg0);
}
/** * @internal */ public
void logPackageError() {
libsbmlJNI.SBMLErrorLog_logPackageError__SWIG_10(swigCPtr, this);
}
/**
* Adds the given {@link SBMLError} to the log.
<p>
* @param error {@link SBMLError}, the error to be logged.
* @internal
*/ public
void add(SBMLError error) {
libsbmlJNI.SBMLErrorLog_add(swigCPtr, this, SBMLError.getCPtr(error), error);
}
/**
* Removes an error having errorId from the {@link SBMLError} list.
<p>
* Only the first item will be removed if there are multiple errors
* with the given errorId.
<p>
* @param errorId the error identifier of the error to be removed.
*/ public
void remove(long errorId) {
libsbmlJNI.SBMLErrorLog_remove(swigCPtr, this, errorId);
}
/**
* Returns true if {@link SBMLErrorLog} contains an errorId
<p>
* @param errorId the error identifier of the error to be found.
*/ public
boolean contains(long errorId) {
return libsbmlJNI.SBMLErrorLog_contains(swigCPtr, this, errorId);
}
}
|