Package org.nuiton.eugene.models.object
Enum ObjectModelJavaModifier
- java.lang.Object
-
- java.lang.Enum<ObjectModelJavaModifier>
-
- org.nuiton.eugene.models.object.ObjectModelJavaModifier
-
- All Implemented Interfaces:
Serializable
,Comparable<ObjectModelJavaModifier>
,ObjectModelModifier
public enum ObjectModelJavaModifier extends Enum<ObjectModelJavaModifier> implements ObjectModelModifier
Enum that represents Java possible modifiers- Since:
- 2.4.3
- Author:
- Arnaud Thimel (Code Lutin)
-
-
Field Summary
Fields Modifier and Type Field Description static Set<? extends ObjectModelModifier>
visibilityModifiers
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ObjectModelJavaModifier
fromVisibility(String name)
String
getName()
boolean
isAssociationType()
boolean
isVisibility()
String
toString()
static ObjectModelJavaModifier
valueOf(String name)
Returns the enum constant of this type with the specified name.static ObjectModelJavaModifier[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STATIC
public static final ObjectModelJavaModifier STATIC
-
FINAL
public static final ObjectModelJavaModifier FINAL
-
ABSTRACT
public static final ObjectModelJavaModifier ABSTRACT
-
TRANSIENT
public static final ObjectModelJavaModifier TRANSIENT
-
PUBLIC
public static final ObjectModelJavaModifier PUBLIC
-
PROTECTED
public static final ObjectModelJavaModifier PROTECTED
-
PRIVATE
public static final ObjectModelJavaModifier PRIVATE
-
PACKAGE
public static final ObjectModelJavaModifier PACKAGE
-
VOLATILE
public static final ObjectModelJavaModifier VOLATILE
-
SYNCHRONIZED
public static final ObjectModelJavaModifier SYNCHRONIZED
-
NATIVE
public static final ObjectModelJavaModifier NATIVE
-
STRICTFP
public static final ObjectModelJavaModifier STRICTFP
-
-
Field Detail
-
visibilityModifiers
public static final Set<? extends ObjectModelModifier> visibilityModifiers
-
-
Method Detail
-
values
public static ObjectModelJavaModifier[] 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 (ObjectModelJavaModifier c : ObjectModelJavaModifier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ObjectModelJavaModifier 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<ObjectModelJavaModifier>
-
fromVisibility
public static ObjectModelJavaModifier fromVisibility(String name)
-
-