CustomBaseImage: add base image xsd file
authorjihye424.kim <jihye424.kim@samsung.com>
Sun, 25 Oct 2015 01:14:11 +0000 (10:14 +0900)
committerjihye424.kim <jihye424.kim@samsung.com>
Wed, 28 Oct 2015 01:11:53 +0000 (10:11 +0900)
- add base-image.xsd file
- add java files for xml schema

Change-Id: I1406d7121477fd756c805a3929be7fd0dbd5f81a
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
jaxb_src/org/tizen/emulator/manager/baseimage/xml/BaseImageConfiguration.java [new file with mode: 0644]
jaxb_src/org/tizen/emulator/manager/baseimage/xml/BaseImageType.java [new file with mode: 0644]
jaxb_src/org/tizen/emulator/manager/baseimage/xml/ObjectFactory.java [new file with mode: 0644]
jaxb_src/org/tizen/emulator/manager/baseimage/xml/package-info.java [new file with mode: 0644]
xsd/base-image.xsd [new file with mode: 0644]

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 (file)
index 0000000..5b7a790
--- /dev/null
@@ -0,0 +1,105 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// 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;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="CustomBaseImage" type="{http://www.tizen.org/baseimage}baseImageType" maxOccurs="unbounded" minOccurs="0"/>
+ *         &lt;element name="lastDirectory" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+    "customBaseImage",
+    "lastDirectory"
+})
+@XmlRootElement(name = "BaseImageConfiguration")
+public class BaseImageConfiguration {
+
+    @XmlElement(name = "CustomBaseImage")
+    protected List<BaseImageType> customBaseImage;
+    protected String lastDirectory;
+
+    /**
+     * Gets the value of the customBaseImage property.
+     * 
+     * <p>
+     * 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 <CODE>set</CODE> method for the customBaseImage property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getCustomBaseImage().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link BaseImageType }
+     * 
+     * 
+     */
+    public List<BaseImageType> getCustomBaseImage() {
+        if (customBaseImage == null) {
+            customBaseImage = new ArrayList<BaseImageType>();
+        }
+        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 (file)
index 0000000..33013ae
--- /dev/null
@@ -0,0 +1,235 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// 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;
+
+
+/**
+ * <p>Java class for baseImageType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="baseImageType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         &lt;element name="profile" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         &lt;element name="platform" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         &lt;element name="path" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         &lt;element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="isDeleted" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@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 (file)
index 0000000..1947b4e
--- /dev/null
@@ -0,0 +1,55 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// 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. 
+ * <p>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 (file)
index 0000000..93c24dd
--- /dev/null
@@ -0,0 +1,9 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// 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 (file)
index 0000000..5c6e5c4
--- /dev/null
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.tizen.org/baseimage"
+       xmlns:baseimage="http://www.tizen.org/baseimage" elementFormDefault="qualified">
+
+       <element name="BaseImageConfiguration">
+               <complexType>
+                       <sequence>
+                               <element name="CustomBaseImage" type="baseimage:baseImageType" minOccurs="0" maxOccurs="unbounded"/>
+                               <element name="lastDirectory" type="string" minOccurs="0" maxOccurs="1"/>
+                       </sequence>
+               </complexType>
+       </element>
+
+       <complexType name="baseImageType">
+               <sequence>
+                       <element name="name" type="string" minOccurs="1" maxOccurs="1" />
+                       <element name="profile" type="string" minOccurs="1" maxOccurs="1" />
+                       <element name="platform" type="string" minOccurs="1" maxOccurs="1" />
+                       <element name="path" type="string" minOccurs="1" maxOccurs="1" />
+                       <element name="description" type="string" minOccurs="0" maxOccurs="1" />
+               </sequence>
+               <attribute name="id" type="string" use="required" />
+               <attribute name="isDeleted" type="boolean" use="optional" />
+       </complexType>
+</schema>