From: jihye424.kim Date: Sun, 25 Oct 2015 01:14:11 +0000 (+0900) Subject: CustomBaseImage: add base image xsd file X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46c395f7245d181bb0338d40980cd2a6082b1a5d;p=sdk%2Femulator%2Femulator-manager.git CustomBaseImage: add base image xsd file - add base-image.xsd file - add java files for xml schema Change-Id: I1406d7121477fd756c805a3929be7fd0dbd5f81a Signed-off-by: jihye424.kim --- diff --git a/jaxb_src/org/tizen/emulator/manager/baseimage/xml/BaseImageConfiguration.java b/jaxb_src/org/tizen/emulator/manager/baseimage/xml/BaseImageConfiguration.java new file mode 100644 index 0000000..5b7a790 --- /dev/null +++ b/jaxb_src/org/tizen/emulator/manager/baseimage/xml/BaseImageConfiguration.java @@ -0,0 +1,105 @@ +// +// 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.10.28 at 10:11:29 AM KST +// + + +package org.tizen.emulator.manager.baseimage.xml; + +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.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CustomBaseImage" type="{http://www.tizen.org/baseimage}baseImageType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="lastDirectory" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "customBaseImage", + "lastDirectory" +}) +@XmlRootElement(name = "BaseImageConfiguration") +public class BaseImageConfiguration { + + @XmlElement(name = "CustomBaseImage") + protected List customBaseImage; + protected String lastDirectory; + + /** + * Gets the value of the customBaseImage property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the customBaseImage property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCustomBaseImage().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link BaseImageType } + * + * + */ + public List getCustomBaseImage() { + if (customBaseImage == null) { + customBaseImage = new ArrayList(); + } + return this.customBaseImage; + } + + /** + * Gets the value of the lastDirectory property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLastDirectory() { + return lastDirectory; + } + + /** + * Sets the value of the lastDirectory property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLastDirectory(String value) { + this.lastDirectory = value; + } + +} diff --git a/jaxb_src/org/tizen/emulator/manager/baseimage/xml/BaseImageType.java b/jaxb_src/org/tizen/emulator/manager/baseimage/xml/BaseImageType.java new file mode 100644 index 0000000..33013ae --- /dev/null +++ b/jaxb_src/org/tizen/emulator/manager/baseimage/xml/BaseImageType.java @@ -0,0 +1,235 @@ +// +// 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.10.28 at 10:11:29 AM KST +// + + +package org.tizen.emulator.manager.baseimage.xml; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for baseImageType complex type. + * + *

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

+ * <complexType name="baseImageType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="profile" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="platform" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="path" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="isDeleted" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "baseImageType", propOrder = { + "name", + "profile", + "platform", + "path", + "description" +}) +public class BaseImageType { + + @XmlElement(required = true) + protected String name; + @XmlElement(required = true) + protected String profile; + @XmlElement(required = true) + protected String platform; + @XmlElement(required = true) + protected String path; + protected String description; + @XmlAttribute(name = "id", required = true) + protected String id; + @XmlAttribute(name = "isDeleted") + protected Boolean isDeleted; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * 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 platform property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPlatform() { + return platform; + } + + /** + * Sets the value of the platform property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPlatform(String value) { + this.platform = value; + } + + /** + * Gets the value of the path property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPath() { + return path; + } + + /** + * Sets the value of the path property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPath(String value) { + this.path = value; + } + + /** + * Gets the value of the description property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription(String value) { + this.description = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the value of the isDeleted property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isIsDeleted() { + return isDeleted; + } + + /** + * Sets the value of the isDeleted property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsDeleted(Boolean value) { + this.isDeleted = value; + } + +} diff --git a/jaxb_src/org/tizen/emulator/manager/baseimage/xml/ObjectFactory.java b/jaxb_src/org/tizen/emulator/manager/baseimage/xml/ObjectFactory.java new file mode 100644 index 0000000..1947b4e --- /dev/null +++ b/jaxb_src/org/tizen/emulator/manager/baseimage/xml/ObjectFactory.java @@ -0,0 +1,55 @@ +// +// 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.10.28 at 10:11:29 AM KST +// + + +package org.tizen.emulator.manager.baseimage.xml; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the org.tizen.emulator.manager.baseimage.xml package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.tizen.emulator.manager.baseimage.xml + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link BaseImageConfiguration } + * + */ + public BaseImageConfiguration createBaseImageConfiguration() { + return new BaseImageConfiguration(); + } + + /** + * Create an instance of {@link BaseImageType } + * + */ + public BaseImageType createBaseImageType() { + return new BaseImageType(); + } + +} diff --git a/jaxb_src/org/tizen/emulator/manager/baseimage/xml/package-info.java b/jaxb_src/org/tizen/emulator/manager/baseimage/xml/package-info.java new file mode 100644 index 0000000..93c24dd --- /dev/null +++ b/jaxb_src/org/tizen/emulator/manager/baseimage/xml/package-info.java @@ -0,0 +1,9 @@ +// +// 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.10.28 at 10:11:29 AM KST +// + +@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.tizen.org/baseimage", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package org.tizen.emulator.manager.baseimage.xml; diff --git a/xsd/base-image.xsd b/xsd/base-image.xsd new file mode 100644 index 0000000..5c6e5c4 --- /dev/null +++ b/xsd/base-image.xsd @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + +