Package org.nuiton.eugene.models.object
Enum ObjectModelUMLModifier
- java.lang.Object
-
- java.lang.Enum<ObjectModelUMLModifier>
-
- org.nuiton.eugene.models.object.ObjectModelUMLModifier
-
- All Implemented Interfaces:
Serializable
,Comparable<ObjectModelUMLModifier>
,ObjectModelModifier
public enum ObjectModelUMLModifier extends Enum<ObjectModelUMLModifier> implements ObjectModelModifier
Enum that represents UML modifiers.- Since:
- 2.4.3
- Author:
- Arnaud Thimel (Code Lutin)
-
-
Field Summary
Fields Modifier and Type Field Description static Set<ObjectModelUMLModifier>
associationTypes
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
boolean
isAssociationType()
boolean
isVisibility()
String
toString()
static ObjectModelUMLModifier
valueOf(String name)
Returns the enum constant of this type with the specified name.static ObjectModelUMLModifier[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AGGREGATE
public static final ObjectModelUMLModifier AGGREGATE
-
COMPOSITE
public static final ObjectModelUMLModifier COMPOSITE
-
UNIQUE
public static final ObjectModelUMLModifier UNIQUE
-
ORDERED
public static final ObjectModelUMLModifier ORDERED
-
NAVIGABLE
public static final ObjectModelUMLModifier NAVIGABLE
-
-
Field Detail
-
associationTypes
public static final Set<ObjectModelUMLModifier> associationTypes
-
-
Method Detail
-
values
public static ObjectModelUMLModifier[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ObjectModelUMLModifier c : ObjectModelUMLModifier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ObjectModelUMLModifier valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isVisibility
public boolean isVisibility()
- Specified by:
isVisibility
in interfaceObjectModelModifier
- Returns:
- true is the current ObjectModelModifier is a Java visibility
-
isAssociationType
public boolean isAssociationType()
- Specified by:
isAssociationType
in interfaceObjectModelModifier
- Returns:
- true is the current ObjectModelModifier is an UML association type
-
getName
public String getName()
- Specified by:
getName
in interfaceObjectModelModifier
- Returns:
- the name of the constant. This refers to Enum.name().
-
toString
public String toString()
- Overrides:
toString
in classEnum<ObjectModelUMLModifier>
-
-