From d6319dd0d8d7d6684f4b7a7a04c2b38623b07c43 Mon Sep 17 00:00:00 2001 From: "minkee.lee" Date: Mon, 3 Aug 2015 14:57:47 +0900 Subject: [PATCH] template: preparing template version 2. - Added new schema & java class. - Introduced template loader & template. Change-Id: I5078610ede385a9a68ec4df13599ec135524485f Signed-off-by: minkee.lee --- .../manager/vms/xml/template2/Information.java | 127 +++++++++++ .../emulator/manager/vms/xml/template2/Item.java | 196 ++++++++++++++++ .../manager/vms/xml/template2/ItemGroup.java | 106 +++++++++ .../manager/vms/xml/template2/ItemList2.java | 131 +++++++++++ .../manager/vms/xml/template2/ObjectFactory.java | 79 +++++++ .../emulator/manager/vms/xml/template2/Option.java | 128 +++++++++++ .../manager/vms/xml/template2/package-info.java | 9 + .../tizen/emulator/manager/platform/BaseImage.java | 14 +- .../tizen/emulator/manager/platform/Platform.java | 134 ++++------- .../tizen/emulator/manager/platform/Profile.java | 2 +- .../manager/resources/FilePathResources.java | 7 + .../CustomPropertyTemplateLoader.java | 8 +- .../tizen/emulator/manager/template/ITemplate.java | 46 ++++ .../tizen/emulator/manager/template/Template1.java | 110 +++++++++ .../tizen/emulator/manager/template/Template2.java | 99 ++++++++ .../emulator/manager/template/TemplateLoader.java | 184 +++++++++++++++ src/org/tizen/emulator/manager/ui/VMsMainView.java | 4 +- .../emulator/manager/ui/detail/DetailViewPage.java | 10 +- .../emulator/manager/ui/detail/PInfoViewPage.java | 60 ++--- .../manager/ui/detail/PModifyViewPage.java | 57 ++--- .../ui/detail/item/property/BaseImageViewItem.java | 2 +- .../loader/CustomPropertyTemplateLoader.java | 248 --------------------- .../emulator/manager/ui/list/TreeListView.java | 2 +- .../emulator/manager/vms/VMPropertyValue.java | 4 +- xsd/em-template2.xsd | 47 ++++ xsd/x86-standard-template2.xml | 127 +++++++++++ 26 files changed, 1503 insertions(+), 438 deletions(-) create mode 100644 jaxb_src/org/tizen/emulator/manager/vms/xml/template2/Information.java create mode 100644 jaxb_src/org/tizen/emulator/manager/vms/xml/template2/Item.java create mode 100644 jaxb_src/org/tizen/emulator/manager/vms/xml/template2/ItemGroup.java create mode 100644 jaxb_src/org/tizen/emulator/manager/vms/xml/template2/ItemList2.java create mode 100644 jaxb_src/org/tizen/emulator/manager/vms/xml/template2/ObjectFactory.java create mode 100644 jaxb_src/org/tizen/emulator/manager/vms/xml/template2/Option.java create mode 100644 jaxb_src/org/tizen/emulator/manager/vms/xml/template2/package-info.java rename src/org/tizen/emulator/manager/{platform => template}/CustomPropertyTemplateLoader.java (97%) create mode 100644 src/org/tizen/emulator/manager/template/ITemplate.java create mode 100644 src/org/tizen/emulator/manager/template/Template1.java create mode 100644 src/org/tizen/emulator/manager/template/Template2.java create mode 100644 src/org/tizen/emulator/manager/template/TemplateLoader.java delete mode 100644 src/org/tizen/emulator/manager/ui/detail/item/template/loader/CustomPropertyTemplateLoader.java create mode 100644 xsd/em-template2.xsd create mode 100644 xsd/x86-standard-template2.xml diff --git a/jaxb_src/org/tizen/emulator/manager/vms/xml/template2/Information.java b/jaxb_src/org/tizen/emulator/manager/vms/xml/template2/Information.java new file mode 100644 index 0000000..617ea95 --- /dev/null +++ b/jaxb_src/org/tizen/emulator/manager/vms/xml/template2/Information.java @@ -0,0 +1,127 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.08.03 at 02:50:57 PM KST +// + + +package org.tizen.emulator.manager.vms.xml.template2; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for information complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="information">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="profile" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="image" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
+ *       <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "information") +public class Information { + + @XmlAttribute(name = "profile", required = true) + protected String profile; + @XmlAttribute(name = "image") + protected String image; + @XmlAttribute(name = "version") + protected String version; + + /** + * Gets the value of the profile property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getProfile() { + return profile; + } + + /** + * Sets the value of the profile property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setProfile(String value) { + this.profile = value; + } + + /** + * Gets the value of the image property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getImage() { + if (image == null) { + return ""; + } else { + return image; + } + } + + /** + * Sets the value of the image property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setImage(String value) { + this.image = value; + } + + /** + * Gets the value of the version property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersion() { + if (version == null) { + return ""; + } else { + return version; + } + } + + /** + * Sets the value of the version property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersion(String value) { + this.version = value; + } + +} diff --git a/jaxb_src/org/tizen/emulator/manager/vms/xml/template2/Item.java b/jaxb_src/org/tizen/emulator/manager/vms/xml/template2/Item.java new file mode 100644 index 0000000..e4d1ca1 --- /dev/null +++ b/jaxb_src/org/tizen/emulator/manager/vms/xml/template2/Item.java @@ -0,0 +1,196 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.08.03 at 02:50:57 PM KST +// + + +package org.tizen.emulator.manager.vms.xml.template2; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for item complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="item">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="option" type="{http://www.tizen.org/em/template}option" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="item" type="{http://www.tizen.org/em/template}item" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
+ *       <attribute name="title" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "item", propOrder = { + "option", + "item" +}) +public class Item { + + protected List