1 17 package org.apache.ws.jaxme.xs.xml.impl; 18 19 import java.util.ArrayList ; 20 import java.util.List ; 21 22 import org.apache.ws.jaxme.xs.xml.*; 23 24 25 76 public class XsGAllModelImpl extends XsTAnnotatedImpl implements XsGAllModel { 77 private List elements; 78 79 protected XsGAllModelImpl(XsObject pParent) { 80 super(pParent); 81 } 82 83 public XsTLocalElement createElement() { 84 XsTLocalElement element = getObjectFactory().newXsTLocalAllElement(this); 85 if (elements == null) { 86 elements = new ArrayList (); 87 } 88 elements.add(element); 89 return element; 90 } 91 92 public XsTLocalElement[] getElements() { 93 if (elements == null) { 94 return new XsTLocalElement[0]; 95 } 96 return (XsTLocalElement[]) elements.toArray(new XsTLocalElement[elements.size()]); 97 } 98 } 99 | Popular Tags |