com.jstatcom.model
Class JSCTypes
- java.lang.Object
-
- com.jstatcom.model.JSCTypes
-
public abstract class JSCTypes extends java.lang.ObjectThis enumeration contains all existingJSCDatatypes. If new data types are to be added, this class needs to be extended.
-
-
Field Summary
Fields Modifier and Type Field and Description static JSCTypesDATEContains an singleTSDate.static JSCTypesDRANGEContains an singleTSDateRange.static JSCTypesINTContains a singleInteger.static JSCTypesMAPContains an single arbitraryObject.static JSCTypesNARRAYContains an m x ndoublearray.static JSCTypesNUMBERContains a singleDouble.static JSCTypesSARRAYContains an m x nStringarray.static JSCTypesSTRINGContains a singleString.static JSCTypesVOIDContains an single arbitraryObject.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)Override prevention method to enforcea.equals(b)if and onlyif a==b.javax.swing.IcongetIcon()Gets the respective icon that visualizes the type.inthashCode()Override prevention method invokes super method.java.lang.StringtoString()Gets string representation of this object.abstract JSCDatavalueOfEmpty(java.lang.String name)Gets an emptyJSCDatainstance for the specified type.
-
-
-
Field Detail
-
NUMBER
public static final JSCTypes NUMBER
Contains a singleDouble. Represented byJSCNumber.
-
INT
public static final JSCTypes INT
Contains a singleInteger. Represented byJSCInt.
-
STRING
public static final JSCTypes STRING
Contains a singleString. Represented byJSCString.
-
NARRAY
public static final JSCTypes NARRAY
Contains an m x ndoublearray. Represented byJSCNArray.
-
SARRAY
public static final JSCTypes SARRAY
Contains an m x nStringarray. Represented byJSCSArray.
-
DATE
public static final JSCTypes DATE
Contains an singleTSDate. Represented byJSCDate.
-
DRANGE
public static final JSCTypes DRANGE
Contains an singleTSDateRange. Represented byJSCDRange.
-
VOID
public static final JSCTypes VOID
Contains an single arbitraryObject. Represented byJSCVoid.
-
MAP
public static final JSCTypes MAP
Contains an single arbitraryObject. Represented byJSCMap.
-
-
Method Detail
-
equals
public final boolean equals(java.lang.Object o)
Override prevention method to enforcea.equals(b)if and onlyif a==b.- Overrides:
equalsin classjava.lang.Object- Parameters:
o- object to compare with- Returns:
trueif equal,falseotherwise
-
getIcon
public javax.swing.Icon getIcon()
Gets the respective icon that visualizes the type.- Returns:
- icon for visualization of this type
-
hashCode
public final int hashCode()
Override prevention method invokes super method.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hash code
-
toString
public final java.lang.String toString()
Gets string representation of this object.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string
-
valueOfEmpty
public abstract JSCData valueOfEmpty(java.lang.String name)
Gets an emptyJSCDatainstance for the specified type. Must be implemented byJSCTypes.- Parameters:
name- the name of the new instance- Returns:
- instance of the respective type with
isEmpty == true
-
-
DMelt 3.0 © DataMelt by jWork.ORG