/* * Copyright 2000-2012 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. */ package jetbrains.buildServer.server.restcontrib.cctray.model; import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl; import java.util.Date; import java.util.GregorianCalendar; import java.util.List; import javax.xml.bind.annotation.XmlAttribute; 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.datatype.XMLGregorianCalendar; import jetbrains.buildServer.ServiceLocator; import jetbrains.buildServer.serverSide.*; /** *
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">
* <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>
*
*/
@XmlType(name = "", namespace = "http://cctray")
public class Project {
private SBuildType myBuildType;
protected ServiceLocator myServiceLocator;
public Project() {
}
public Project(ServiceLocator serviceLocator, SBuildType buildType) {
this.myServiceLocator = serviceLocator;
myBuildType = buildType;
}
/**
* Gets the value of the name property.
*
* @return possible object is
* {@link String }
*/
@XmlAttribute(name = "name", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NMTOKEN")
public String getName() {
return myBuildType.getFullName();
}
/**
* Gets the value of the activity property.
*
* @return possible object is
* {@link String }
*/
@XmlAttribute(name = "activity", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
public String getActivity() {
final List