1 2 package org.metricshub.winrm.service.shell; 3 4 import java.util.ArrayList; 5 import java.util.List; 6 import jakarta.xml.bind.annotation.XmlAccessType; 7 import jakarta.xml.bind.annotation.XmlAccessorType; 8 import jakarta.xml.bind.annotation.XmlElement; 9 import jakarta.xml.bind.annotation.XmlType; 10 11 12 /** 13 * <p>Java class for EnvironmentVariableList complex type</p>. 14 * 15 * <p>The following schema fragment specifies the expected content contained within this class.</p> 16 * 17 * <pre>{@code 18 * <complexType name="EnvironmentVariableList"> 19 * <complexContent> 20 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 21 * <sequence> 22 * <element name="Variable" type="{http://schemas.microsoft.com/wbem/wsman/1/windows/shell}EnvironmentVariable" maxOccurs="unbounded"/> 23 * </sequence> 24 * </restriction> 25 * </complexContent> 26 * </complexType> 27 * }</pre> 28 * 29 * 30 */ 31 @XmlAccessorType(XmlAccessType.FIELD) 32 @XmlType(name = "EnvironmentVariableList", propOrder = { 33 "variable" 34 }) 35 public class EnvironmentVariableList { 36 37 @XmlElement(name = "Variable", required = true) 38 protected List<EnvironmentVariable> variable; 39 40 /** 41 * Gets the value of the variable property. 42 * 43 * <p>This accessor method returns a reference to the live list, 44 * not a snapshot. Therefore any modification you make to the 45 * returned list will be present inside the JAXB object. 46 * This is why there is not a <CODE>set</CODE> method for the variable property.</p> 47 * 48 * <p> 49 * For example, to add a new item, do as follows: 50 * </p> 51 * <pre> 52 * getVariable().add(newItem); 53 * </pre> 54 * 55 * 56 * <p> 57 * Objects of the following type(s) are allowed in the list 58 * {@link EnvironmentVariable } 59 * </p> 60 * 61 * 62 * @return 63 * The value of the variable property. 64 */ 65 public List<EnvironmentVariable> getVariable() { 66 if (variable == null) { 67 variable = new ArrayList<>(); 68 } 69 return this.variable; 70 } 71 72 }