@Override public int getChildCount() { return super.getChildCount() + (isSetModel() ? 1 : 0); }
@Override public int getChildCount() { int count = super.getChildCount(); if (isSetSBaseRef()) { count++; } return count; }
@Override public int getChildCount() { return super.getChildCount() + size(); }
@Override public int getChildCount() { return super.getChildCount() + (isSetMath() ? 1 : 0); }
@Override public TreeNode getChildAt(int index) { if (index < 0) { throw new IndexOutOfBoundsException(MessageFormat.format( resourceBundle.getString("IndexSurpassesBoundsException"), index, 0)); } int count = super.getChildCount(); if (index < count) { return super.getChildAt(index); } else { index -= count; } return get(index); }
@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 (isSetMath()) { if (index == pos) { return getMath(); } pos++; } throw new IndexOutOfBoundsException(MessageFormat.format( resourceBundle.getString("IndexExceedsBoundsException"), index, Math.min(pos, 0))); }
@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))); }
@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 (isSetSBaseRef()) { if (pos == index) { return getSBaseRef(); } pos++; } throw new IndexOutOfBoundsException(MessageFormat.format( resourceBundle.getString("IndexExceedsBoundsException"), index, Math.min(pos, 0))); }
@Override public List<String> filterCVTerms(CVTerm.Qualifier qualifier, boolean recursive, String... patterns) { List<String> l = new ArrayList<String>(); for (CVTerm c : filterCVTerms(qualifier)) { l.addAll(c.filterResources(patterns)); } if (recursive) { TreeNode child; for (int i = 0; i < getChildCount(); i++) { child = getChildAt(i); if (child instanceof SBase) { l.addAll( ((SBase) child).filterCVTerms(qualifier, recursive, patterns)); } } } return l; }