|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.marvin.io.MFieldAccessor
public abstract class MFieldAccessor
Abstract class for extracting fields (properties) from input and storing them. Under development, please do not implement it yet!
| Constructor Summary | |
|---|---|
MFieldAccessor()
|
|
| Method Summary | |
|---|---|
abstract void |
getFields(int irec,
Molecule mol,
java.lang.String[] keys,
MProp[] values)
Extracts properties. |
abstract java.lang.String[] |
getKeys(int irec,
Molecule mol)
Gets the keys in a record. |
abstract Molecule |
getMainMolecule(int irec,
Molecule mol)
Gets the main molecule object in a record. |
abstract boolean |
isEditable(int irec,
Molecule mol,
java.lang.String key)
Tests whether a field is editable or not. |
protected java.lang.String |
propToString(MProp p)
Converts a property to a string. |
void |
setField(int irec,
Molecule mol,
java.lang.String key,
MProp p)
Sets a property. |
abstract void |
setFields(int irec,
Molecule mol,
java.lang.String[] keys,
MProp[] values)
Sets properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MFieldAccessor()
| Method Detail |
|---|
public abstract Molecule getMainMolecule(int irec,
Molecule mol)
irec - the record numbermol - input molecule, may be null in case of an
implementation for which the record number is enough
null if it does
not exist
public abstract java.lang.String[] getKeys(int irec,
Molecule mol)
irec - the record numbermol - input molecule, may be null in case of an
implementation for which the record number is enough
public abstract void getFields(int irec,
Molecule mol,
java.lang.String[] keys,
MProp[] values)
irec - the record numbermol - input molecule, may be null in case of an
implementation for which the record number is enoughkeys - array of field keysvalues - the output array, may contain null
if a property is not found
public abstract void setFields(int irec,
Molecule mol,
java.lang.String[] keys,
MProp[] values)
irec - the record numbermol - input molecule, may be null in case of an
implementation for which the record number is enoughkeys - array of field keysvalues - array of values
public abstract boolean isEditable(int irec,
Molecule mol,
java.lang.String key)
irec - the record numbermol - input molecule, may be null in case of an
implementation for which the record number is enoughkey - the field key
true if setFields works for this key,
false otherwise
public final void setField(int irec,
Molecule mol,
java.lang.String key,
MProp p)
irec - the record numbermol - input molecule, may be null in case of an
implementation for which the record number is enoughkey - the field keyp - the property valueprotected java.lang.String propToString(MProp p)
p - the property
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||