Package xal.smf.attr
Class Attribute
java.lang.Object
xal.smf.attr.Attribute
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionAttribute
(boolean val) Create new Attribute Note that Attribute must be initially instantiated to a particular type.Attribute
(double val) Attribute
(double[] arr) Attribute
(float val) Attribute
(float[] arr) Attribute
(int val) Attribute
(int[] arr) Attribute
(long val) Attribute
(long[] arr) -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
float[]
int[]
long[]
String[]
boolean
double
float
getFloat()
int
long
getLong()
int
getType()
boolean
isArray()
boolean
Set Attribute value from string parsingvoid
set
(boolean newVal) void
set
(double newVal) void
set
(double[] newArr) void
set
(float newVal) void
set
(float[] newArr) void
set
(int newVal) void
set
(int[] newArr) void
set
(long newVal) void
set
(long[] newArr) void
void
-
Field Details
-
UNKNOWN
public static final int UNKNOWN- See Also:
-
BOOLEAN
public static final int BOOLEAN- See Also:
-
CHARACTER
public static final int CHARACTER- See Also:
-
BYTE
public static final int BYTE- See Also:
-
SHORT
public static final int SHORT- See Also:
-
INTEGER
public static final int INTEGER- See Also:
-
LONG
public static final int LONG- See Also:
-
FLOAT
public static final int FLOAT- See Also:
-
DOUBLE
public static final int DOUBLE- See Also:
-
STRING
public static final int STRING- See Also:
-
ARR_BOL
public static final int ARR_BOL- See Also:
-
ARR_CHR
public static final int ARR_CHR- See Also:
-
ARR_BYTE
public static final int ARR_BYTE- See Also:
-
ARR_SHR
public static final int ARR_SHR- See Also:
-
ARR_INT
public static final int ARR_INT- See Also:
-
ARR_LNG
public static final int ARR_LNG- See Also:
-
ARR_FLT
public static final int ARR_FLT- See Also:
-
ARR_DBL
public static final int ARR_DBL- See Also:
-
ARR_STR
public static final int ARR_STR- See Also:
-
-
Constructor Details
-
Attribute
public Attribute(boolean val) Create new Attribute Note that Attribute must be initially instantiated to a particular type. -
Attribute
public Attribute(int val) -
Attribute
public Attribute(long val) -
Attribute
public Attribute(float val) -
Attribute
public Attribute(double val) -
Attribute
-
Attribute
public Attribute(int[] arr) -
Attribute
public Attribute(long[] arr) -
Attribute
public Attribute(float[] arr) -
Attribute
public Attribute(double[] arr) -
Attribute
-
-
Method Details
-
getType
public int getType() -
getTypeString
-
isArray
public boolean isArray() -
getObject
-
getBoolean
public boolean getBoolean() -
getInteger
public int getInteger() -
getLong
public long getLong() -
getFloat
public float getFloat() -
getDouble
public double getDouble() -
getString
-
getArrInt
public int[] getArrInt() -
getArrLng
public long[] getArrLng() -
getArrFlt
public float[] getArrFlt() -
getArrDbl
public double[] getArrDbl() -
getArrStr
-
set
public void set(boolean newVal) -
set
public void set(int newVal) -
set
public void set(long newVal) -
set
public void set(float newVal) -
set
public void set(double newVal) -
set
-
set
public void set(int[] newArr) -
set
public void set(long[] newArr) -
set
public void set(float[] newArr) -
set
public void set(double[] newArr) -
set
-
parse
Set Attribute value from string parsing- Throws:
NumberFormatException
-
stringValue
-