// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
// 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: 2010.12.20 at 06:00:42 PM CET
//
package de.osmui.model.osm;
import java.io.Serializable;
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;
/**
* Describes a task parameter.
*
* <p>Java class for tParameter complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="tParameter">
* <complexContent>
* <extension base="{http://uni-stuttgart.de/iev/osmosisTaskDescription}tHasDescription">
* <sequence>
* <element name="enumValue" type="{http://uni-stuttgart.de/iev/osmosisTaskDescription}tEnumValue" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="friendlyName" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="required" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* <attribute name="defaultParameter" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* <attribute name="type" use="required">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="int"/>
* <enumeration value="string"/>
* <enumeration value="boolean"/>
* <enumeration value="enum"/>
* <enumeration value="filename"/>
* <enumeration value="directory"/>
* <enumeration value="uri"/>
* <enumeration value="instant"/>
* <enumeration value="bbox"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="booleanEncoding" default="yesno">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="yesno"/>
* <enumeration value="truefalse"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="defaultValue" type="{http://www.w3.org/2001/XMLSchema}string" />
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "tParameter", propOrder = {
"enumValue"
})
public class TParameter
extends THasDescription implements Serializable
{
/**
*
*/
private static final long serialVersionUID = 6274016364143329348L;
protected List<TEnumValue> enumValue;
@XmlAttribute(required = true)
protected String name;
@XmlAttribute
protected String friendlyName;
@XmlAttribute
protected Boolean required;
@XmlAttribute
protected Boolean defaultParameter;
@XmlAttribute(required = true)
protected String type;
@XmlAttribute
protected String booleanEncoding;
@XmlAttribute
protected String defaultValue;
/**
* Gets the value of the enumValue 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 enumValue property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getEnumValue().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TEnumValue }
*
*
*/
public List<TEnumValue> getEnumValue() {
if (enumValue == null) {
enumValue = new ArrayList<TEnumValue>();
}
return this.enumValue;
}
/**
* 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 friendlyName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFriendlyName() {
return friendlyName;
}
/**
* Sets the value of the friendlyName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFriendlyName(String value) {
this.friendlyName = value;
}
/**
* Gets the value of the required property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isRequired() {
if (required == null) {
return false;
} else {
return required;
}
}
/**
* Sets the value of the required property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setRequired(Boolean value) {
this.required = value;
}
/**
* Gets the value of the defaultParameter property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isDefaultParameter() {
if (defaultParameter == null) {
return false;
} else {
return defaultParameter;
}
}
/**
* Sets the value of the defaultParameter property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setDefaultParameter(Boolean value) {
this.defaultParameter = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setType(String value) {
this.type = value;
}
/**
* Gets the value of the booleanEncoding property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBooleanEncoding() {
if (booleanEncoding == null) {
return "yesno";
} else {
return booleanEncoding;
}
}
/**
* Sets the value of the booleanEncoding property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBooleanEncoding(String value) {
this.booleanEncoding = value;
}
/**
* Gets the value of the defaultValue property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDefaultValue() {
return defaultValue;
}
/**
* Sets the value of the defaultValue property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDefaultValue(String value) {
this.defaultValue = value;
}
}