/* * This program is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software * Foundation. * * You should have received a copy of the GNU Lesser General Public License along with this * program; if not, you can obtain a copy at http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html * or from the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU Lesser General Public License for more details. * * Copyright (c) 2015 Pentaho Corporation. All rights reserved. */ package org.pentaho.marketplace.domain.model.entities.serialization.jaxb.dto; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.NormalizedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** * A descriptor of a particular version of a plugin. * <p/> * <p/> * <p>Java class for version complex type. * <p/> * <p>The following schema fragment specifies the expected content contained within this class. * <p/> * <pre> * <complexType name="version"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <all> * <element name="branch" type="{http://www.w3.org/2001/XMLSchema}normalizedString"/> * <element name="version" type="{http://www.w3.org/2001/XMLSchema}normalizedString"/> * <element name="build_id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="development_stage" type="{}development_stage" minOccurs="0"/> * <element name="name" type="{http://www.w3.org/2001/XMLSchema}normalizedString" minOccurs="0"/> * <element name="package_url" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/> * <element name="samples_url" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/> * <element name="source_url" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/> * <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="min_parent_version" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="max_parent_version" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="changelog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </all> * </restriction> * </complexContent> * </complexType> * </pre> */ @XmlAccessorType( XmlAccessType.FIELD ) @XmlType( name = "version", propOrder = { } ) public class Version { @XmlElement( required = true ) @XmlJavaTypeAdapter( NormalizedStringAdapter.class ) @XmlSchemaType( name = "normalizedString" ) protected String branch; @XmlElement( required = true ) @XmlJavaTypeAdapter( NormalizedStringAdapter.class ) @XmlSchemaType( name = "normalizedString" ) protected String version; @XmlElement( name = "build_id" ) protected String buildId; @XmlElement( name = "development_stage" ) protected DevelopmentStage developmentStage; @XmlJavaTypeAdapter( NormalizedStringAdapter.class ) @XmlSchemaType( name = "normalizedString" ) protected String name; @XmlElement( name = "package_url" ) @XmlSchemaType( name = "anyURI" ) protected String packageUrl; @XmlElement( name = "samples_url" ) @XmlSchemaType( name = "anyURI" ) protected String samplesUrl; @XmlElement( name = "source_url" ) @XmlSchemaType( name = "anyURI" ) protected String sourceUrl; protected String description; @XmlElement( name = "min_parent_version" ) protected String minParentVersion; @XmlElement( name = "max_parent_version" ) protected String maxParentVersion; protected String changelog; /** * Gets the value of the branch property. * * @return possible object is {@link String } */ public String getBranch() { return branch; } /** * Sets the value of the branch property. * * @param value allowed object is {@link String } */ public void setBranch( String value ) { this.branch = value; } /** * Gets the value of the version property. * * @return possible object is {@link String } */ public String getVersion() { return version; } /** * Sets the value of the version property. * * @param value allowed object is {@link String } */ public void setVersion( String value ) { this.version = value; } /** * Gets the value of the buildId property. * * @return possible object is {@link String } */ public String getBuildId() { return buildId; } /** * Sets the value of the buildId property. * * @param value allowed object is {@link String } */ public void setBuildId( String value ) { this.buildId = value; } /** * Gets the value of the developmentStage property. * * @return possible object is {@link DevelopmentStage } */ public DevelopmentStage getDevelopmentStage() { return developmentStage; } /** * Sets the value of the developmentStage property. * * @param value allowed object is {@link DevelopmentStage } */ public void setDevelopmentStage( DevelopmentStage value ) { this.developmentStage = 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 packageUrl property. * * @return possible object is {@link String } */ public String getPackageUrl() { return packageUrl; } /** * Sets the value of the packageUrl property. * * @param value allowed object is {@link String } */ public void setPackageUrl( String value ) { this.packageUrl = value; } /** * Gets the value of the samplesUrl property. * * @return possible object is {@link String } */ public String getSamplesUrl() { return samplesUrl; } /** * Sets the value of the samplesUrl property. * * @param value allowed object is {@link String } */ public void setSamplesUrl( String value ) { this.samplesUrl = value; } /** * Gets the value of the sourceUrl property. * * @return possible object is {@link String } */ public String getSourceUrl() { return sourceUrl; } /** * Sets the value of the sourceUrl property. * * @param value allowed object is {@link String } */ public void setSourceUrl( String value ) { this.sourceUrl = value; } /** * Gets the value of the description property. * * @return possible object is {@link String } */ public String getDescription() { return description; } /** * Sets the value of the description property. * * @param value allowed object is {@link String } */ public void setDescription( String value ) { this.description = value; } /** * Gets the value of the minParentVersion property. * * @return possible object is {@link String } */ public String getMinParentVersion() { return minParentVersion; } /** * Sets the value of the minParentVersion property. * * @param value allowed object is {@link String } */ public void setMinParentVersion( String value ) { this.minParentVersion = value; } /** * Gets the value of the maxParentVersion property. * * @return possible object is {@link String } */ public String getMaxParentVersion() { return maxParentVersion; } /** * Sets the value of the maxParentVersion property. * * @param value allowed object is {@link String } */ public void setMaxParentVersion( String value ) { this.maxParentVersion = value; } /** * Gets the value of the changelog property. * * @return possible object is {@link String } */ public String getChangelog() { return changelog; } /** * Sets the value of the changelog property. * * @param value allowed object is {@link String } */ public void setChangelog( String value ) { this.changelog = value; } }