com.labs64.netlicensing.schema.context.List Maven / Gradle / Ivy
Show all versions of netlicensing-client Show documentation
//
// This file was generated by the Eclipse Implementation of JAXB, v4.0.4
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
//
package com.labs64.netlicensing.schema.context;
import java.io.Serializable;
import java.util.ArrayList;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlType;
/**
* A list element groups properties and nested lists
*
* Java class for list complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "list", propOrder = {
"property",
"list"
})
public class List implements Serializable
{
private static final long serialVersionUID = 1L;
/**
* Simple property list element
*
*/
protected java.util.List property;
/**
* Nested list
*
*/
protected java.util.List list;
/**
* Name of the list. Identifies this list if multiple lists are present at the same
* level.
*
*/
@XmlAttribute(name = "name", required = true)
protected String name;
/**
* Default no-arg constructor
*
*/
public List() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public List(final java.util.List property, final java.util.List list, final String name) {
this.property = property;
this.list = list;
this.name = name;
}
/**
* Simple property list element
*
* Gets the value of the property property.
*
* 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 set
method for the property property.
*
*
* For example, to add a new item, do as follows:
*
*
* getProperty().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Property }
*
*
*
* @return
* The value of the property property.
*/
public java.util.List getProperty() {
if (property == null) {
property = new ArrayList<>();
}
return this.property;
}
/**
* Nested list
*
* Gets the value of the list property.
*
* 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 set
method for the list property.
*
*
* For example, to add a new item, do as follows:
*
*
* getList().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link List }
*
*
*
* @return
* The value of the list property.
*/
public java.util.List getList() {
if (list == null) {
list = new ArrayList<>();
}
return this.list;
}
/**
* Name of the list. Identifies this list if multiple lists are present at the same
* level.
*
* @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 }
*
* @see #getName()
*/
public void setName(String value) {
this.name = value;
}
}