Package org.exbin.bined
Enum EditOperation
- java.lang.Object
-
- java.lang.Enum<EditOperation>
-
- org.exbin.bined.EditOperation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EditOperation>
public enum EditOperation extends java.lang.Enum<EditOperation>
Enumeration of edit operations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EditOperation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EditOperation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSERT
public static final EditOperation INSERT
Data are inserted at cursor position. Document is extended by size of the inserted data, data at cursor position moved forward to provide space and then inserted data are stored in this new space.
-
OVERWRITE
public static final EditOperation OVERWRITE
Data are replaced at cursor position. If size of data is greater than size of the document and edit is not in "overwrite only" mode, document is extended so that inserted data will fit in.
-
-
Method Detail
-
values
public static EditOperation[] 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 (EditOperation c : EditOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EditOperation 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
-
-