Class DataFeatures

java.lang.Object
org.openscience.cdk.tools.DataFeatures

public class DataFeatures extends Object
Class with constants for possible data features defined in the a Data Feature Ontology. Actual integers are random and should not be used directly.

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.

Author:
Egon Willighagen <ewilligh@uni-koeln.de>
Source code:
main
Belongs to CDK module:
annotation