public final class MolnamePropertyExtractor extends Object implements PropertyExtractor<String>
Constructor and Description |
---|
MolnamePropertyExtractor(boolean allowMissing) |
Modifier and Type | Method and Description |
---|---|
String |
extract(StructureRecord mol)
Extract/calculate represented property from a structure.
|
Class<String> |
getExtractedType()
Extracted type.
|
String |
toString() |
public Class<String> getExtractedType()
PropertyExtractor
getExtractedType
in interface PropertyExtractor<String>
public String extract(StructureRecord mol) throws IllegalArgumentException
PropertyExtractor
IllegalArgumentException
is thrown when the property of the represented type can not be
extracted, including the following example cases:
extract
in interface PropertyExtractor<String>
mol
- Input structureIllegalArgumentException
- when the represented type can not be extracted. Implementation note: this is the
expected exception thrown when Chemical Terms are encapsulated and type mismatch surfaces only after execution