/** * Create a CDvQuantity that would allow any DV_QUANTITY value * @param path * @return */ public static CDvQuantity anyAllowed(String path) { Interval<Integer> occurrences = new Interval<Integer>(1,1); return new CDvQuantity(path, occurrences, null); }
/** * Create a CDvQuantity that would allow any DV_QUANTITY value * @param path * @return */ public static CDvQuantity anyAllowed(String path) { Interval<Integer> occurrences = new Interval<Integer>(1,1); return new CDvQuantity(path, occurrences, null); }
/** * Create a required CDvQuantity with a single item * * @param path * @param item not null */ public static CDvQuantity singleRequired(String path, CDvQuantityItem item) { if(item == null) { throw new IllegalArgumentException("item null"); } Interval<Integer> occurrences = new Interval<Integer>(1,1); List<CDvQuantityItem> list = new ArrayList<CDvQuantityItem>(); list.add(item); return new CDvQuantity(path, occurrences, list); }
/** * Create a required CDvQuantity with a single item * * @param path * @param item not null */ public static CDvQuantity singleRequired(String path, CDvQuantityItem item) { if(item == null) { throw new IllegalArgumentException("item null"); } Interval<Integer> occurrences = new Interval<Integer>(1,1); List<CDvQuantityItem> list = new ArrayList<CDvQuantityItem>(); list.add(item); return new CDvQuantity(path, occurrences, list); }
public CDvQuantity copy() { return new CDvQuantity(path(), getOccurrences(), getNodeId(), getParent(), list, property, getDefaultValue(), getAssumedValue()); }
public CDvQuantity copy() { return new CDvQuantity(path(), getOccurrences(), getNodeId(), getParent(), list, property, getDefaultValue(), getAssumedValue()); }
{ token_source.SwitchTo(CADL); } {if (true) return new CDvQuantity(path, occurrences, null, parent, list, property, defaultValue, assumedValue);} throw new Error("Missing return statement in function");
{ token_source.SwitchTo(CADL); } {if (true) return new CDvQuantity(path, occurrences, null, parent, list, property, defaultValue, assumedValue);} throw new Error("Missing return statement in function");