com.stimulsoft.base.range
Class ShortRange

java.lang.Object
  extended by com.stimulsoft.base.range.Range
      extended by com.stimulsoft.base.range.ShortRange
All Implemented Interfaces:
IStiSerializable, IStiSerializableToString

public class ShortRange
extends Range


Field Summary
 short From
           
 short To
           
 
Constructor Summary
ShortRange()
           
ShortRange(short from, short to)
           
 
Method Summary
 boolean Contains(short value)
           
 void deserialize(java.lang.String strObject)
          Десериализация объекта из строки.
static ShortRange fromSerializeValue(java.lang.String str)
           
 java.lang.Object getFromObject()
          Gets or sets From item of range.
 java.lang.String getRangeName()
          Gets specified name of range.
 StiSystemTypeEnum getRangeType()
          Gets the type of range items.
 java.lang.Object getToObject()
          Gets or set To item of range.
 java.lang.String serialize()
          Сериализация объекта в строку.
 void setFromObject(java.lang.Object value)
           
 void setToObject(java.lang.Object value)
           
 
Methods inherited from class com.stimulsoft.base.range.Range
fromStringValue, Parse, setFromAndTo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

From

public short From

To

public short To
Constructor Detail

ShortRange

public ShortRange()

ShortRange

public ShortRange(short from,
                  short to)
Method Detail

getRangeName

public java.lang.String getRangeName()
Gets specified name of range. Range name equal to name of range class.

Specified by:
getRangeName in class Range

getRangeType

public StiSystemTypeEnum getRangeType()
Gets the type of range items.

Specified by:
getRangeType in class Range

getFromObject

public java.lang.Object getFromObject()
Gets or sets From item of range.

Specified by:
getFromObject in class Range

setFromObject

public void setFromObject(java.lang.Object value)
Specified by:
setFromObject in class Range

getToObject

public java.lang.Object getToObject()
Gets or set To item of range.

Specified by:
getToObject in class Range

setToObject

public void setToObject(java.lang.Object value)
Specified by:
setToObject in class Range

Contains

public final boolean Contains(short value)

serialize

public java.lang.String serialize()
Description copied from interface: IStiSerializableToString
Сериализация объекта в строку.

Specified by:
serialize in interface IStiSerializableToString
Overrides:
serialize in class Range
Returns:
строковое представление объекта

deserialize

public void deserialize(java.lang.String strObject)
Description copied from interface: IStiSerializableToString
Десериализация объекта из строки. Все свойства объекта устанавливаются за счет распарсивания строки.


fromSerializeValue

public static ShortRange fromSerializeValue(java.lang.String str)