Enum MatrixSettings.Direction
- java.lang.Object
-
- java.lang.Enum<MatrixSettings.Direction>
-
- com.nomagic.magicdraw.dependencymatrix.persistence.MatrixSettings.Direction
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MatrixSettings.Direction>
- Enclosing class:
- MatrixSettings
public static enum MatrixSettings.Direction extends java.lang.Enum<MatrixSettings.Direction>
Dependency filter and default edit direction setting enum
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTH
COLUMN_TO_ROW
ROW_TO_COLUMN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MatrixSettings.Direction
getDirectionFromEnum(java.lang.Object direction)
Converts enumeration literal to enum valuestatic MatrixSettings.Direction
getEnum(java.lang.String type)
finds direction by its representation typejava.lang.String
getType()
Returns representation type for this enum valueMatrixSettings.Direction
invert()
Gets inverted direction or the sam for BOTH.boolean
isColumnToRowSupported()
Returns if column to row mode is supported -COLUMN_TO_ROW
andBOTH
cases.boolean
isRowToColumnSupported()
Returns if row to column mode is supported -ROW_TO_COLUMN
andBOTH
cases.static MatrixSettings.Direction
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MatrixSettings.Direction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ROW_TO_COLUMN
public static final MatrixSettings.Direction ROW_TO_COLUMN
-
COLUMN_TO_ROW
public static final MatrixSettings.Direction COLUMN_TO_ROW
-
BOTH
public static final MatrixSettings.Direction BOTH
-
-
Method Detail
-
values
public static MatrixSettings.Direction[] 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 (MatrixSettings.Direction c : MatrixSettings.Direction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MatrixSettings.Direction valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getDirectionFromEnum
public static MatrixSettings.Direction getDirectionFromEnum(@CheckForNull java.lang.Object direction)
Converts enumeration literal to enum value- Parameters:
direction
- enumeration literal object- Returns:
- direction corresponding to enumeration literal value
-
getType
public java.lang.String getType()
Returns representation type for this enum value- Returns:
- representation string
-
isRowToColumnSupported
public boolean isRowToColumnSupported()
Returns if row to column mode is supported -ROW_TO_COLUMN
andBOTH
cases.- Returns:
- true if supported.
-
isColumnToRowSupported
public boolean isColumnToRowSupported()
Returns if column to row mode is supported -COLUMN_TO_ROW
andBOTH
cases.- Returns:
- true if supported.
-
getEnum
public static MatrixSettings.Direction getEnum(java.lang.String type)
finds direction by its representation type- Parameters:
type
- representation type- Returns:
- enum value of this type
-
invert
public MatrixSettings.Direction invert()
Gets inverted direction or the sam for BOTH.- Returns:
- inverted direction
-
-