Enum ContentTypeStateComponent.ContentTypeState
- java.lang.Object
-
- java.lang.Enum<ContentTypeStateComponent.ContentTypeState>
-
- org.ametys.plugins.contenttypeseditor.edition.ContentTypeStateComponent.ContentTypeState
-
- All Implemented Interfaces:
Serializable
,Comparable<ContentTypeStateComponent.ContentTypeState>
- Enclosing class:
- ContentTypeStateComponent
public static enum ContentTypeStateComponent.ContentTypeState extends Enum<ContentTypeStateComponent.ContentTypeState>
States of a content type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EDIT
Means that a content type is in edition in the content type editor toolRESTART
Means that a content type has not been modified in the content type editor toolSAVE
Means that a content type is saved (the xml file is saved) but the server has not been restarted in the content type editor tool
-
Constructor Summary
Constructors Modifier Constructor Description private
ContentTypeState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContentTypeStateComponent.ContentTypeState
valueOf(String name)
Returns the enum constant of this type with the specified name.static ContentTypeStateComponent.ContentTypeState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EDIT
public static final ContentTypeStateComponent.ContentTypeState EDIT
Means that a content type is in edition in the content type editor tool
-
SAVE
public static final ContentTypeStateComponent.ContentTypeState SAVE
Means that a content type is saved (the xml file is saved) but the server has not been restarted in the content type editor tool
-
RESTART
public static final ContentTypeStateComponent.ContentTypeState RESTART
Means that a content type has not been modified in the content type editor tool
-
-
Constructor Detail
-
ContentTypeState
private ContentTypeState()
-
-
Method Detail
-
values
public static ContentTypeStateComponent.ContentTypeState[] 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 (ContentTypeStateComponent.ContentTypeState c : ContentTypeStateComponent.ContentTypeState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContentTypeStateComponent.ContentTypeState 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
-
-