Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
br.com.anteros.springWeb.rest.wadl.descriptor.Param Maven / Gradle / Ivy
/**
* Copyright 2013 Autentia Real Business Solution S.L.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.04.24 at 07:55:05 PM CEST
//
package br.com.anteros.springWeb.rest.wadl.descriptor;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.w3c.dom.Element;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.namespace.QName;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 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 ref="{http://wadl.dev.java.net/2009/02}doc" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://wadl.dev.java.net/2009/02}option" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://wadl.dev.java.net/2009/02}link" minOccurs="0"/>
* <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="href" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
* <attribute name="style" type="{http://wadl.dev.java.net/2009/02}ParamStyle" />
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
* <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}QName" default="xs:string" />
* <attribute name="default" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="required" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* <attribute name="repeating" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* <attribute name="fixed" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="path" type="{http://www.w3.org/2001/XMLSchema}string" />
* <anyAttribute processContents='lax' namespace='##other'/>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"doc",
"option",
"link",
"any"
})
@XmlRootElement(name = "param")
public class Param {
protected List doc;
protected List option;
protected Link link;
@XmlAnyElement(lax = true)
protected List any;
@XmlAttribute(name = "href")
@XmlSchemaType(name = "anyURI")
protected String href;
@XmlAttribute(name = "name")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NMTOKEN")
protected String name;
@XmlAttribute(name = "style")
protected ParamStyle style;
@XmlAttribute(name = "id")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String id;
@XmlAttribute(name = "type")
protected QName type;
@XmlAttribute(name = "default")
protected String _default;
@XmlAttribute(name = "required")
protected Boolean required;
@XmlAttribute(name = "repeating")
protected Boolean repeating;
@XmlAttribute(name = "fixed")
protected String fixed;
@XmlAttribute(name = "path")
protected String path;
@XmlAnyAttribute
private Map otherAttributes = new HashMap();
/**
* Default no-arg constructor
*
*/
public Param() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public Param(final List doc, final List option, final Link link, final List any, final String href, final String name, final ParamStyle style, final String id, final QName type, final String _default, final Boolean required, final Boolean repeating, final String fixed, final String path, final Map otherAttributes) {
this.doc = doc;
this.option = option;
this.link = link;
this.any = any;
this.href = href;
this.name = name;
this.style = style;
this.id = id;
this.type = type;
this._default = _default;
this.required = required;
this.repeating = repeating;
this.fixed = fixed;
this.path = path;
this.otherAttributes = otherAttributes;
}
/**
* Gets the value of the doc 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 doc property.
*
*
* For example, to add a new item, do as follows:
*
* getDoc().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Doc }
*
*
*/
public List getDoc() {
if (doc == null) {
doc = new ArrayList();
}
return this.doc;
}
/**
* Gets the value of the option 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 option property.
*
*
* For example, to add a new item, do as follows:
*
* getOption().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Option }
*
*
*/
public List getOption() {
if (option == null) {
option = new ArrayList ();
}
return this.option;
}
/**
* Gets the value of the link property.
*
* @return
* possible object is
* {@link Link }
*
*/
public Link getLink() {
return link;
}
/**
* Sets the value of the link property.
*
* @param value
* allowed object is
* {@link Link }
*
*/
public void setLink(Link value) {
this.link = value;
}
/**
* Gets the value of the any 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 any property.
*
*
* For example, to add a new item, do as follows:
*
* getAny().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Object }
* {@link Element }
*
*
*/
public List getAny() {
if (any == null) {
any = new ArrayList();
}
return this.any;
}
/**
* Gets the value of the href property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHref() {
return href;
}
/**
* Sets the value of the href property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHref(String value) {
this.href = value;
}
/**
* 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 style property.
*
* @return
* possible object is
* {@link ParamStyle }
*
*/
public ParamStyle getStyle() {
return style;
}
/**
* Sets the value of the style property.
*
* @param value
* allowed object is
* {@link ParamStyle }
*
*/
public void setStyle(ParamStyle value) {
this.style = 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 type property.
*
* @return
* possible object is
* {@link QName }
*
*/
public QName getType() {
if (type == null) {
return new QName("http://www.w3.org/2001/XMLSchema", "string", "xs");
} else {
return type;
}
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link QName }
*
*/
public void setType(QName value) {
this.type = value;
}
/**
* Gets the value of the default property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDefault() {
return _default;
}
/**
* Sets the value of the default property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDefault(String value) {
this._default = 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 repeating property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isRepeating() {
if (repeating == null) {
return false;
} else {
return repeating;
}
}
/**
* Sets the value of the repeating property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setRepeating(Boolean value) {
this.repeating = value;
}
/**
* Gets the value of the fixed property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFixed() {
return fixed;
}
/**
* Sets the value of the fixed property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFixed(String value) {
this.fixed = 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 a map that contains attributes that aren't bound to any typed property on this class.
*
*
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map getOtherAttributes() {
return otherAttributes;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
public Param withDoc(Doc... values) {
if (values!= null) {
for (Doc value: values) {
getDoc().add(value);
}
}
return this;
}
public Param withDoc(Collection values) {
if (values!= null) {
getDoc().addAll(values);
}
return this;
}
public Param withOption(Option... values) {
if (values!= null) {
for (Option value: values) {
getOption().add(value);
}
}
return this;
}
public Param withOption(Collection values) {
if (values!= null) {
getOption().addAll(values);
}
return this;
}
public Param withLink(Link value) {
setLink(value);
return this;
}
public Param withAny(Object... values) {
if (values!= null) {
for (Object value: values) {
getAny().add(value);
}
}
return this;
}
public Param withAny(Collection values) {
if (values!= null) {
getAny().addAll(values);
}
return this;
}
public Param withHref(String value) {
setHref(value);
return this;
}
public Param withName(String value) {
setName(value);
return this;
}
public Param withStyle(ParamStyle value) {
setStyle(value);
return this;
}
public Param withId(String value) {
setId(value);
return this;
}
public Param withType(QName value) {
setType(value);
return this;
}
public Param withDefault(String value) {
setDefault(value);
return this;
}
public Param withRequired(Boolean value) {
setRequired(value);
return this;
}
public Param withRepeating(Boolean value) {
setRepeating(value);
return this;
}
public Param withFixed(String value) {
setFixed(value);
return this;
}
public Param withPath(String value) {
setPath(value);
return this;
}
}