public class DefaultSerialInfo extends Object implements SerialInfo
Modifier and Type | Field and Description |
---|---|
static int |
RANGES |
static int |
SINGLE_VALUES |
DATE, NUMERIC
Constructor and Description |
---|
DefaultSerialInfo() |
DefaultSerialInfo(String timeFormat) |
DefaultSerialInfo(Time time,
String description,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(double value)
Adds a new time value in the array.
|
void |
addValue(String value)
Adds a new time value in the array.
|
int |
getDataType()
Gets the data type
|
String |
getDescription()
Gets the description
|
String |
getSerialName()
Gets the serial name
|
ArrayList<?> |
getTime()
Gets the list of dates
|
String |
getTimeInfo(int pos)
Gets a string which represents a time information for that position.
|
int |
getTimeType()
Gets the time type
|
boolean |
isInRange(SerialInfo tInfo)
Returns true if the range selected in the parameters is
inside the current.
|
void |
setDataType(int dataType)
Sets the data type
|
void |
setDescription(String description)
Sets the description
|
void |
setSerialName(String serialName)
Sets the serial name
|
void |
setTime(ArrayList<?> time)
Sets the list of dates
|
void |
setTimeType(int timeType)
Sets the time type
|
void |
setTimeType(String timeType)
Sets the time type
|
public static final int SINGLE_VALUES
public static final int RANGES
public DefaultSerialInfo()
public DefaultSerialInfo(String timeFormat)
public DefaultSerialInfo(Time time, String description, String name) throws ParseException
ParseException
public String getSerialName()
SerialInfo
getSerialName
in interface SerialInfo
public void setSerialName(String serialName)
SerialInfo
setSerialName
in interface SerialInfo
public ArrayList<?> getTime()
SerialInfo
getTime
in interface SerialInfo
public void setTime(ArrayList<?> time)
SerialInfo
setTime
in interface SerialInfo
public int getTimeType()
SerialInfo
getTimeType
in interface SerialInfo
public void setTimeType(int timeType)
SerialInfo
setTimeType
in interface SerialInfo
public int getDataType()
SerialInfo
getDataType
in interface SerialInfo
public void setDataType(int dataType)
SerialInfo
setDataType
in interface SerialInfo
public void setTimeType(String timeType)
SerialInfo
setTimeType
in interface SerialInfo
public void addValue(String value) throws ParseException
SerialInfo
addValue
in interface SerialInfo
ParseException
public void addValue(double value)
SerialInfo
addValue
in interface SerialInfo
public String getTimeInfo(int pos)
SerialInfo
getTimeInfo
in interface SerialInfo
public String getDescription()
SerialInfo
getDescription
in interface SerialInfo
public void setDescription(String description)
SerialInfo
setDescription
in interface SerialInfo
public boolean isInRange(SerialInfo tInfo)
SerialInfo
isInRange
in interface SerialInfo