|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jstatcom.model.JSCConstants
public class JSCConstants
This class contains miscellaneous constants for the data model. The class might be extended to create subclasses that add further constants by using the following declaration:
public static final JSCConstants NEW_CONSTANT = new JSCConstants("NEW_CONSTANT");
| Field Summary | |
|---|---|
static boolean |
DEBUG
Debug flag that can be set with the DEBUG property. |
static java.lang.Double |
NaN
Missing value. |
static long |
NaNLongBits
Missing value as long. |
static java.lang.Double |
NEG_INF
Negative infinity. |
static java.lang.Double |
POS_INF
Positive infinity. |
| Method Summary | |
|---|---|
static java.lang.String |
checkNameThrowEx(java.lang.String name)
Checks whether name is a valid variable name and throws an
exception of not. |
boolean |
equals(java.lang.Object o)
Override prevention method to enforce a.equals(b) if and
only if a==b. |
static java.lang.String |
getSystemTemp()
Reads out the system property java.io.tempdir. |
static java.lang.String |
getUserDir()
Reads out the system property user.dir. |
static java.lang.String |
getUserHome()
Reads out the system property home. |
int |
hashCode()
Override prevention method invokes super method. |
static java.lang.String |
isValidName(java.lang.String name)
Checks whether name conforms to the rules for valid
variable names. |
java.lang.String |
toString()
Gets string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean DEBUG
DEBUG property.
public static final java.lang.Double NaN
public static final long NaNLongBits
long.
public static final java.lang.Double POS_INF
public static final java.lang.Double NEG_INF
| Method Detail |
|---|
public static java.lang.String checkNameThrowEx(java.lang.String name)
name is a valid variable name and throws an
exception of not.
Important:
null is allowed as an argument because this is often
convenient. In this case null is returned.
name - the string to check
name if ok or null if
name was null
java.lang.IllegalArgumentException - with error string
if (JSCConstants.isValidName(name) != null)public final boolean equals(java.lang.Object o)
a.equals(b) if and
only if a==b.
equals in class java.lang.Objecto - object to compare with
true if equal, false otherwisepublic final int hashCode()
hashCode in class java.lang.Objectpublic static java.lang.String isValidName(java.lang.String name)
name conforms to the rules for valid
variable names. Valid names must not be null or empty and
must begin with either a letter or '_' . They may contain letters, digits
and '_', but no other characters or whitespace.
name - the name to be checked
null if ok, error message otherwisepublic java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String getSystemTemp()
java.io.tempdir.
java.lang.RuntimeException - if property is emptypublic static java.lang.String getUserDir()
user.dir.
java.lang.RuntimeException - if property is emptypublic static java.lang.String getUserHome()
home.
java.lang.RuntimeException - if property is empty
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||