public class DescriptorResultFormatter extends net.idea.modbcum.p.DefaultAmbitProcessor<org.openscience.cdk.qsar.DescriptorValue,Object>
DescriptorValue
as a stringModifier and Type | Field and Description |
---|---|
protected boolean |
convertToString |
protected NumberFormat |
format |
protected int |
index |
Constructor and Description |
---|
DescriptorResultFormatter(boolean convertToString) |
DescriptorResultFormatter(boolean convertToString,
int index) |
DescriptorResultFormatter(Locale locale) |
DescriptorResultFormatter(Locale locale,
int index) |
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Index of the array, if the Descrptor value is of type DoubleArrayResult or IntegerArrayResult
|
boolean |
isConvertToString() |
Object |
process(org.openscience.cdk.qsar.DescriptorValue target) |
void |
setConvertToString(boolean convertToString) |
void |
setIndex(int index) |
void |
setLocale(Locale locale) |
protected boolean convertToString
protected NumberFormat format
protected int index
public DescriptorResultFormatter(boolean convertToString)
public DescriptorResultFormatter(Locale locale)
public DescriptorResultFormatter(Locale locale, int index)
public DescriptorResultFormatter(boolean convertToString, int index)
public boolean isConvertToString()
public void setConvertToString(boolean convertToString)
public void setLocale(Locale locale)
public int getIndex()
public void setIndex(int index)
public Object process(org.openscience.cdk.qsar.DescriptorValue target) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitException
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.