// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
package test;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="t1array")
public class T1Array {
    private T1[] t1array;
    public T1Array() {
        this(new T1[0]);
    }
    public T1Array(T1[] array) {
        this.t1array = array;
    }
    @XmlElements(@XmlElement(name="t1",type=T1.class))
    public T1[] getArray(){
        return t1array;
    }
    public void setArray(T1[] array) {
        this.t1array = array;
    }
}
