|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.vo.TapLimit
public class TapLimit
Characterises a limit which applies to a TAP service. This class can represent values encoded by the TAPRegExt DataLimits and TimeLimits element types.
Field Summary | |
---|---|
static String |
BYTES
Unit string used for a data limit of bytes ("byte"). |
static String |
ROWS
Unit string used for a data limit of rows ("row"). |
static String |
SECONDS
Unit string used always for time limits ("seconds"). |
Constructor Summary | |
---|---|
TapLimit(long value,
boolean isHard,
String unit)
Constructor. |
Method Summary | |
---|---|
String |
getUnit()
Returns the limit unit. |
long |
getValue()
Returns the limit value. |
boolean |
isHard()
Indicates whether this is a hard or soft (default) limit. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String SECONDS
public static final String ROWS
public static final String BYTES
Constructor Detail |
---|
public TapLimit(long value, boolean isHard, String unit)
value
- limit valueisHard
- true for a hard limit, false for a default limitunit
- unit for valueMethod Detail |
---|
public long getValue()
public boolean isHard()
public String getUnit()
SECONDS
for time limits, and either
ROWS
or BYTES
for data limits.
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |