Package org.exbin.xbup.core.block
Enum XBBlockDataMode
- java.lang.Object
-
- java.lang.Enum<XBBlockDataMode>
-
- org.exbin.xbup.core.block.XBBlockDataMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<XBBlockDataMode>
public enum XBBlockDataMode extends java.lang.Enum<XBBlockDataMode>
Block data mode enumeration. Standard block can be either data block or node block.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATA_BLOCK
Block is data block.NODE_BLOCK
Block is node block.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XBBlockDataMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static XBBlockDataMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NODE_BLOCK
public static final XBBlockDataMode NODE_BLOCK
Block is node block. It must have at least one attribute and can have child blocks.
-
DATA_BLOCK
public static final XBBlockDataMode DATA_BLOCK
Block is data block. It can only contain data blob.
-
-
Method Detail
-
values
public static XBBlockDataMode[] 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 (XBBlockDataMode c : XBBlockDataMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XBBlockDataMode 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
-
-