Enum CoAccreditedRemoteImportCDMFrComponent.SharedWithType
- java.lang.Object
-
- java.lang.Enum<CoAccreditedRemoteImportCDMFrComponent.SharedWithType>
-
- org.ametys.plugins.odfsync.cdmfr.components.impl.CoAccreditedRemoteImportCDMFrComponent.SharedWithType
-
- All Implemented Interfaces:
Serializable
,Comparable<CoAccreditedRemoteImportCDMFrComponent.SharedWithType>
- Enclosing class:
- CoAccreditedRemoteImportCDMFrComponent
public static enum CoAccreditedRemoteImportCDMFrComponent.SharedWithType extends Enum<CoAccreditedRemoteImportCDMFrComponent.SharedWithType>
Enum to define the way to detect shared subProgram
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONE
Shared subProgram are not handledWITH_SAME_TITLE
All subProgram with the same title are shared.WITH_SHARED_METADATA
The main subProgram set the other shared program in the metadata "shared-with"
-
Constructor Summary
Constructors Modifier Constructor Description private
SharedWithType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CoAccreditedRemoteImportCDMFrComponent.SharedWithType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CoAccreditedRemoteImportCDMFrComponent.SharedWithType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WITH_SHARED_METADATA
public static final CoAccreditedRemoteImportCDMFrComponent.SharedWithType WITH_SHARED_METADATA
The main subProgram set the other shared program in the metadata "shared-with"
-
WITH_SAME_TITLE
public static final CoAccreditedRemoteImportCDMFrComponent.SharedWithType WITH_SAME_TITLE
All subProgram with the same title are shared. The first imported subProgram is the main subProgram.
-
NONE
public static final CoAccreditedRemoteImportCDMFrComponent.SharedWithType NONE
Shared subProgram are not handled
-
-
Constructor Detail
-
SharedWithType
private SharedWithType()
-
-
Method Detail
-
values
public static CoAccreditedRemoteImportCDMFrComponent.SharedWithType[] 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 (CoAccreditedRemoteImportCDMFrComponent.SharedWithType c : CoAccreditedRemoteImportCDMFrComponent.SharedWithType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CoAccreditedRemoteImportCDMFrComponent.SharedWithType 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
-
-