Struct.java
//
// This file was generated by the Eclipse Implementation of JAXB, v4.0.5
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
//
package org.apache.cxf.abc.test;
import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlType;
/**
* <p>Java class for struct complex type</p>.
*
* <p>The following schema fragment specifies the expected content contained within this class.</p>
*
* <pre>{@code
* <complexType name="struct">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="member" type="{http://cxf.apache.org/abc/test}memberType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="struct" type="{http://cxf.apache.org/abc/test}struct" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* }</pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "struct", propOrder = {
"member",
"struct"
})
public class Struct {
protected List<MemberType> member;
protected List<Struct> struct;
@XmlAttribute(name = "name", required = true)
protected String name;
/**
* Gets the value of the member 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 member property.</p>
*
* <p>
* For example, to add a new item, do as follows:
* </p>
* <pre>
* getMember().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link MemberType }
* </p>
*
*
* @return
* The value of the member property.
*/
public List<MemberType> getMember() {
if (member == null) {
member = new ArrayList<>();
}
return this.member;
}
public boolean isSetMember() {
return ((this.member!= null)&&(!this.member.isEmpty()));
}
public void unsetMember() {
this.member = null;
}
/**
* Gets the value of the struct 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 struct property.</p>
*
* <p>
* For example, to add a new item, do as follows:
* </p>
* <pre>
* getStruct().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Struct }
* </p>
*
*
* @return
* The value of the struct property.
*/
public List<Struct> getStruct() {
if (struct == null) {
struct = new ArrayList<>();
}
return this.struct;
}
public boolean isSetStruct() {
return ((this.struct!= null)&&(!this.struct.isEmpty()));
}
public void unsetStruct() {
this.struct = null;
}
/**
* 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;
}
public boolean isSetName() {
return (this.name!= null);
}
}