public enum DataModel extends Enum<DataModel>
| Enum Constant and Description |
|---|
Bits32
Represents a data model known to be based on 32-bit entities.
|
Bits64
Represents a data model known to be based on 64-bit entities.
|
Unknown
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
static DataModel |
getDataModel(boolean retNull)
Returns the current data model.
|
boolean |
isKnown()
Returns true except for
Unknown. |
static DataModel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataModel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataModel Bits64
public static final DataModel Bits32
public static final DataModel Unknown
private final String code
public static DataModel[] values()
for (DataModel c : DataModel.values()) System.out.println(c);
public static DataModel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static DataModel getDataModel(boolean retNull)
Unknown),
then null is returned if retNull is set.
Otherwise an exception is thrown.retNull - whether null is returned if the data model is invalid.IllegalStateException - if the data model is unknown and retNull is not set.public String getCode()
public boolean isKnown()
Unknown.Copyright © 2012–2018 Simuline Organization (l2r). All rights reserved.