Enum.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.binding.corba.wsdl;
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.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
/**
* <p>Java class for enum complex type</p>.
*
* <p>The following schema fragment specifies the expected content contained within this class.</p>
*
* <pre>{@code
* <complexType name="enum">
* <complexContent>
* <extension base="{http://cxf.apache.org/bindings/corba}namedType">
* <sequence>
* <element name="enumerator" type="{http://cxf.apache.org/bindings/corba}enumerator" maxOccurs="unbounded"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* }</pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "enum", namespace = "http://cxf.apache.org/bindings/corba", propOrder = {
"enumerator"
})
public class Enum
extends NamedType
{
@XmlElement(namespace = "http://cxf.apache.org/bindings/corba", required = true)
protected List<Enumerator> enumerator;
/**
* Gets the value of the enumerator 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 enumerator property.</p>
*
* <p>
* For example, to add a new item, do as follows:
* </p>
* <pre>
* getEnumerator().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Enumerator }
* </p>
*
*
* @return
* The value of the enumerator property.
*/
public List<Enumerator> getEnumerator() {
if (enumerator == null) {
enumerator = new ArrayList<>();
}
return this.enumerator;
}
public boolean isSetEnumerator() {
return ((this.enumerator!= null)&&(!this.enumerator.isEmpty()));
}
public void unsetEnumerator() {
this.enumerator = null;
}
}