@Override public int getChildCount() { return super.getChildCount() + (isSetModel() ? 1 : 0); }
/** * * @return */ public Model getModel() { return doc.isSetModel() ? doc.getModel() : doc.createModel(); }
@Override public TreeNode getChildAt(int index) { if (index < 0) { throw new IndexOutOfBoundsException(MessageFormat.format( resourceBundle.getString("IndexSurpassesBoundsException"), index, 0)); } int count = super.getChildCount(), pos = 0; if (index < count) { return super.getChildAt(index); } else { index -= count; } if (isSetModel()) { if (pos == index) { return getModel(); } } throw new IndexOutOfBoundsException(MessageFormat.format( resourceBundle.getString("IndexExceedsBoundsException"), index, Math.min(pos, 0))); }
if (sb.isSetModel()) {
if (isSetModel() && getModel().getFunctionDefinitionCount() > 0) { ExpandFunctionDefinitionConverter converter = new ExpandFunctionDefinitionConverter(); docToValidate = converter.convert(this);
this.externalModelDefinitionListOf = compSBMLDocumentPlugin.getListOfExternalModelDefinitions(); if (document.isSetModel() && document.getModel().getExtension(CompConstants.shortLabel) != null) {
if (sbmlDocument.isSetModel()) { Model model = sbmlDocument.getModel();