org.omg.uml.AggregationKind Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.09.13 at 12:06:48 PM EST
//
package org.omg.uml;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for AggregationKind.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="AggregationKind">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="none"/>
* <enumeration value="shared"/>
* <enumeration value="composite"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "AggregationKind")
@XmlEnum
public enum AggregationKind {
/**
* Indicates that the property has no aggregation.
*
*/
@XmlEnumValue("none")
NONE("none"),
/**
* Indicates that the property has a shared aggregation.
*
*/
@XmlEnumValue("shared")
SHARED("shared"),
/**
* Indicates that the property is aggregated compositely, i.e., the composite object has responsibility for the existence and storage of the composed objects (parts).
*
*/
@XmlEnumValue("composite")
COMPOSITE("composite");
private final String value;
AggregationKind(String v) {
value = v;
}
public String value() {
return value;
}
public static AggregationKind fromValue(String v) {
for (AggregationKind c: AggregationKind.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy