/** * Returns the number of {@link UnitDefinition}s of this {@link Model}. * * @return the number of {@link UnitDefinition}s of this {@link Model}. */ public int getUnitDefinitionCount() { return isSetListOfUnitDefinitions() ? listOfUnitDefinitions.size() : 0; }
/** * Returns the number of {@link Unit}s of this {@link Model}. * * @return the number of {@link Unit}s of this {@link Model}. */ public int getUnitCount() { int count = 0; if (isSetListOfUnitDefinitions()) { for (UnitDefinition ud : getListOfUnitDefinitions()) { count += ud.getUnitCount(); } } return count; }
@Override public boolean check(ValidationContext ctx, Model m) { if (m.isSetListOfUnitDefinitions() || m.isListOfUnitDefinitionEmpty()) { return new UnknownAttributeValidationFunction<TreeNodeWithChangeSupport>().check(ctx, m.getListOfUnitDefinitions()); } return true; } };
@Override public boolean check(ValidationContext ctx, Model m) { if (m.isSetListOfUnitDefinitions() || m.isListOfUnitDefinitionEmpty()) { return new UnknownElementValidationFunction<TreeNodeWithChangeSupport>().check(ctx, m.getListOfUnitDefinitions()); } return true; } };
Model m = getModel(); if (m != null) { UnitDefinition u = m.isSetListOfUnitDefinitions() ? m.findIdentical(ud) : null; return (u != null) ? u : ud;
UnitDefinition ud = model.isSetListOfUnitDefinitions() ? model.findIdentical(derivedUD) : null; if (ud != null) { return ud;
model.getListOfFunctionDefinitions().clone()); if (model.isSetListOfUnitDefinitions()) { setListOfUnitDefinitions(model.getListOfUnitDefinitions().clone());