com.hextremelabs.ussd.ui.model.UssdApp Maven / Gradle / Ivy
Show all versions of lib-ussd Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.08.09 at 04:30:04 AM WAT
//
package com.hextremelabs.ussd.ui.model;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;
import java.util.List;
/**
* 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="screen" maxOccurs="unbounded">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="header" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="option" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <simpleContent>
* <extension base="<http://www.w3.org/2001/XMLSchema>string">
* <attribute name="trigger" use="required" type="{http://www.w3.org/2001/XMLSchema}byte" />
* <attribute name="nextScreen" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </extension>
* </simpleContent>
* </complexType>
* </element>
* <element name="body" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="footer" 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="type" use="required" type="{http://dev.hextremelabs.net}screenType" />
* <attribute name="validation" type="{http://dev.hextremelabs.net}validation" />
* <attribute name="regex" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="callback" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="nextScreen" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="lineSeparator" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="maxTextLength" type="{http://www.w3.org/2001/XMLSchema}byte" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"screen"
})
@XmlRootElement(name = "ussd-app")
public class UssdApp {
@XmlElement(required = true)
protected List screen;
@XmlAttribute(name = "name", required = true)
protected String name;
@XmlAttribute(name = "lineSeparator")
protected String lineSeparator;
@XmlAttribute(name = "errorMessage")
protected String errorMessage;
@XmlAttribute(name = "maxTextLength")
protected Byte maxTextLength;
/**
* Gets the value of the screen 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 screen property.
*
*
* For example, to add a new item, do as follows:
*
* getScreen().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Screen }
*
*
*/
public List getScreen() {
if (screen == null) {
screen = new ArrayList();
}
return this.screen;
}
/**
* 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 lineSeparator property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLineSeparator() {
return lineSeparator;
}
/**
* Sets the value of the lineSeparator property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLineSeparator(String value) {
this.lineSeparator = value;
}
/**
* Gets the value of the errorMessage property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getErrorMessage() {
return errorMessage;
}
/**
* Sets the value of the errorMessage property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setErrorMessage(String value) {
this.errorMessage = value;
}
/**
* Gets the value of the maxTextLength property.
*
* @return
* possible object is
* {@link Byte }
*
*/
public Byte getMaxTextLength() {
return maxTextLength;
}
/**
* Sets the value of the maxTextLength property.
*
* @param value
* allowed object is
* {@link Byte }
*
*/
public void setMaxTextLength(Byte value) {
this.maxTextLength = value;
}
}