/** Remove a column pair from the holder. * @param pair the column pair to remove * @throws ModelException if impossible */ public void removeColumnPair (ColumnPairElement pair) throws ModelException { removeColumnPairs(new ColumnPairElement[]{pair}); }
/** Remove a column pair from the holder. * @param pair the column pair to remove * @throws ModelException if impossible */ public void removeColumnPair (ColumnPairElement pair) throws ModelException { removeColumnPairs(new ColumnPairElement[]{pair}); }
/** Remove a column pair from the holder. This method can be used to * remove a pair by name when it cannot be resolved to an actual pair. * @param pairName the relative name of the column pair to remove * @throws ModelException if impossible */ public void removeColumnPair (String pairName) throws ModelException { ArrayList pairNames = new ArrayList(1); pairNames.add(pairName); removeColumnPairs(pairNames); }
/** Remove a column pair from the holder. This method can be used to * remove a pair by name when it cannot be resolved to an actual pair. * @param pairName the relative name of the column pair to remove * @throws ModelException if impossible */ public void removeColumnPair (String pairName) throws ModelException { ArrayList pairNames = new ArrayList(1); pairNames.add(pairName); removeColumnPairs(pairNames); }
/** Set the column pairs for this holder. * Previous column pairs are removed. * @param pairs the new column pairs * @throws ModelException if impossible */ public void setColumnPairs (ColumnPairElement[] pairs) throws ModelException { removeColumnPairs(getColumnPairNames()); // remove the old ones addColumnPairs(pairs); // add the new ones }
/** Set the column pairs for this holder. * Previous column pairs are removed. * @param pairs the new column pairs * @throws ModelException if impossible */ public void setColumnPairs (ColumnPairElement[] pairs) throws ModelException { removeColumnPairs(getColumnPairNames()); // remove the old ones addColumnPairs(pairs); // add the new ones }
/** Remove some column pairs from the holder. * @param pairs the column pairs to remove * @throws ModelException if impossible */ public void removeColumnPairs (ColumnPairElement[] pairs) throws ModelException { ArrayList pairNames = new ArrayList(); int i, count = ((pairs != null) ? pairs.length : 0); for (i = 0; i < count ; i++) { ColumnPairElement pair = (ColumnPairElement)pairs[i]; pairNames.add(NameUtil.getRelativeMemberName( pair.getName().getFullName())); } removeColumnPairs(pairNames); }
/** Remove some column pairs from the holder. * @param pairs the column pairs to remove * @throws ModelException if impossible */ public void removeColumnPairs (ColumnPairElement[] pairs) throws ModelException { ArrayList pairNames = new ArrayList(); int i, count = ((pairs != null) ? pairs.length : 0); for (i = 0; i < count ; i++) { ColumnPairElement pair = (ColumnPairElement)pairs[i]; pairNames.add(NameUtil.getRelativeMemberName( pair.getName().getFullName())); } removeColumnPairs(pairNames); }