|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Number
org.mbs.util.wireadmin.Primitive
public abstract class Primitive
An abstract class for creating envelope objects of the primitive types. The methods in this class are empty. Extend this class to create an Envelope for a primitive type and override the methods for value retrieving. Method(s) for managing the value can be added.
| Field Summary | |
|---|---|
static int |
BOOLEAN
|
static int |
BYTE
|
static int |
CHARACTER
|
static int |
DOUBLE
|
static int |
FLOAT
|
protected java.lang.Object |
identification
|
static int |
INTEGER
|
static int |
LONG
|
protected java.lang.String |
scope
|
static int |
SHORT
|
| Constructor Summary | |
|---|---|
protected |
Primitive(int type,
java.lang.String scope,
java.lang.Object identification)
Creates new primitive. |
| Method Summary | |
|---|---|
boolean |
booleanValue()
|
byte |
byteValue()
Returns the value of the specified state as a byte. |
char |
charValue()
Returns the value of the specified state as a char. |
double |
doubleValue()
Returns the value of the specified state as a double. |
float |
floatValue()
Returns the value of the specified state as a float. |
java.lang.Object |
getIdentification()
Return the identification of this Envelope object. |
java.lang.String |
getScope()
Return the scope name of this Envelope object. |
int |
getType()
Retrieves the type of the primitive - e.g LONG, INTEGER,
SHORT, CHARACTER, BYTE, DOUBLE,
FLOAT or BOOLEAN, |
java.lang.Object |
getValue()
Return the value associated with this Envelope object. |
int |
intValue()
Returns the value of the specified state as an int. |
long |
longValue()
Returns the value of the specified state as a long. |
short |
shortValue()
Returns the value of the specified state as a short. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LONG
public static final int INTEGER
public static final int SHORT
public static final int CHARACTER
public static final int BYTE
public static final int DOUBLE
public static final int FLOAT
public static final int BOOLEAN
protected java.lang.String scope
protected java.lang.Object identification
| Constructor Detail |
|---|
protected Primitive(int type,
java.lang.String scope,
java.lang.Object identification)
type - the type of the primitivescope - the scope of the primitiveidentification - the identification| Method Detail |
|---|
public int getType()
LONG, INTEGER,
SHORT, CHARACTER, BYTE, DOUBLE,
FLOAT or BOOLEAN,
public java.lang.Object getValue()
EnvelopeEnvelope object.
getValue in interface Envelopenull when no item is
associated with this object.Envelope.getValue()public java.lang.Object getIdentification()
EnvelopeEnvelope object.
An identification may be of any Java type. The type must be mutually
agreed between the Consumer and Producer services.
getIdentification in interface EnvelopeEnvelope.getIdentification()public java.lang.String getScope()
EnvelopeEnvelope object.
Scope names are used to restrict the communication between the Producer
and Consumer services. Only Envelopes objects with a scope
name that is permitted for the Producer and the Consumer services must be
passed through a Wire object.
getScope in interface EnvelopeEnvelope.getScope()public boolean booleanValue()
public char charValue()
public byte byteValue()
byteValue in class java.lang.NumberNumber.byteValue()public double doubleValue()
doubleValue in class java.lang.NumberNumber.doubleValue()public float floatValue()
floatValue in class java.lang.NumberNumber.floatValue()public int intValue()
intValue in class java.lang.NumberNumber.intValue()public long longValue()
longValue in class java.lang.NumberNumber.longValue()public short shortValue()
shortValue in class java.lang.NumberNumber.shortValue()
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||