Multiplicity createMultiplicityInternal(final List<MultiplicityRange> range) { Multiplicity multiplicity = modelImpl.getUmlPackage().getDataTypes().getMultiplicity().createMultiplicity(); LOG.log(Level.FINE, "Multiplicity created for list {0}", range); multiplicity.getRange().addAll(range); super.initialize(multiplicity); return multiplicity; }
Multiplicity createMultiplicityInternal(int lower, int upper) { Multiplicity multiplicity = modelImpl.getUmlPackage().getDataTypes().getMultiplicity().createMultiplicity(); LOG.log(Level.FINE, "Multiplicity created for range {0}.. {1}", new Object[] {lower, upper}); multiplicity.getRange().add(createMultiplicityRange(lower, upper)); super.initialize(multiplicity); return multiplicity; }
/* * TODO: As currently implemented, this expects a list of * MultiplicityRanges. Is this an interface change from the NSUML * implementation? I suspect it used to accept a list of Integers. - tfm * * @see org.argouml.model.DataTypesFactory#createMultiplicity(java.util.List) */ public Multiplicity createMultiplicity(List range) { Multiplicity multiplicity = modelImpl.getUmlPackage().getDataTypes().getMultiplicity().createMultiplicity(); if (LOG.isDebugEnabled()) { LOG.debug("Multiplicity created for list " + range); } multiplicity.getRange().addAll(range); super.initialize(multiplicity); return multiplicity; }
public Multiplicity createMultiplicity(int lower, int upper) { Multiplicity multiplicity = modelImpl.getUmlPackage().getDataTypes().getMultiplicity().createMultiplicity(); if (LOG.isDebugEnabled()) { LOG.debug("Multiplicity created for range " + lower + ".." + upper); } multiplicity.getRange().add(createMultiplicityRange(lower, upper)); super.initialize(multiplicity); return multiplicity; }