public class DataFeatures extends Object
To test whether a IChemFormat supports a certain feature, the following code can be used:
int features = new XYZFormat().getSupportedDataFeatures();
boolean has3DCoords = (features & HAS_3D_COORDINATES) == HAS_3D_COORDINATES;
This list of constants matches the latest Blue Obelisk Data Features Ontology.
Modifier and Type | Field and Description |
---|---|
static int |
HAS_2D_COORDINATES |
static int |
HAS_3D_COORDINATES |
static int |
HAS_ATOM_ELEMENT_SYMBOL |
static int |
HAS_ATOM_FORMAL_CHARGES |
static int |
HAS_ATOM_HYBRIDIZATIONS
FIXME: NOT YET IN BODF !!!
|
static int |
HAS_ATOM_ISOTOPE_NUMBERS |
static int |
HAS_ATOM_MASS_NUMBERS |
static int |
HAS_ATOM_PARTIAL_CHARGES |
static int |
HAS_DIETZ_REPRESENTATION |
static int |
HAS_FRACTIONAL_CRYSTAL_COORDINATES |
static int |
HAS_GRAPH_REPRESENTATION |
static int |
HAS_REACTIONS
FIXME: NOT YET IN BODF !!!
|
static int |
HAS_UNITCELL_PARAMETERS
FIXME: NOT YET IN BODF !!!
|
static int |
NONE
Indicated that no feature are defined.
|
Constructor and Description |
---|
DataFeatures() |
public static final int NONE
public static final int HAS_2D_COORDINATES
public static final int HAS_3D_COORDINATES
public static final int HAS_FRACTIONAL_CRYSTAL_COORDINATES
public static final int HAS_ATOM_ELEMENT_SYMBOL
public static final int HAS_ATOM_PARTIAL_CHARGES
public static final int HAS_ATOM_FORMAL_CHARGES
public static final int HAS_ATOM_HYBRIDIZATIONS
public static final int HAS_ATOM_MASS_NUMBERS
public static final int HAS_ATOM_ISOTOPE_NUMBERS
public static final int HAS_GRAPH_REPRESENTATION
public static final int HAS_DIETZ_REPRESENTATION
public static final int HAS_UNITCELL_PARAMETERS
public static final int HAS_REACTIONS
Copyright © 2018. All Rights Reserved.