/*
* Copyright (c) 2013 Technische Universitat Wien (TUW), Distributed Systems Group. http://dsg.tuwien.ac.at
*
* This work was partially supported by the European Commission in terms of the CELAR FP7 project (FP7-ICT-2011-8 #317790), http://www.celarcloud.eu/
*
* 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 generated.oasis.tosca;
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.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for tNodeTemplate complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="tNodeTemplate">
* <complexContent>
* <extension base="{http://docs.oasis-open.org/tosca/ns/2011/12}tEntityTemplate">
* <sequence>
* <element name="Requirements" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Requirement" type="{http://docs.oasis-open.org/tosca/ns/2011/12}tRequirement" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="Capabilities" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Capability" type="{http://docs.oasis-open.org/tosca/ns/2011/12}tCapability" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="Policies" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Policy" type="{http://docs.oasis-open.org/tosca/ns/2011/12}tPolicy" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="DeploymentArtifacts" type="{http://docs.oasis-open.org/tosca/ns/2011/12}tDeploymentArtifacts" minOccurs="0"/>
* </sequence>
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="minInstances" type="{http://www.w3.org/2001/XMLSchema}int" default="1" />
* <attribute name="maxInstances" default="1">
* <simpleType>
* <union>
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger">
* <pattern value="([1-9]+[0-9]*)"/>
* </restriction>
* </simpleType>
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="unbounded"/>
* </restriction>
* </simpleType>
* </union>
* </simpleType>
* </attribute>
* <anyAttribute processContents='lax' namespace='##other'/>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "tNodeTemplate", propOrder = {
"requirements",
"capabilities",
"policies",
"deploymentArtifacts"
})
public class TNodeTemplate
extends TEntityTemplate
{
@XmlElement(name = "Requirements")
protected TNodeTemplate.Requirements requirements;
@XmlElement(name = "Capabilities")
protected TNodeTemplate.Capabilities capabilities;
@XmlElement(name = "Policies")
protected TNodeTemplate.Policies policies;
@XmlElement(name = "DeploymentArtifacts")
protected TDeploymentArtifacts deploymentArtifacts;
@XmlAttribute(name = "name")
protected String name;
@XmlAttribute(name = "minInstances")
protected Integer minInstances;
@XmlAttribute(name = "maxInstances")
protected String maxInstances;
// add for Salsa
// @XmlAttribute(name = "state")
// private String state = "prologue";
// @XmlAttribute(name = "salsa") // node will be handle by Salsa
// private boolean salsa = false;
@XmlAttribute(name = "reference")
protected String reference;
public String getReference() {
return reference;
}
public void setReference(String reference) {
this.reference = reference;
}
/**
* Gets the value of the requirements property.
*
* @return
* possible object is
* {@link TNodeTemplate.Requirements }
*
*/
public TNodeTemplate.Requirements getRequirements() {
return requirements;
}
/**
* Sets the value of the requirements property.
*
* @param value
* allowed object is
* {@link TNodeTemplate.Requirements }
*
*/
public void setRequirements(TNodeTemplate.Requirements value) {
this.requirements = value;
}
/**
* Gets the value of the capabilities property.
*
* @return
* possible object is
* {@link TNodeTemplate.Capabilities }
*
*/
public TNodeTemplate.Capabilities getCapabilities() {
return capabilities;
}
/**
* Sets the value of the capabilities property.
*
* @param value
* allowed object is
* {@link TNodeTemplate.Capabilities }
*
*/
public void setCapabilities(TNodeTemplate.Capabilities value) {
this.capabilities = value;
}
/**
* Gets the value of the policies property.
*
* @return
* possible object is
* {@link TNodeTemplate.Policies }
*
*/
public TNodeTemplate.Policies getPolicies() {
return policies;
}
/**
* Sets the value of the policies property.
*
* @param value
* allowed object is
* {@link TNodeTemplate.Policies }
*
*/
public void setPolicies(TNodeTemplate.Policies value) {
this.policies = value;
}
/**
* Gets the value of the deploymentArtifacts property.
*
* @return
* possible object is
* {@link TDeploymentArtifacts }
*
*/
public TDeploymentArtifacts getDeploymentArtifacts() {
return deploymentArtifacts;
}
/**
* Sets the value of the deploymentArtifacts property.
*
* @param value
* allowed object is
* {@link TDeploymentArtifacts }
*
*/
public void setDeploymentArtifacts(TDeploymentArtifacts value) {
this.deploymentArtifacts = 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 minInstances property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public int getMinInstances() {
if (minInstances == null) {
return 1;
} else {
return minInstances;
}
}
/**
* Sets the value of the minInstances property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setMinInstances(Integer value) {
this.minInstances = value;
}
/**
* Gets the value of the maxInstances property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMaxInstances() {
if (maxInstances == null) {
return "1";
} else {
return maxInstances;
}
}
/**
* Sets the value of the maxInstances property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMaxInstances(String value) {
this.maxInstances = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Capability" type="{http://docs.oasis-open.org/tosca/ns/2011/12}tCapability" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"capability"
})
public static class Capabilities {
@XmlElement(name = "Capability", required = true)
protected List<TCapability> capability;
/**
* Gets the value of the capability property.
*
* <p>
* 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 <CODE>set</CODE> method for the capability property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getCapability().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TCapability }
*
*
*/
public List<TCapability> getCapability() {
if (capability == null) {
capability = new ArrayList<TCapability>();
}
return this.capability;
}
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Policy" type="{http://docs.oasis-open.org/tosca/ns/2011/12}tPolicy" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"policy"
})
public static class Policies {
@XmlElement(name = "Policy", required = true)
protected List<TPolicy> policy;
/**
* Gets the value of the policy property.
*
* <p>
* 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 <CODE>set</CODE> method for the policy property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getPolicy().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TPolicy }
*
*
*/
public List<TPolicy> getPolicy() {
if (policy == null) {
policy = new ArrayList<TPolicy>();
}
return this.policy;
}
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Requirement" type="{http://docs.oasis-open.org/tosca/ns/2011/12}tRequirement" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"requirement"
})
public static class Requirements {
@XmlElement(name = "Requirement", required = true)
protected List<TRequirement> requirement;
/**
* Gets the value of the requirement property.
*
* <p>
* 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 <CODE>set</CODE> method for the requirement property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRequirement().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TRequirement }
*
*
*/
public List<TRequirement> getRequirement() {
if (requirement == null) {
requirement = new ArrayList<TRequirement>();
}
return this.requirement;
}
}
}