The following schema fragment specifies the expected content contained within this class.
23 | *
24 | *
The following schema fragment specifies the expected content contained within this class.
22 | *
23 | *
The following schema fragment specifies the expected content contained within this class.
26 | *
27 | *
language;
50 |
51 | /**
52 | * Gets the value of the language property.
53 | *
54 | *
55 | * This accessor method returns a reference to the live list,
56 | * not a snapshot. Therefore any modification you make to the
57 | * returned list will be present inside the JAXB object.
58 | * This is why there is not a set method for the language property.
59 | *
60 | *
61 | * For example, to add a new item, do as follows:
62 | *
63 | * getLanguage().add(newItem);
64 | *
65 | *
66 | *
67 | *
68 | * Objects of the following type(s) are allowed in the list
69 | * {@link Language }
70 | *
71 | *
72 | */
73 | public List getLanguage() {
74 | if (language == null) {
75 | language = new ArrayList();
76 | }
77 | return this.language;
78 | }
79 |
80 | public java.lang.String getDescription(Locale locale, java.lang.String defaultLocale){
81 | return Language.getLanguageForLocale(locale, defaultLocale, language);
82 | }
83 |
84 | }
85 |
--------------------------------------------------------------------------------
/src/main/java/com/jamfsoftware/research/macingestor/jaxb/DeviceVariable.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
3 | // See http://java.sun.com/xml/jaxb
4 | // Any modifications to this file will be lost upon recompilation of the source schema.
5 | // Generated on: 2016.03.17 at 09:04:29 AM CDT
6 | //
7 |
8 |
9 | package com.jamfsoftware.research.macingestor.jaxb;
10 |
11 | import javax.xml.bind.annotation.XmlAccessType;
12 | import javax.xml.bind.annotation.XmlAccessorType;
13 | import javax.xml.bind.annotation.XmlAttribute;
14 | import javax.xml.bind.annotation.XmlRootElement;
15 | import javax.xml.bind.annotation.XmlType;
16 |
17 |
18 | /**
19 | * Java class for anonymous complex type.
20 | *
21 | *
The following schema fragment specifies the expected content contained within this class.
22 | *
23 | *
24 | * <complexType>
25 | * <complexContent>
26 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
27 | * <attribute name="value" use="required">
28 | * <simpleType>
29 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
30 | * <enumeration value="iccid"/>
31 | * <enumeration value="imei"/>
32 | * <enumeration value="imsi"/>
33 | * <enumeration value="meid"/>
34 | * <enumeration value="model"/>
35 | * <enumeration value="phoneNumber"/>
36 | * <enumeration value="serialNumber"/>
37 | * <enumeration value="udid"/>
38 | * <enumeration value="wifiMacAddress"/>
39 | * </restriction>
40 | * </simpleType>
41 | * </attribute>
42 | * </restriction>
43 | * </complexContent>
44 | * </complexType>
45 | *
46 | *
47 | *
48 | */
49 | @XmlAccessorType(XmlAccessType.FIELD)
50 | @XmlType(name = "")
51 | @XmlRootElement(name = "deviceVariable")
52 | public class DeviceVariable {
53 |
54 | @XmlAttribute(name = "value", required = true)
55 | protected java.lang.String value;
56 |
57 | /**
58 | * Gets the value of the value property.
59 | *
60 | * @return
61 | * possible object is
62 | * {@link java.lang.String }
63 | *
64 | */
65 | public java.lang.String getValue() {
66 | return value;
67 | }
68 |
69 | /**
70 | * Sets the value of the value property.
71 | *
72 | * @param value
73 | * allowed object is
74 | * {@link java.lang.String }
75 | *
76 | */
77 | public void setValue(java.lang.String value) {
78 | this.value = value;
79 | }
80 |
81 | public java.lang.String getJSSVariableName(){
82 | switch(value){
83 | case "iccid": return "$ICCID";
84 | case "imei": return "$IMEI";
85 | case "imsi": return "$IMSI";
86 | case "meid": return "MEID";
87 | case "model": return "$MODEL";
88 | case "phoneNumber": return "$PHONE";
89 | case "serialNumber": return "$SERIALNUMBER";
90 | case "udid": return "$UDID";
91 | case "wifiMacAddress": return "$MACADDRESS";
92 | default: return null;
93 | }
94 | }
95 |
96 | }
97 |
--------------------------------------------------------------------------------
/src/main/java/com/jamfsoftware/research/macingestor/jaxb/Dict.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
3 | // See http://java.sun.com/xml/jaxb
4 | // Any modifications to this file will be lost upon recompilation of the source schema.
5 | // Generated on: 2016.03.17 at 09:04:29 AM CDT
6 | //
7 |
8 |
9 | package com.jamfsoftware.research.macingestor.jaxb;
10 |
11 | import java.util.ArrayList;
12 | import java.util.List;
13 | import javax.xml.bind.annotation.XmlAccessType;
14 | import javax.xml.bind.annotation.XmlAccessorType;
15 | import javax.xml.bind.annotation.XmlElement;
16 | import javax.xml.bind.annotation.XmlElements;
17 | import javax.xml.bind.annotation.XmlRootElement;
18 | import javax.xml.bind.annotation.XmlType;
19 |
20 |
21 | /**
22 | * Java class for anonymous complex type.
23 | *
24 | *
The following schema fragment specifies the expected content contained within this class.
25 | *
26 | *
27 | * <complexType>
28 | * <complexContent>
29 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
30 | * <choice maxOccurs="unbounded">
31 | * <element ref="{}string"/>
32 | * <element ref="{}stringArray"/>
33 | * <element ref="{}integer"/>
34 | * <element ref="{}integerArray"/>
35 | * <element ref="{}float"/>
36 | * <element ref="{}floatArray"/>
37 | * <element ref="{}date"/>
38 | * <element ref="{}boolean"/>
39 | * </choice>
40 | * </restriction>
41 | * </complexContent>
42 | * </complexType>
43 | *
44 | *
45 | *
46 | */
47 | @XmlAccessorType(XmlAccessType.FIELD)
48 | @XmlType(name = "", propOrder = {
49 | "stringOrStringArrayOrInteger"
50 | })
51 | @XmlRootElement(name = "dict")
52 | public class Dict {
53 |
54 | @XmlElements({
55 | @XmlElement(name = "string", type = String.class),
56 | @XmlElement(name = "stringArray", type = StringArray.class),
57 | @XmlElement(name = "integer", type = Integer.class),
58 | @XmlElement(name = "integerArray", type = IntegerArray.class),
59 | @XmlElement(name = "float", type = Float.class),
60 | @XmlElement(name = "floatArray", type = FloatArray.class),
61 | @XmlElement(name = "date", type = Date.class),
62 | @XmlElement(name = "boolean", type = Boolean.class)
63 | })
64 | protected List