Enum Class SavePolicy

java.lang.Object
java.lang.Enum<SavePolicy>
org.cytoscape.model.SavePolicy
All Implemented Interfaces:
Serializable, Comparable<SavePolicy>, java.lang.constant.Constable

public enum SavePolicy extends Enum<SavePolicy>
The SavePolicy of an object specifies whether or not it will be saved.

Cytoscape Backwards Compatibility (Enum): This class is an enum therefore can't be extended by users. This means that we may add methods or enum values for minor version updates. Methods or enum values will only be removed for major version updates.

Module: model-api

To use this in your app, include the following dependency in your POM:

<dependency>
    <groupId>org.cytoscape</groupId>
    <artifactId>model-api</artifactId>
</dependency>
  • Enum Constant Details

    • DO_NOT_SAVE

      public static final SavePolicy DO_NOT_SAVE
      The object should not be saved.
    • SESSION_FILE

      public static final SavePolicy SESSION_FILE
      The object should be saved in the session file.
  • Method Details

    • values

      public static SavePolicy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SavePolicy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null