summaryrefslogblamecommitdiffstats
path: root/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/web/VmChooserListXml.java
blob: 47ca0e1e72e5b75f6f156168536fc1bb2b6c4691 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                                 
                           








                                                     
                                                









                                                              

 
package org.openslx.bwlp.sat.web;

import java.util.ArrayList;
import java.util.List;

import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

@Root(name = "settings")
public class VmChooserListXml {

	@ElementList(inline = true, name = "eintrag")
	private List<VmChooserEntryXml> entries;

	public VmChooserListXml(boolean createEmptyList) {
		if (createEmptyList) {
			entries = new ArrayList<>();
		}
	}

	public void add(VmChooserEntryXml vmChooserEntryXml) {
		entries.add(vmChooserEntryXml);
	}

}