/* * Copyright 2000-2014 JetBrains s.r.o. * * 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, vhudson-jaxb-ri-2.2.1.1-4 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2010.08.01 at 10:50:36 PM MSD // package jetbrains.buildServer.server.restcontrib.cctray.model; import java.util.List; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; import jetbrains.buildServer.ServiceLocator; import jetbrains.buildServer.serverSide.SBuildType; import jetbrains.buildServer.util.CollectionsUtil; import jetbrains.buildServer.util.Converter; import org.jetbrains.annotations.NotNull; /** *

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="Project" maxOccurs="unbounded">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
 *                 <attribute name="activity" use="required">
 *                   <simpleType>
 *                     <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
 *                       <enumeration value="Sleeping"/>
 *                       <enumeration value="Building"/>
 *                       <enumeration value="CheckingModifications"/>
 *                     </restriction>
 *                   </simpleType>
 *                 </attribute>
 *                 <attribute name="lastBuildStatus" use="required">
 *                   <simpleType>
 *                     <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
 *                       <enumeration value="Exception"/>
 *                       <enumeration value="Success"/>
 *                       <enumeration value="Failure"/>
 *                       <enumeration value="Unknown"/>
 *                     </restriction>
 *                   </simpleType>
 *                 </attribute>
 *                 <attribute name="lastBuildLabel" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
 *                 <attribute name="lastBuildTime" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
 *                 <attribute name="nextBuildTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
 *                 <attribute name="webUrl" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlRootElement(name = "Projects") @XmlType(name = "projects", namespace = "http://cctray") public class Projects { private List myBuildTypes; protected ServiceLocator myServiceLocator; public Projects() { } public Projects(ServiceLocator serviceLocator, List buildTypes) { this.myServiceLocator = serviceLocator; myBuildTypes = buildTypes; } /** * Gets the value of the project 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 project property. * *

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

     *    getProject().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Project } * * */ @XmlElement(name = "Project", required = true) public List getProject() { //todo: check when empty projects collection return CollectionsUtil.convertCollection(myBuildTypes, new Converter() { public Project createFrom(@NotNull SBuildType source) { return new Project(myServiceLocator, source); } }); } }