public class DefaultSerialInfo extends java.lang.Object implements SerialInfo
Modifier and Type | Field and Description |
---|---|
static int |
RANGES |
static int |
SINGLE_VALUES |
DATE, NUMERIC
Constructor and Description |
---|
DefaultSerialInfo() |
DefaultSerialInfo(java.lang.String timeFormat) |
DefaultSerialInfo(Time time,
java.lang.String description,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(double value)
Adds a new time value in the array.
|
void |
addValue(java.lang.String value)
Adds a new time value in the array.
|
int |
getDataType()
Gets the data type
|
java.lang.String |
getDescription()
Gets the description
|
java.lang.String |
getSerialName()
Gets the serial name
|
java.util.ArrayList<?> |
getTime()
Gets the list of dates
|
java.lang.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(java.lang.String description)
Sets the description
|
void |
setSerialName(java.lang.String serialName)
Sets the serial name
|
void |
setTime(java.util.ArrayList<?> time)
Sets the list of dates
|
void |
setTimeType(int timeType)
Sets the time type
|
void |
setTimeType(java.lang.String timeType)
Sets the time type
|
public static final int SINGLE_VALUES
public static final int RANGES
public DefaultSerialInfo()
public DefaultSerialInfo(java.lang.String timeFormat)
public DefaultSerialInfo(Time time, java.lang.String description, java.lang.String name) throws java.text.ParseException
java.text.ParseException
public java.lang.String getSerialName()
SerialInfo
getSerialName
in interface SerialInfo
public void setSerialName(java.lang.String serialName)
SerialInfo
setSerialName
in interface SerialInfo
public java.util.ArrayList<?> getTime()
SerialInfo
getTime
in interface SerialInfo
public void setTime(java.util.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(java.lang.String timeType)
SerialInfo
setTimeType
in interface SerialInfo
public void addValue(java.lang.String value) throws java.text.ParseException
SerialInfo
addValue
in interface SerialInfo
java.text.ParseException
public void addValue(double value)
SerialInfo
addValue
in interface SerialInfo
public java.lang.String getTimeInfo(int pos)
SerialInfo
getTimeInfo
in interface SerialInfo
public java.lang.String getDescription()
SerialInfo
getDescription
in interface SerialInfo
public void setDescription(java.lang.String description)
SerialInfo
setDescription
in interface SerialInfo
public boolean isInRange(SerialInfo tInfo)
SerialInfo
isInRange
in interface SerialInfo