Enum TypeDescriptionExtensionLevel
- java.lang.Object
-
- java.lang.Enum<TypeDescriptionExtensionLevel>
-
- com._1c.g5.v8.dt.md.ui.extension.aef.models.type.TypeDescriptionExtensionLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<TypeDescriptionExtensionLevel>
public enum TypeDescriptionExtensionLevel extends Enum<TypeDescriptionExtensionLevel>
Enumeration to indicate the level of possible extension of object types depending on the version
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CAN_EXTEND
Checked or notified or extension actionsCHECKED_ONLY
Checked or notified actionONE_STATUS_ONLY
Simple check box without action
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeDescriptionExtensionLevel
getExtensionLevel(ObjectExtension extension, Version projectVersion)
Gets extension level by given object and versionstatic TypeDescriptionExtensionLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static TypeDescriptionExtensionLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONE_STATUS_ONLY
public static final TypeDescriptionExtensionLevel ONE_STATUS_ONLY
Simple check box without action
-
CHECKED_ONLY
public static final TypeDescriptionExtensionLevel CHECKED_ONLY
Checked or notified action
-
CAN_EXTEND
public static final TypeDescriptionExtensionLevel CAN_EXTEND
Checked or notified or extension actions
-
-
Method Detail
-
values
public static TypeDescriptionExtensionLevel[] 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 (TypeDescriptionExtensionLevel c : TypeDescriptionExtensionLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeDescriptionExtensionLevel 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
-
getExtensionLevel
public static TypeDescriptionExtensionLevel getExtensionLevel(ObjectExtension extension, Version projectVersion)
Gets extension level by given object and version- Parameters:
extension
- the targetObjectExtension
, cannot benull
projectVersion
- the version of current project, cannot benull
- Returns:
- the exension level, never
null
-
-