All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rest4j.impl.model.API Maven / Gradle / Ivy

The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2013.10.15 at 09:57:00 AM MSK 
//


package com.rest4j.impl.model;

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.XmlElements;
import javax.xml.bind.annotation.XmlType;


/**
 * 

Java class for API complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="API">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="params" type="{http://rest4j.com/api-description}APIParams" minOccurs="0"/>
 *         <sequence maxOccurs="unbounded">
 *           <element name="endpoint" type="{http://rest4j.com/api-description}Endpoint" maxOccurs="unbounded" minOccurs="0"/>
 *           <element name="model" type="{http://rest4j.com/api-description}Model" maxOccurs="unbounded" minOccurs="0"/>
 *         </sequence>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "API", propOrder = { "params", "endpointAndModel" }) public class API { protected APIParams params; @XmlElements({ @XmlElement(name = "model", type = Model.class), @XmlElement(name = "endpoint", type = Endpoint.class) }) protected List endpointAndModel; /** * Gets the value of the params property. * * @return * possible object is * {@link APIParams } * */ public APIParams getParams() { return params; } /** * Sets the value of the params property. * * @param value * allowed object is * {@link APIParams } * */ public void setParams(APIParams value) { this.params = value; } /** * Gets the value of the endpointAndModel 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 endpointAndModel property. * *

* For example, to add a new item, do as follows: *

     *    getEndpointAndModel().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Model } * {@link Endpoint } * * */ public List getEndpointAndModel() { if (endpointAndModel == null) { endpointAndModel = new ArrayList(); } return this.endpointAndModel; } }