package org.zstack.test.deployer.schema; import javax.xml.bind.annotation.*; import java.util.ArrayList; import java.util.List; /** * <p>Java class for HostConfigBase complex type. * <p> * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * <complexType name="HostConfigBase"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="hostTag" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="managementIp" type="{http://www.w3.org/2001/XMLSchema}string" default="10.1.1.10" /> * </restriction> * </complexContent> * </complexType> * </pre> */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "HostConfigBase", propOrder = { "hostTag" }) @XmlSeeAlso({ SimulatorHostConfig.class, KvmHostConfig.class }) public class HostConfigBase { protected List<String> hostTag; @XmlAttribute(name = "name", required = true) protected String name; @XmlAttribute(name = "description") protected String description; @XmlAttribute(name = "managementIp") protected String managementIp; /** * Gets the value of the hostTag property. * <p> * <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 hostTag property. * <p> * <p> * For example, to add a new item, do as follows: * <pre> * getHostTag().add(newItem); * </pre> * <p> * <p> * <p> * Objects of the following type(s) are allowed in the list * {@link String } */ public List<String> getHostTag() { if (hostTag == null) { hostTag = new ArrayList<String>(); } return this.hostTag; } /** * 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 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 managementIp property. * * @return possible object is * {@link String } */ public String getManagementIp() { if (managementIp == null) { return "10.1.1.10"; } else { return managementIp; } } /** * Sets the value of the managementIp property. * * @param value allowed object is * {@link String } */ public void setManagementIp(String value) { this.managementIp = value; } }