jklustor-overlap-0.0.2-20140619012940 (ChemAxon)


com.chemaxon.overlap.io
Class StructureRecordImpl

Object
  extended by com.chemaxon.overlap.io.StructureRecordImpl
All Implemented Interfaces:
StructureRecord

@Beta
 class StructureRecordImpl
extends Object
implements StructureRecord

Simple structure record implementation.

Author:
Gabor Imre

Constructor Summary
StructureRecordImpl(String format, int currReadno, String molString)
          Construct.
 
Method Summary
 int getReadIndex()
          Represented structure/record index.
 Optional<String> getStructureSource()
          Structure source if applicable.
 chemaxon.struc.Molecule parseMolecule()
          Parse molecule if not parsed successfully already.
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StructureRecordImpl

StructureRecordImpl(String format,
                    int currReadno,
                    String molString)
Construct.

Parameters:
format - Structure format
currReadno - Represented 0-based record index
molString - Represented structure source or null
Method Detail

getReadIndex

public int getReadIndex()
Description copied from interface: StructureRecord
Represented structure/record index.

0-based index of the structure in the structure file.

Specified by:
getReadIndex in interface StructureRecord
Returns:
0-based represented record index

getStructureSource

public Optional<String> getStructureSource()
Description copied from interface: StructureRecord
Structure source if applicable.

Structure source when returned by MRecord.getMolString() or otherwise applicable.

Specified by:
getStructureSource in interface StructureRecord
Returns:
Structure source if available

parseMolecule

public chemaxon.struc.Molecule parseMolecule()
                                      throws chemaxon.formats.MolFormatException
Description copied from interface: StructureRecord
Parse molecule if not parsed successfully already.

Specified by:
parseMolecule in interface StructureRecord
Returns:
Parsed molecule
Throws:
chemaxon.formats.MolFormatException - re-thrown parse exception

toString

public String toString()
Overrides:
toString in class Object

jklustor-overlap-0.0.2-20140619012940 (ChemAxon)