Object bindPrimitiveBlock(PrimitiveObjectBlock block) throws DADLBindingException { if (block.getSimpleValue() != null) { return block.getSimpleValue().getValue(); } else if (block.getSimpleListValue() != null) { List<SimpleValue> values = block.getSimpleListValue(); List list = new ArrayList(values.size()); for (SimpleValue sv : values) { list.add(sv.getValue()); } return list; } else if (block.getSimpleIntervalValue() != null) { return null; } else if (block.getTermCode() != null) { return block.getTermCode(); } else if (block.getTermCodeListValue() != null) { return block.getTermCodeListValue(); } else { throw new DADLBindingException("empty block"); } }
{if (true) return new PrimitiveObjectBlock(type, simpleValue, simpleListValue, simpleIntervalValue, termCode, termCodeList);} throw new Error("Missing return statement in function");
{if (true) return new PrimitiveObjectBlock(type, simpleValue, simpleListValue, simpleIntervalValue, termCode, termCodeList);} throw new Error("Missing return statement in function");
Object bindPrimitiveBlock(PrimitiveObjectBlock block) throws DADLBindingException { if (block.getSimpleValue() != null) { return block.getSimpleValue().getValue(); } else if (block.getSimpleListValue() != null) { List<SimpleValue> values = block.getSimpleListValue(); List list = new ArrayList(values.size()); for (SimpleValue sv : values) { list.add(sv.getValue()); } return list; } else if (block.getSimpleIntervalValue() != null) { return null; } else if (block.getTermCode() != null) { return block.getTermCode(); } else if (block.getTermCodeListValue() != null) { return block.getTermCodeListValue(); } else { throw new DADLBindingException("empty block"); } }
private Object bindPrimitiveBlock(PrimitiveObjectBlock block) throws BindingException { if (block.getSimpleValue() != null) { return block.getSimpleValue().getValue(); } else if (block.getSimpleListValue() != null) { List<SimpleValue> values = block.getSimpleListValue(); List list = new ArrayList(values.size()); for (SimpleValue sv : values) { list.add(sv.getValue()); } return list; } else if (block.getSimpleIntervalValue() != null) { // TODO return null; } else if (block.getTermCode() != null) { return block.getTermCode(); } else if (block.getTermCodeListValue() != null) { return block.getTermCodeListValue(); } else { throw new BindingException("empty block"); } }