org.plasma.metamodel.Enumeration Maven / Gradle / Ivy
Show all versions of plasma-metamodel Show documentation
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.0
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.07.01 at 02:31:06 PM MST
//
package org.plasma.metamodel;
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.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
/**
* An enumeration definition
*
* Java class for Enumeration complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Enumeration">
* <complexContent>
* <extension base="{http://plasma.org/metamodel}Type">
* <sequence>
* <element ref="{http://plasma.org/metamodel}Documentation" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://plasma.org/metamodel}EnumerationLiteral" maxOccurs="unbounded"/>
* </sequence>
* <attribute name="uri" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Enumeration", propOrder = {
"documentations",
"enumerationLiterals"
})
@XmlRootElement(name = "Enumeration")
public class Enumeration
extends Type
{
@XmlElement(name = "Documentation")
protected List documentations;
@XmlElement(name = "EnumerationLiteral", required = true)
protected List enumerationLiterals;
@XmlAttribute(name = "uri", required = true)
protected String uri;
/**
* Gets the value of the documentations 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 Jakarta XML Binding object.
* This is why there is not a set
method for the documentations property.
*
*
* For example, to add a new item, do as follows:
*
* getDocumentations().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Documentation }
*
*
*/
public List getDocumentations() {
if (documentations == null) {
documentations = new ArrayList();
}
return this.documentations;
}
/**
* Gets the value of the enumerationLiterals 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 Jakarta XML Binding object.
* This is why there is not a set
method for the enumerationLiterals property.
*
*
* For example, to add a new item, do as follows:
*
* getEnumerationLiterals().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link EnumerationLiteral }
*
*
*/
public List getEnumerationLiterals() {
if (enumerationLiterals == null) {
enumerationLiterals = new ArrayList();
}
return this.enumerationLiterals;
}
/**
* Gets the value of the uri property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUri() {
return uri;
}
/**
* Sets the value of the uri property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUri(String value) {
this.uri = value;
}
}