public StatementBundle addStatement(StatementBundleConfiguration config) { StatementBundle sb1 = config.getStatementBundle(); StatementBundle sb = (StatementBundle) sb1.clone(false); statements.put(sb, config); sortedStatements.add(sb); if (!configurations.containsKey(config)) addConfiguration(config); Vector stments = (Vector) configurations.get(config); stments.add(sb); return (sb); }
public void addConfiguration(StatementBundleConfiguration config) { if (!configurations.containsKey(config)) configurations.put(config, new Vector()); }