package com.peterphi.servicemanager.service.rest.resource.type;

import com.peterphi.std.util.jaxb.JAXBSerialiser;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "ProvisionResourceParameters")
@XmlType(name = "ProvisionResourceParameters")
public class ProvisionResourceParametersDTO
{
	@XmlElementWrapper(name = "metadata")
	@XmlElement(name = "kvp")
	public List<ResourceKVP> metadata = new ArrayList(0);


	public static void main(String[] args) throws Exception
	{
		System.out.println(JAXBSerialiser.getInstance(ProvisionResourceParametersDTO.class)
		                                 .serialise(new ProvisionResourceParametersDTO()));
	}
}

@@ -62,59 +62,8 @@
 e;%0A%0A
-import com.peterphi.std.util.jaxb.JAXBSerialiser;%0A%0A
 impo
@@ -565,248 +565,13 @@
 List
+%3C%3E
 (0);%0A
-%0A%0A%09public static void main(String%5B%5D args) throws Exception%0A%09%7B%0A%09%09System.out.println(JAXBSerialiser.getInstance(ProvisionResourceParametersDTO.class)%0A%09%09                                 .serialise(new ProvisionResourceParametersDTO()));%0A%09%7D%0A
 %7D%0A

Remove debug code to print example provision XML