Enum ContentOption
- java.lang.Object
-
- java.lang.Enum<ContentOption>
-
- org.jetbrains.mps.openapi.persistence.ContentOption
-
- All Implemented Interfaces:
Serializable
,Comparable<ContentOption>
,ModelLoadingOption
public enum ContentOption extends Enum<ContentOption> implements ModelLoadingOption
If appears among the parameters in theModelFactory.load(DataSource, ModelLoadingOption...)
then we don't care to build complete model on load, rather read content as-is, and tread loaded model as mere container for nodes,SModelData
-like. We use this mechanism from merge driver and various tools that are going to access nodes from the model but are not going to expose this model anywhere else. [AT]
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTENT_ONLY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContentOption
valueOf(String name)
Returns the enum constant of this type with the specified name.static ContentOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTENT_ONLY
public static final ContentOption CONTENT_ONLY
-
-
Method Detail
-
values
public static ContentOption[] 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 (ContentOption c : ContentOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContentOption 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
-
-