/** * Gets the realization of this particle, if any. * * @return * null if the "collection" attribute was not specified. */ public final FieldRenderer getRealization() { Attr a = element.getAttributeNode("collection"); if(a==null) return null; String v = element.getAttribute("collection").trim(); FieldRendererFactory frf = parent.parent.model.options.getFieldRendererFactory(); if(v.equals("array")) return frf.getArray(); if(v.equals("list")) return frf.getList( parent.parent.codeModel.ref(ArrayList.class)); // the correctness of the attribute value must be // checked by the validator. throw new InternalError("unexpected collection value: "+v); }
/** * Gets the realization of this particle, if any. * * @return * null if the "collection" attribute was not specified. */ public final FieldRenderer getRealization() { Attr a = element.getAttributeNode("collection"); if(a==null) return null; String v = element.getAttribute("collection").trim(); FieldRendererFactory frf = parent.parent.model.options.getFieldRendererFactory(); if(v.equals("array")) return frf.getArray(); if(v.equals("list")) return frf.getList( parent.parent.codeModel.ref(ArrayList.class)); // the correctness of the attribute value must be // checked by the validator. throw new InternalError("unexpected collection value: "+v); }
/** * Gets the realization of this particle, if any. * * @return * null if the "collection" attribute was not specified. */ public final FieldRenderer getRealization() { Attr a = element.getAttributeNode("collection"); if(a==null) return null; String v = element.getAttribute("collection").trim(); FieldRendererFactory frf = parent.parent.model.options.getFieldRendererFactory(); if(v.equals("array")) return frf.getArray(); if(v.equals("list")) return frf.getList( parent.parent.codeModel.ref(ArrayList.class)); // the correctness of the attribute value must be // checked by the validator. throw new InternalError("unexpected collection value: "+v); }
/** * Gets the realization of this particle, if any. * * @return * null if the "collection" attribute was not specified. */ public final FieldRenderer getRealization() { Attr a = element.getAttributeNode("collection"); if(a==null) return null; String v = element.getAttribute("collection").trim(); FieldRendererFactory frf = parent.parent.model.options.getFieldRendererFactory(); if(v.equals("array")) return frf.getArray(); if(v.equals("list")) return frf.getList( parent.parent.codeModel.ref(ArrayList.class)); // the correctness of the attribute value must be // checked by the validator. throw new InternalError("unexpected collection value: "+v); }
/** * Gets the realization of this particle, if any. * * @return * null if the "collection" attribute was not specified. */ public final FieldRenderer getRealization() { Attr a = element.getAttributeNode("collection"); if(a==null) return null; String v = element.getAttribute("collection").trim(); FieldRendererFactory frf = parent.parent.model.options.getFieldRendererFactory(); if(v.equals("array")) return frf.getArray(); if(v.equals("list")) return frf.getList( parent.parent.codeModel.ref(ArrayList.class)); // the correctness of the attribute value must be // checked by the validator. throw new InternalError("unexpected collection value: "+v); }
private FieldRenderer calcFr(Model m) { FieldRendererFactory frf = m.options.getFieldRendererFactory(); if (collectionType==null) return frf.getDefault(); if (collectionType.equals("indexed")) return frf.getArray(); return frf.getList(m.codeModel.ref(collectionType)); } }
/** * Gets the realization of this particle, if any. * * @return * null if the "collection" attribute was not specified. */ public final FieldRenderer getRealization() { String v = DOMUtil.getAttribute(element,"collection"); if(v==null) return null; v = v.trim(); if(v.equals("array")) return opts.getFieldRendererFactory().getArray(); if(v.equals("list")) return opts.getFieldRendererFactory().getList( parent.parent.codeModel.ref(ArrayList.class)); // the correctness of the attribute value must be // checked by the validator. throw new InternalError("unexpected collection value: "+v); }
private FieldRenderer calcFr(Model m) { FieldRendererFactory frf = m.options.getFieldRendererFactory(); if (collectionType==null) return frf.getDefault(); if (collectionType.equals("indexed")) return frf.getArray(); return frf.getList(m.codeModel.ref(collectionType)); } }
private FieldRenderer calcFr(Model m) { FieldRendererFactory frf = m.options.getFieldRendererFactory(); if (collectionType==null) return frf.getDefault(); if (collectionType.equals("indexed")) return frf.getArray(); return frf.getList(m.codeModel.ref(collectionType)); } }
/** * Gets the realization of this particle, if any. * * @return * null if the "collection" attribute was not specified. */ public final FieldRenderer getRealization() { String v = DOMUtil.getAttribute(element,"collection"); if(v==null) return null; v = v.trim(); if(v.equals("array")) return opts.getFieldRendererFactory().getArray(); if(v.equals("list")) return opts.getFieldRendererFactory().getList( parent.parent.codeModel.ref(ArrayList.class)); // the correctness of the attribute value must be // checked by the validator. throw new InternalError("unexpected collection value: "+v); }
private FieldRenderer calcFr(Model m) { FieldRendererFactory frf = m.options.getFieldRendererFactory(); if (collectionType==null) return frf.getDefault(); if (collectionType.equals("indexed")) return frf.getArray(); return frf.getList(m.codeModel.ref(collectionType)); } }
/** * Gets the realization of this particle, if any. * * @return * null if the "collection" attribute was not specified. */ public final FieldRenderer getRealization() { String v = DOMUtil.getAttribute(element,"collection"); if(v==null) return null; v = v.trim(); if(v.equals("array")) return opts.getFieldRendererFactory().getArray(); if(v.equals("list")) return opts.getFieldRendererFactory().getList( parent.parent.codeModel.ref(ArrayList.class)); // the correctness of the attribute value must be // checked by the validator. throw new InternalError("unexpected collection value: "+v); }
/** * Gets the realization of this particle, if any. * * @return * null if the "collection" attribute was not specified. */ public final FieldRenderer getRealization() { String v = DOMUtil.getAttribute(element,"collection"); if(v==null) return null; v = v.trim(); if(v.equals("array")) return opts.getFieldRendererFactory().getArray(); if(v.equals("list")) return opts.getFieldRendererFactory().getList( parent.parent.codeModel.ref(ArrayList.class)); // the correctness of the attribute value must be // checked by the validator. throw new InternalError("unexpected collection value: "+v); }
/** * Gets the realization of this particle, if any. * * @return * null if the "collection" attribute was not specified. */ public final FieldRenderer getRealization() { String v = DOMUtil.getAttribute(element,"collection"); if(v==null) return null; v = v.trim(); if(v.equals("array")) return opts.getFieldRendererFactory().getArray(); if(v.equals("list")) return opts.getFieldRendererFactory().getList( parent.parent.codeModel.ref(ArrayList.class)); // the correctness of the attribute value must be // checked by the validator. throw new InternalError("unexpected collection value: "+v); }
private FieldRenderer calcFr(Model m) { FieldRendererFactory frf = m.options.getFieldRendererFactory(); if (collectionType==null) return frf.getDefault(); if (collectionType.equals("indexed")) return frf.getArray(); return frf.getList(m.codeModel.ref(collectionType)); } }
return frf.getList(outline.parent().getCodeModel().ref(ArrayList.class));
return frf.getList(outline.parent().getCodeModel().ref(ArrayList.class));
return frf.getList(outline.parent().getCodeModel().ref(ArrayList.class));
return frf.getList(outline.parent().getCodeModel().ref(ArrayList.class));
return frf.getList(outline.parent().getCodeModel().ref(ArrayList.class));