de::gsi::bel::xfer::Union Class Reference

List of all members.

Public Member Functions

 Union (Object obj)
Object getUnionMemberInstance ()
ArrayList getAllowedClassNames ()
void setObject (Object obj)
void setO (Object O)
void setI (Integer I)
void setG (Long G)
void setB (Byte B)
void setL (Boolean L)
void setD (Double D)
void setS (String S)
String getAllowedClassNameByIndex (int index)
int getAllowedClassIndexByName (String name)
boolean getIsAllowedClass (String name)
Class getCurrentClass ()

Public Attributes

Object unionMemberInstance
Object object
ArrayList allowedClassNames = new ArrayList()

Detailed Description

This is an abstract class for realising a union in java. You have to extend this class and overwrite the constructor to fit your needs.

Author:
huhmann


Constructor & Destructor Documentation

de::gsi::bel::xfer::Union::Union ( Object  obj  )  [inline]

sets an obj to the current member instance of the union object. The class of object has to fit the list of allowed union members.

Parameters:
obj object to set as current member instance of the union object


Member Function Documentation

int de::gsi::bel::xfer::Union::getAllowedClassIndexByName ( String  name  )  [inline]

Parameters:
name The name of an member class
Returns:
The index of the member class

String de::gsi::bel::xfer::Union::getAllowedClassNameByIndex ( int  index  )  [inline]

Parameters:
index Index of allowed member class names
Returns:
The class name of member index

ArrayList de::gsi::bel::xfer::Union::getAllowedClassNames (  )  [inline]

Returns:
The array list of allowed member class names

Class de::gsi::bel::xfer::Union::getCurrentClass (  )  [inline]

Returns the current member class type

Returns:
class type

boolean de::gsi::bel::xfer::Union::getIsAllowedClass ( String  name  )  [inline]

Checks if name is an allowed class of the union

Parameters:
name The member name
Returns:
true or false

Object de::gsi::bel::xfer::Union::getUnionMemberInstance (  )  [inline]

Returns the current member instance

Returns:
member instance

void de::gsi::bel::xfer::Union::setB ( Byte  B  )  [inline]

Sets a Byte object as union member instance

Parameters:
B Byte object to set as union member instance

void de::gsi::bel::xfer::Union::setD ( Double  D  )  [inline]

Sets a Double object as union member instance

Parameters:
D Double object to set as union member instance

void de::gsi::bel::xfer::Union::setG ( Long  G  )  [inline]

Sets an Long object as union member instance

Parameters:
G Long object to set as union member instance

void de::gsi::bel::xfer::Union::setI ( Integer  I  )  [inline]

Sets an Integer object as union member instance

Parameters:
I Integer object to set as union member instance

void de::gsi::bel::xfer::Union::setL ( Boolean  L  )  [inline]

Sets a Boolean object as union member instance

Parameters:
L Boolean object to set as union member instance

void de::gsi::bel::xfer::Union::setO ( Object  O  )  [inline]

Sets an Object object as union member instance

Parameters:
O Object object to set as union member instance

void de::gsi::bel::xfer::Union::setObject ( Object  obj  )  [inline]

Sets an object as union member instance

Parameters:
obj the object to set as union member instance

void de::gsi::bel::xfer::Union::setS ( String  S  )  [inline]

Sets a String object as union member instance

Parameters:
S String object to set as union member instance


The documentation for this class was generated from the following file:
Generated on 4 Mar 2014 for xferjava by  doxygen 1.4.7