org.sbml.jsbml
public class LevelVersionError extends SBMLError
SBMLError that indicates that associated instances of
SBase cannot be combined within the same model due to their
differently set Level or Version attribute.SBMLError.SEVERITY| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LEVEL_MISMATCH_MSG
Message to display in cases that two objects do not have identical level
attributes.
|
private static long |
serialVersionUID
Generated serial version identifier.
|
static java.lang.String |
UNDEFINED_LEVEL_VERSION_COMBINATION_MSG
Message to indicate that an invalid combination of the level and version
attribute has been set.
|
static java.lang.String |
VERSION_MISMATCH_MSG
Message to display in cases that two objects do not have identical
version attributes.
|
| Constructor and Description |
|---|
LevelVersionError(int level,
int version) |
LevelVersionError(SBase sbase) |
LevelVersionError(SBase element1,
SBase element2) |
LevelVersionError(java.lang.String elementName,
int level,
int version) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
levelMismatchMessage(SBase element1,
SBase element2)
Creates an error message if the level fields of both elements are not
identical, or an empty
String otherwise. |
java.lang.String |
toString() |
static java.lang.String |
versionMismatchMessage(SBase element1,
SBase element2)
Creates an error message if the version fields of both elements are not
identical, or an empty
String otherwise. |
getCategory, getCode, getColumn, getDetail, getExcerpt, getLine, getMessage, getMessageInstance, getPackage, getSeverity, getShortMessage, isError, isFatal, isInfo, isInternal, isSystem, isWarning, isXML, setCategory, setCode, setColumn, setDetail, setExcerpt, setLine, setMessage, setPackage, setSeverity, setShortMessagegetErrorIdpublic static final java.lang.String LEVEL_MISMATCH_MSG
private static final long serialVersionUID
public static final java.lang.String UNDEFINED_LEVEL_VERSION_COMBINATION_MSG
public static final java.lang.String VERSION_MISMATCH_MSG
public LevelVersionError(SBase sbase)
sbase - public LevelVersionError(int level,
int version)
level - version - public LevelVersionError(java.lang.String elementName,
int level,
int version)
elementName - level - version - public static java.lang.String levelMismatchMessage(SBase element1, SBase element2)
String otherwise.element1 - element2 - public static java.lang.String versionMismatchMessage(SBase element1, SBase element2)
String otherwise.element1 - element2 -