this.selectedNamedChildElementName = selectedNamedChildElementName;
}
public SelectItem[] getNamedChildElementTypesItems() {
List items = new ArrayList();
ElementType defaultElementType = this.element.getDefaultElementType();
if (defaultElementType != null) {
//SelectItem item = new SelectItem(defaultElementType.getType(), defaultElementType.getName());
SelectItem item = new SelectItem(defaultElementType.getName(), defaultElementType.getName());
items.add(item);
}
List objects = this.getNamedChildElementTypes();
for (Iterator it = objects.iterator(); it.hasNext(); ) {
ElementType elementType = (ElementType) it.next();
//SelectItem item = new SelectItem("" + elementType.getType(), "" + elementType.getName());
SelectItem item = new SelectItem(elementType.getName(), elementType.getName());
items.add(item);
}
return (SelectItem[]) items.toArray(new SelectItem[items.size()]);
}