gov.sns.xal.smf.attr
Class Attribute

java.lang.Object
  |
  +--gov.sns.xal.smf.attr.Attribute
All Implemented Interfaces:
java.io.Serializable

public final class Attribute
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static int iArrBol
           
static int iArrByte
           
static int iArrChr
           
static int iArrDbl
           
static int iArrFlt
           
static int iArrInt
           
static int iArrLng
           
static int iArrShr
           
static int iArrStr
           
static int iBoolean
           
static int iByte
           
static int iCharacter
           
static int iDouble
           
static int iFloat
           
static int iInteger
           
static int iLong
           
static int iShort
           
static int iString
           
static int iUnknown
           
static java.lang.String[] s_arrTypeNames
           
 
Constructor Summary
Attribute(double val)
           
Attribute(double[] arr)
           
Attribute(float val)
           
Attribute(float[] arr)
           
Attribute(int val)
          Create new Attribute Note that Attribute must be initially instantiated to a particular type.
Attribute(int[] arr)
           
Attribute(long val)
           
Attribute(long[] arr)
           
Attribute(java.lang.String val)
           
Attribute(java.lang.String[] arr)
           
 
Method Summary
 double[] getArrDbl()
           
 float[] getArrFlt()
           
 int[] getArrInt()
           
 long[] getArrLng()
           
 java.lang.String[] getArrStr()
           
 double getDouble()
           
 float getFloat()
           
 int getInteger()
           
 long getLong()
           
 java.lang.Object getObject()
           
 java.lang.String getString()
           
 int getType()
           
 java.lang.String getTypeString()
           
 boolean isArray()
           
 boolean parse(java.lang.String strVal)
          Set Attribute value from string parsing
 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 set(java.lang.String newVal)
           
 void set(java.lang.String[] newArr)
           
 java.lang.String stringValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_arrTypeNames

public static java.lang.String[] s_arrTypeNames

iUnknown

public static final int iUnknown
See Also:
Constant Field Values

iBoolean

public static final int iBoolean
See Also:
Constant Field Values

iCharacter

public static final int iCharacter
See Also:
Constant Field Values

iByte

public static final int iByte
See Also:
Constant Field Values

iShort

public static final int iShort
See Also:
Constant Field Values

iInteger

public static final int iInteger
See Also:
Constant Field Values

iLong

public static final int iLong
See Also:
Constant Field Values

iFloat

public static final int iFloat
See Also:
Constant Field Values

iDouble

public static final int iDouble
See Also:
Constant Field Values

iString

public static final int iString
See Also:
Constant Field Values

iArrBol

public static final int iArrBol
See Also:
Constant Field Values

iArrChr

public static final int iArrChr
See Also:
Constant Field Values

iArrByte

public static final int iArrByte
See Also:
Constant Field Values

iArrShr

public static final int iArrShr
See Also:
Constant Field Values

iArrInt

public static final int iArrInt
See Also:
Constant Field Values

iArrLng

public static final int iArrLng
See Also:
Constant Field Values

iArrFlt

public static final int iArrFlt
See Also:
Constant Field Values

iArrDbl

public static final int iArrDbl
See Also:
Constant Field Values

iArrStr

public static final int iArrStr
See Also:
Constant Field Values
Constructor Detail

Attribute

public Attribute(int val)
Create new Attribute Note that Attribute must be initially instantiated to a particular type.


Attribute

public Attribute(long val)

Attribute

public Attribute(float val)

Attribute

public Attribute(double val)

Attribute

public Attribute(java.lang.String val)

Attribute

public Attribute(int[] arr)

Attribute

public Attribute(long[] arr)

Attribute

public Attribute(float[] arr)

Attribute

public Attribute(double[] arr)

Attribute

public Attribute(java.lang.String[] arr)
Method Detail

getType

public int getType()

getTypeString

public java.lang.String getTypeString()

isArray

public boolean isArray()

getObject

public java.lang.Object getObject()

getInteger

public int getInteger()

getLong

public long getLong()

getFloat

public float getFloat()

getDouble

public double getDouble()

getString

public java.lang.String getString()

getArrInt

public int[] getArrInt()

getArrLng

public long[] getArrLng()

getArrFlt

public float[] getArrFlt()

getArrDbl

public double[] getArrDbl()

getArrStr

public java.lang.String[] getArrStr()

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

public void set(java.lang.String newVal)

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

public void set(java.lang.String[] newArr)

parse

public boolean parse(java.lang.String strVal)
              throws java.lang.NumberFormatException
Set Attribute value from string parsing

java.lang.NumberFormatException

stringValue

public java.lang.String stringValue()