Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

abeans::models::acs::baci::generator::IDLtoAbeans Class Reference

List of all members.

Public Member Functions

 IDLtoAbeans ()
void addPackageName (final PrintWriter output)
void translateData (IdlObject obj, String packageName)
void translateBean (IdlObject obj, String packageName)

Private Member Functions

String removeAbeansPostfix (String packageName)
void addToPkg (IdlObject obj, String name)
void addDescriptiveHeader (PrintWriter output, IdlObject obj)
void translate_constant (IdlObject obj, File writeInto, PrintWriter print)
void generateArrayHelperMethods (IdlObject obj, PrintWriter output)
void write_helper (IdlObject obj, File writeInto)
void write_holder (IdlObject obj, File writeInto)
void translate_enum (IdlObject obj, File writeInto)
void translate_struct (IdlObject obj, File writeInto)
void translate_union (IdlObject obj, File writeInto)
void translate_typedef (IdlObject obj, File writeInto)
void translate_exception (IdlObject obj, File writeInto)
boolean translate_bean_interface_property (IdlObject obj, File writeInto, List inheritanceList)
boolean translate_bean_interface_callback (IdlObject obj, File writeInto, List inheritanceList)
void translate_bean_interface_property_Ptype (IdlObject obj, IdlInterface itf, IdlObject propertyType, IdlObject cbType, String historyHolder, PrintWriter output)
void translate_bean_interface_property_ROtype (IdlObject obj, IdlInterface itf, IdlObject propertyType, PrintWriter output)
void translate_bean_interface_property_RWtype (IdlObject obj, IdlInterface itf, IdlObject propertyType, PrintWriter output)
void translate_bean_interface (IdlObject obj, File writeInto)
List getInheritanceOpList (IdlObject obj, List opList, boolean includeInherited)
void translate_interface (IdlObject obj, File writeInto)
void translate_interface_interface (IdlObject obj, File writeInto)
String[] sortIntoArray (final List list)
void writeOperationHelperMethod (final IdlObject obj, final PrintWriter output)
void writeOperationHelperMethodHeader (final IdlObject obj, final PrintWriter output, final String operationPrefix)
void writeOperationHelperClass (final IdlObject obj, final PrintWriter output, final String baseName)
void writeOperationHelperClass (final PrintWriter output, final String baseName, final String name, final String operationPrefix)
void translate_module (IdlObject obj, File writeInto, int translateType)
void translate_bean_module (IdlObject obj, File writeInto)
void translate_value_type (IdlObject obj, File writeInto)
void writeDefaultValueFactory (final IdlValue obj, final File writeInto)
void writeDefaultValueImpl (final IdlValue obj, final File writeInto)
void translate_value_box (IdlObject obj, File writeInto)
void translate_native (IdlObject obj, File writeInto)
void translate_object_content (IdlObject obj, File writeInto, int translateType)
void translate_object (IdlObject obj, File writeInto, int translateType)
void translate_bean_object (IdlObject obj, File writeInto)

Static Private Member Functions

boolean isNativeDefinition (IdlObject obj)
void printNativeDefinition (IdlObject obj, PrintWriter output)
PrintWriter fileAccess (File writeInto)
String inversedPrefix (String prefix)
PrintWriter newFile (File writeInto, String name)
File createDirectory (String name, File writeInto)
File createPrefixDirectories (String prefix, File writeInto)
File getDirectory (String name, File writeInto)
File getPrefixDirectories (String prefix, File writeInto)
void translate_comment_section (PrintWriter output, String description, IdlObject obj)
void javadoc (PrintWriter output, IdlObject obj)
int final_kind (IdlObject obj)
IdlObject final_type (IdlObject obj)
String adaptToDot (String path)
String fullname_CORBA (IdlObject obj)
String fullname (IdlObject obj)
String fullname (IdlObject obj, String postfix)
boolean isEnumCase (String expr)
boolean isSameScope (String ident, IdlObject obj)
boolean queryUseLongLiteral (final IdlObject obj)
String IdlScopeToJavaScope (String expr, boolean complete, boolean fixed, IdlObject obj)
boolean isHexChar (char c)
String IdlEspaceCharToJavaEscapeChar (String expr)
String translate_to_java_expression (String expr, boolean fixed, IdlObject obj)
String translate_to_union_case_expression (IdlUnionMember disc, String expr)
String translate_type (IdlObject obj)
void translate_type (IdlObject obj, PrintWriter output)
String translate_type_CORBA (IdlObject obj)
void translate_type_CORBA (IdlObject obj, PrintWriter output)
String translate_parameter (IdlObject obj, int attr)
void translate_parameter (IdlObject obj, PrintWriter output, int attr)
void translate_parameter_CORBA (IdlObject obj, PrintWriter output, int attr)
String get_array_name (IdlObject obj)
void translate_marshalling_member (IdlObject obj, PrintWriter output, String outname, String tname, String space)
void translate_unmarshalling_member (IdlObject obj, PrintWriter output, String inname, String tname, String space)
String translate_to_object (IdlObject obj, String tname)
String cast_to_abeans_type (IdlObject obj, String inname, boolean toObject)
String cast_to_abeans_type (IdlObject obj, String inname, boolean toObject, boolean stripOffSequence)
String cast_to_object_type (IdlObject obj, String inname, boolean fromObject)
String translate_from_object (IdlObject obj, String inname)
IdlObject getAsNext (IdlObject obj)
String fixEnumExpression (String expr)
void fromCORBA (IdlObject obj, String expr, PrintWriter output, int attr, boolean toObjectMapping)
void toCORBA (IdlObject obj, String expr, PrintWriter output, int attr, boolean fromObjectMapping)
void toCORBA (IdlObject obj, String expr, PrintWriter output, int attr, boolean fromObjectMapping, boolean parentArraySeq)
String find_default_value (IdlObject obj)
void translate_attribute (IdlObject obj, PrintWriter output)
void translate_bean_attribute (IdlObject obj, PrintWriter output, boolean isParentLinkable, boolean doesImplementInterceptor, boolean isAttributeLinkable)
void translate_bean_attribute (IdlObject obj, PrintWriter output, boolean isParentLinkable, boolean doesImplementInterceptor, boolean isAttributeLinkable, boolean declarationOnly)
void translate_read_attribute_proxy (IdlObject obj, PrintWriter output)
void translate_write_attribute_proxy (IdlObject obj, PrintWriter output)
IdlContext getContext (IdlObject obj)
void translate_operation (IdlObject obj, PrintWriter output)
void translate_operation_callback (IdlObject obj, PrintWriter output)
void translate_bean_operation (IdlObject obj, PrintWriter output, boolean isParentLinkable, boolean doesImplementInterceptor)
void translate_bean_operation (IdlObject obj, PrintWriter output, boolean isParentLinkable, boolean doesImplementInterceptor, boolean declarationOnly)
void translate_operation_proxy (String methodName, IdlObject obj, PrintWriter output)
boolean isEmptyValue (IdlObject obj)
boolean isEmpty (IdlObject obj)
IdlInterface findPtypeInterface (IdlObject obj)
IdlObject findCallbackType (IdlObject obj)
String mapPropertyToType (int type, boolean toObject)
String mapPropertyToType (int type, boolean toObject, boolean useAbeansName)
String mapPropertyToType (int type, boolean toObject, boolean useAbeansName, boolean stripObject)
boolean isNumbericScalarProperty (int type)
boolean isSequenceProperty (int type)
int mapPropertyToNonSeqType (int type)
String mapPropertyToResponseType (int type)
int mapProperty (IdlObject obj, PrintWriter output, int sequenceDepth)
void translate_bean_interface_property_constructors (IdlObject obj, PrintWriter output)
boolean isInto (List opList, IdlObject obj)
List getInheritanceList (IdlObject obj, List inList, boolean recursive)
boolean isInheritedFrom (IdlObject obj, String id)
String initialName (String name)
void writeMethodsForInterface (IdlObject obj, PrintWriter output, List declaredMethodsList, boolean recursive, boolean declareOnly)
void translate_state_member (IdlObject obj, PrintWriter output)
List getInheritedStateMember (IdlObject obj)
void writeDefaultMethods (final PrintWriter output, final IdlObject obj, final Set ids)
void writeDefaultMethodsForValueTypes (final PrintWriter output, final List list, final Set ids)
void writeDefaultMethodsForInterfaces (final PrintWriter output, final List list, final Set ids)
void writeDefaultAttribute (final PrintWriter output, final IdlAttribute obj)
void writeDefaultOperation (final PrintWriter output, final IdlOp obj)

Private Attributes

String current_pkg = adaptToDot(IdlCompiler.packageName)
IdlObject _root = null
File initial = null

Static Private Attributes

final String JAVADOC_AUTHOR = IDLtoAbeansCompiler.PRODUCT_NAME + " v" + IDLtoAbeansCompiler.VERSION
final String ABEANS_POSTFIX_DOTLESS = "abeans"
final String ABEANS_POSTFIX = "." + ABEANS_POSTFIX_DOTLESS
final String PROXY_POSTFIX_DOTLESS = "proxy"
final String PROXY_POSTFIX = "." + PROXY_POSTFIX_DOTLESS
final String BASE_CONNECTABLE_ID = "IDL:alma/ACS/CharacteristicComponent:1.0"
final String BASE_COMPONENT_ID = "IDL:alma/ACS/ACSComponent:1.0"
final String BASE_LINKABLE_ID = "IDL:alma/ACS/TypelessProperty:1.0"
final String BASE_PROPERTY_ID = "IDL:alma/ACS/TypelessProperty:1.0"
final String BASE_CALLBACK_ID = "IDL:alma/ACS/Callback:1.0"
final String GENERATED = "generated"
final String EMPTY_STRING = ""
final String tab = "\t"
final String tab1 = tab
final String tab2 = tab + tab
final String tab3 = tab + tab + tab
final String tab4 = tab + tab + tab + tab
final String tab5 = tab + tab + tab + tab + tab
final int INVALID_PROPERTY = -1
final int DOUBLE_PROPERTY = 0
final int LONG_PROPERTY = 1
final int STRING_PROPERTY = 2
final int OBJECT_PROPERTY = 3
final int DOUBLE_SEQ_PROPERTY = 4
final int LONG_SEQ_PROPERTY = 5
final int STRING_SEQ_PROPERTY = 6
final int OBJECT_SEQ_PROPERTY = 7
final int PATTERN_PROPERTY = 8

Detailed Description

This class generates all mapping for IDL descriptions. Restrictions: o) Only single inheritance is supported. o) Nested arrays/sequences are only supported for primitives

Author:
Matej Sekoranja (matej.sekoranja@cosylab.com)
Version:
@VERSION@


Constructor & Destructor Documentation

abeans::models::acs::baci::generator::IDLtoAbeans::IDLtoAbeans  )  [inline]
 

Default constructor


Member Function Documentation

String abeans::models::acs::baci::generator::IDLtoAbeans::adaptToDot String  path  )  [inline, static, private]
 

This method replaces in a path the file separator by '.'

void abeans::models::acs::baci::generator::IDLtoAbeans::addDescriptiveHeader PrintWriter  output,
IdlObject  obj
[inline, private]
 

Add a descriptive header in a Java file

Parameters:
output the target file
obj object which descriptive header has to be added

void abeans::models::acs::baci::generator::IDLtoAbeans::addPackageName final PrintWriter  output  )  [inline]
 

Parameters:
output 

void abeans::models::acs::baci::generator::IDLtoAbeans::addToPkg IdlObject  obj,
String  name
[inline, private]
 

String abeans::models::acs::baci::generator::IDLtoAbeans::cast_to_abeans_type IdlObject  obj,
String  inname,
boolean  toObject,
boolean  stripOffSequence
[inline, static, private]
 

Casts (sequence) primitive type to apropriate java.lang.Object type. Examples: inname; ((Double)inname);

Parameters:
obj the member to decode
inname parameter
stripOffSequence 
Returns:
expression

String abeans::models::acs::baci::generator::IDLtoAbeans::cast_to_abeans_type IdlObject  obj,
String  inname,
boolean  toObject
[inline, static, private]
 

Casts (sequence) primitive type to apripriate java.lang.Object type. Examples: inname; ((Double)inname);

Parameters:
obj the member to decode
inname parameter
Returns:
expression

String abeans::models::acs::baci::generator::IDLtoAbeans::cast_to_object_type IdlObject  obj,
String  inname,
boolean  fromObject
[inline, static, private]
 

Casts Abeans (sequence) primitive type to appropriate java.lang.Object type. Examples: inname; ((Double)inname);

Parameters:
obj the member to decode
inname parameter
stripOffSequence 
Returns:
expression

File abeans::models::acs::baci::generator::IDLtoAbeans::createDirectory String  name,
File  writeInto
[inline, static, private]
 

Creates a directory

Parameters:
name the directory name to create
writeInto the directory in which the search has to appear

File abeans::models::acs::baci::generator::IDLtoAbeans::createPrefixDirectories String  prefix,
File  writeInto
[inline, static, private]
 

Creates the directories corresponding to a CORBA ID prefix

Parameters:
prefix the prefix
writeInto the directory in which the search has to appear

PrintWriter abeans::models::acs::baci::generator::IDLtoAbeans::fileAccess File  writeInto  )  [inline, static, private]
 

Allows to get an access on write to a target file

Parameters:
writeInto Target file descriptor
Returns:
write access

int abeans::models::acs::baci::generator::IDLtoAbeans::final_kind IdlObject  obj  )  [inline, static, private]
 

Returns the final type of a data type

Parameters:
obj the object
Returns:
the final type

IdlObject abeans::models::acs::baci::generator::IDLtoAbeans::final_type IdlObject  obj  )  [inline, static, private]
 

Returns the final definition of a data type

Parameters:
obj the object
Returns:
the final definition

String abeans::models::acs::baci::generator::IDLtoAbeans::find_default_value IdlObject  obj  )  [inline, static, private]
 

Search the default value for an union

Parameters:
obj the union
Returns:
default value

IdlObject abeans::models::acs::baci::generator::IDLtoAbeans::findCallbackType IdlObject  obj  )  [inline, static, private]
 

Parameters:
obj 
Returns:

IdlInterface abeans::models::acs::baci::generator::IDLtoAbeans::findPtypeInterface IdlObject  obj  )  [inline, static, private]
 

Parameters:
obj 
Returns:

String abeans::models::acs::baci::generator::IDLtoAbeans::fixEnumExpression String  expr  )  [inline, static, private]
 

Fixes enum expression

Parameters:
expr 
Returns:

void abeans::models::acs::baci::generator::IDLtoAbeans::fromCORBA IdlObject  obj,
String  expr,
PrintWriter  output,
int  attr,
boolean  toObjectMapping
[inline, static, private]
 

Generates code which converts expr from CORBA to Abeans object.

Parameters:
obj 
expr 
output 
attr 
objectMapping if true, transformed value will be an java.lang.Object

String abeans::models::acs::baci::generator::IDLtoAbeans::fullname IdlObject  obj,
String  postfix
[inline, static, private]
 

Returns the complete name of an object

Parameters:
obj the object the name has to be retrieved
Returns:
the complete name

String abeans::models::acs::baci::generator::IDLtoAbeans::fullname IdlObject  obj  )  [inline, static, private]
 

Returns the complete name of an Abeans object

Parameters:
obj the object the name has to be retrieved
prefix prefix to be added
Returns:
the complete name

String abeans::models::acs::baci::generator::IDLtoAbeans::fullname_CORBA IdlObject  obj  )  [inline, static, private]
 

Returns the complete name of a CORBA object

Parameters:
obj the object the name has to be retrieved
prefix prefix to be added
Returns:
the complete name

void abeans::models::acs::baci::generator::IDLtoAbeans::generateArrayHelperMethods IdlObject  obj,
PrintWriter  output
[inline, private]
 

Generates array support helper methods

Parameters:
obj the object to translate
output output stream

String abeans::models::acs::baci::generator::IDLtoAbeans::get_array_name IdlObject  obj  )  [inline, static, private]
 

Return simple array name or null else

IdlObject abeans::models::acs::baci::generator::IDLtoAbeans::getAsNext IdlObject  obj  )  [inline, static, private]
 

Return the typed member for an union member

IdlContext abeans::models::acs::baci::generator::IDLtoAbeans::getContext IdlObject  obj  )  [inline, static, private]
 

Return the context associated with an operation

Parameters:
obj the operation
Returns:
associated context object

File abeans::models::acs::baci::generator::IDLtoAbeans::getDirectory String  name,
File  writeInto
[inline, static, private]
 

Get a write access in a directory

Parameters:
name the directory name
writeInto the directory in which the search has to appear

List abeans::models::acs::baci::generator::IDLtoAbeans::getInheritanceList IdlObject  obj,
List  inList,
boolean  recursive
[inline, static, private]
 

Return the list of inherited objects

Parameters:
obj the interface object
opList already found iherited objects
Returns:
inherited objects list

List abeans::models::acs::baci::generator::IDLtoAbeans::getInheritanceOpList IdlObject  obj,
List  opList,
boolean  includeInherited
[inline, private]
 

Return the list of operations and attributes to implement (incl. inheritance).

Parameters:
obj interface object
opList already found operations and attributes list
Returns:
operations and attributes list

List abeans::models::acs::baci::generator::IDLtoAbeans::getInheritedStateMember IdlObject  obj  )  [inline, static, private]
 

Return the list of the inherited members

File abeans::models::acs::baci::generator::IDLtoAbeans::getPrefixDirectories String  prefix,
File  writeInto
[inline, static, private]
 

Get a writing access to a directory corresponding to a CORBA ID prefix

Parameters:
prefix a object prefix
writeInto the directory in which the search has to appear

String abeans::models::acs::baci::generator::IDLtoAbeans::IdlEspaceCharToJavaEscapeChar String  expr  )  [inline, static, private]
 

Change the IDL escape characters into CORBA escape characters

Parameters:
expr the IDL expression
Returns:
the equivalent Java expression

String abeans::models::acs::baci::generator::IDLtoAbeans::IdlScopeToJavaScope String  expr,
boolean  complete,
boolean  fixed,
IdlObject  obj
[inline, static, private]
 

Translate a Scope IDL Ident::Ident into Scoped Java Ident.Ident.value

Parameters:
expr the IDL expression
Returns:
the equivalent Java expression

String abeans::models::acs::baci::generator::IDLtoAbeans::initialName String  name  )  [inline, static, private]
 

Return the initial name.

String abeans::models::acs::baci::generator::IDLtoAbeans::inversedPrefix String  prefix  )  [inline, static, private]
 

Change a prefix order : omg.org -> org.omg

Parameters:
prefix the prefix to inverse
Returns:
the inversed prefix

boolean abeans::models::acs::baci::generator::IDLtoAbeans::isEmpty IdlObject  obj  )  [inline, static, private]
 

Check a type is empty in terms of type union, struct or enum

boolean abeans::models::acs::baci::generator::IDLtoAbeans::isEmptyValue IdlObject  obj  )  [inline, static, private]
 

This method check a value type is empty in terms of type typedef, union, exception...

boolean abeans::models::acs::baci::generator::IDLtoAbeans::isEnumCase String  expr  )  [inline, static, private]
 

Check if the the id is an enum member

boolean abeans::models::acs::baci::generator::IDLtoAbeans::isHexChar char  c  )  [inline, static, private]
 

Allow to test if the character is an hexa number

Parameters:
c the character to test
Returns:
true if the character is an hexa number

boolean abeans::models::acs::baci::generator::IDLtoAbeans::isInheritedFrom IdlObject  obj,
String  id
[inline, static, private]
 

Return true if object inherits from given IDL IR

Parameters:
obj the interface object
id inheritance to be checked
Returns:
true if object inherits from given IDL IR, othervise false

boolean abeans::models::acs::baci::generator::IDLtoAbeans::isInto List  opList,
IdlObject  obj
[inline, static, private]
 

Check if the operation or the attribute is already in the list

Parameters:
opList operations and attributes list
op the operation or attribute
Returns:
true if the operation or attribute is included in the list

boolean abeans::models::acs::baci::generator::IDLtoAbeans::isNativeDefinition IdlObject  obj  )  [inline, static, private]
 

Retur true if a definition exists for a native type

Parameters:
obj native object
Returns:
true if a definition exists

boolean abeans::models::acs::baci::generator::IDLtoAbeans::isNumbericScalarProperty int  type  )  [inline, static, private]
 

Parameters:
type 
Returns:

boolean abeans::models::acs::baci::generator::IDLtoAbeans::isSameScope String  ident,
IdlObject  obj
[inline, static, private]
 

Returns true if the element passed as argument is in the same scope as the second argument.

boolean abeans::models::acs::baci::generator::IDLtoAbeans::isSequenceProperty int  type  )  [inline, static, private]
 

Parameters:
type 
Returns:

void abeans::models::acs::baci::generator::IDLtoAbeans::javadoc PrintWriter  output,
IdlObject  obj
[inline, static, private]
 

Add a JavaDoc comment

Parameters:
output the target file
obj the object the header has to be added

int abeans::models::acs::baci::generator::IDLtoAbeans::mapProperty IdlObject  obj,
PrintWriter  output,
int  sequenceDepth
[inline, static, private]
 

Parameters:
obj 
output 
sequenceDepth 

int abeans::models::acs::baci::generator::IDLtoAbeans::mapPropertyToNonSeqType int  type  )  [inline, static, private]
 

Parameters:
type 
Returns:

String abeans::models::acs::baci::generator::IDLtoAbeans::mapPropertyToResponseType int  type  )  [inline, static, private]
 

Parameters:
type 
Returns:
ResponseType type

String abeans::models::acs::baci::generator::IDLtoAbeans::mapPropertyToType int  type,
boolean  toObject,
boolean  useAbeansName,
boolean  stripObject
[inline, static, private]
 

Parameters:
type 
toObject 
useAbeansName 
stripObject 
Returns:

String abeans::models::acs::baci::generator::IDLtoAbeans::mapPropertyToType int  type,
boolean  toObject,
boolean  useAbeansName
[inline, static, private]
 

Parameters:
obj 
output 
useAbeansName 
sequenceDepth 

String abeans::models::acs::baci::generator::IDLtoAbeans::mapPropertyToType int  type,
boolean  toObject
[inline, static, private]
 

Parameters:
obj 
output 
sequenceDepth 

PrintWriter abeans::models::acs::baci::generator::IDLtoAbeans::newFile File  writeInto,
String  name
[inline, static, private]
 

Creates a new Java file

Parameters:
writeInto the directory where the file must be created
name file name (without .java extension)
Returns:
write access

void abeans::models::acs::baci::generator::IDLtoAbeans::printNativeDefinition IdlObject  obj,
PrintWriter  output
[inline, static, private]
 

Print the type translated corresponding to a native type definition

Parameters:
obj native object
output file where definition is added
Returns:
true if a definition exists

boolean abeans::models::acs::baci::generator::IDLtoAbeans::queryUseLongLiteral final IdlObject  obj  )  [inline, static, private]
 

Check if obj constant is needing "l" qualifier.

Parameters:
obj 
Returns:

String abeans::models::acs::baci::generator::IDLtoAbeans::removeAbeansPostfix String  packageName  )  [inline, private]
 

Construct a package name

Parameters:
name name of the superior level

String [] abeans::models::acs::baci::generator::IDLtoAbeans::sortIntoArray final List  list  )  [inline, private]
 

Parameters:
list 
Returns:

void abeans::models::acs::baci::generator::IDLtoAbeans::toCORBA IdlObject  obj,
String  expr,
PrintWriter  output,
int  attr,
boolean  fromObjectMapping,
boolean  parentArraySeq
[inline, static, private]
 

Generates code which converts expr from Abeans to CORBA object.

Parameters:
obj 
expr 
output 
attr 
fromObjectMapping 
parentArraySeq 

void abeans::models::acs::baci::generator::IDLtoAbeans::toCORBA IdlObject  obj,
String  expr,
PrintWriter  output,
int  attr,
boolean  fromObjectMapping
[inline, static, private]
 

Generates code which converts expr from Abeans to CORBA object.

Parameters:
obj 
expr 
output 
attr 
fromObjectMapping 

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_attribute IdlObject  obj,
PrintWriter  output
[inline, static, private]
 

Translate an attribute

Parameters:
obj attribute to translate
output write access

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_bean_attribute IdlObject  obj,
PrintWriter  output,
boolean  isParentLinkable,
boolean  doesImplementInterceptor,
boolean  isAttributeLinkable,
boolean  declarationOnly
[inline, static, private]
 

Translate an attribute for the user code

Parameters:
obj attribute to translate
output write access

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_bean_attribute IdlObject  obj,
PrintWriter  output,
boolean  isParentLinkable,
boolean  doesImplementInterceptor,
boolean  isAttributeLinkable
[inline, static, private]
 

Translate an attribute for the user code

Parameters:
obj attribute to translate
output write access

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_bean_interface IdlObject  obj,
File  writeInto
[inline, private]
 

Translate an interface for the user

Parameters:
obj interface to translate
writeInto the directory where the interface must be defined

boolean abeans::models::acs::baci::generator::IDLtoAbeans::translate_bean_interface_callback IdlObject  obj,
File  writeInto,
List  inheritanceList
[inline, private]
 

Translate an property interface for the user. Property already has knowledge of BACI and Abeans, also naming convention of P<type>, RO<type>, RW<type>. Expected single inheritance: TypelessProperty -> P<type> -> RO<type> | RW<type> -> ... Implementation of P<type>, RO<type>, RW<type> properties is fixed, any user-added methods and attributes should be implemented by inheriting P<type>, RO<type> | RW<type> types.

Parameters:
obj a property interface to translate
writeInto the directory where the interface must be defined
inheritanceList non-recursive (direct) inheritance list of the interface
Returns:
true if interface was handled by this method, false otherwise

boolean abeans::models::acs::baci::generator::IDLtoAbeans::translate_bean_interface_property IdlObject  obj,
File  writeInto,
List  inheritanceList
[inline, private]
 

Translate an property interface for the user. Property already has knowledge of BACI and Abeans, also naming convention of P<type>, RO<type>, RW<type>. Expected single inheritance: TypelessProperty -> P<type> -> RO<type> | RW<type> -> ... Implementation of P<type>, RO<type>, RW<type> properties is fixed, any user-added methods and attributes should be implemented by inheriting P<type>, RO<type> | RW<type> types.

Parameters:
obj a property interface to translate
writeInto the directory where the interface must be defined
inheritanceList non-recursive (direct) inheritance list of the interface
Returns:
true if interface was handled by this method, false otherwise

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_bean_interface_property_constructors IdlObject  obj,
PrintWriter  output
[inline, static, private]
 

Generates property constructors.

Parameters:
obj 
output 

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_bean_interface_property_Ptype IdlObject  obj,
IdlInterface  itf,
IdlObject  propertyType,
IdlObject  cbType,
String  historyHolder,
PrintWriter  output
[inline, private]
 

Translates Ptype property interface.

Parameters:
obj 
itf 
propertyType 
output 

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_bean_interface_property_ROtype IdlObject  obj,
IdlInterface  itf,
IdlObject  propertyType,
PrintWriter  output
[inline, private]
 

Translates ROtype property interface.

Parameters:
obj 
itf 
propertyType 
output 

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_bean_interface_property_RWtype IdlObject  obj,
IdlInterface  itf,
IdlObject  propertyType,
PrintWriter  output
[inline, private]
 

Translates RWtype property interface.

Parameters:
obj 
itf 
propertyType 
output 

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_bean_module IdlObject  obj,
File  writeInto
[inline, private]
 

Translate a user module

Parameters:
obj the module to translate
writeInto the directory where the module must be defined

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_bean_object IdlObject  obj,
File  writeInto
[inline, private]
 

Translate the data from a container object (Module, Interface, Root) for the user code

Parameters:
obj the object to translate
writeInto the write access

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_bean_operation IdlObject  obj,
PrintWriter  output,
boolean  isParentLinkable,
boolean  doesImplementInterceptor,
boolean  declarationOnly
[inline, static, private]
 

Translate an operation for the user code

Parameters:
obj operation to translate
output write access

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_bean_operation IdlObject  obj,
PrintWriter  output,
boolean  isParentLinkable,
boolean  doesImplementInterceptor
[inline, static, private]
 

Translate an operation for the user code

Parameters:
obj operation to translate
output write access

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_comment_section PrintWriter  output,
String  description,
IdlObject  obj
[inline, static, private]
 

Translate a JavaDoc comments section

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_constant IdlObject  obj,
File  writeInto,
PrintWriter  print
[inline, private]
 

Translate a constant

Parameters:
obj the constant to translate
writeInto the directory where the constant must be defined

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_enum IdlObject  obj,
File  writeInto
[inline, private]
 

Translate an enumeration

Parameters:
obj the enum to be translated
writeInto the directory where the enum must be defined

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_exception IdlObject  obj,
File  writeInto
[inline, private]
 

Translate an exception

Parameters:
obj exception to translate
writeInto the directory where the exception must be defined

String abeans::models::acs::baci::generator::IDLtoAbeans::translate_from_object IdlObject  obj,
String  inname
[inline, static, private]
 

Map from to java.lang.Object. Examples: inname; inname.doubleValue();

Parameters:
obj the member to decode
inname parameter
Returns:
expression

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_interface IdlObject  obj,
File  writeInto
[inline, private]
 

Translate a proxy for an interface

Parameters:
obj the interface to translate
writeInto the directory where the interface must be defined

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_interface_interface IdlObject  obj,
File  writeInto
[inline, private]
 

Translate an interface (operation list to support multiple inheritance) for an interface

Parameters:
obj the interface to translate
writeInto the directory where the interface must be defined

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_marshalling_member IdlObject  obj,
PrintWriter  output,
String  outname,
String  tname,
String  space
[inline, static, private]
 

Encode a member data type

Parameters:
obj member to encode
output write access
outname outputstream name
tname data type name
space indent space

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_module IdlObject  obj,
File  writeInto,
int  translateType
[inline, private]
 

Translate a module

Parameters:
obj the module to translate
writeInto the directory where the module must be defined

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_native IdlObject  obj,
File  writeInto
[inline, private]
 

Translate a native type

Parameters:
obj the module to translate
writeInto the directory where the module must be defined

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_object IdlObject  obj,
File  writeInto,
int  translateType
[inline, private]
 

Translate the data from a container object (Module, Interface, Root)

Parameters:
obj the object to translate
writeInto the write access
translateType the translation type (0=data, 1=stub, 2=skeleton)

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_object_content IdlObject  obj,
File  writeInto,
int  translateType
[inline, private]
 

Translate an object content

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_operation IdlObject  obj,
PrintWriter  output
[inline, static, private]
 

Translate an operation

Parameters:
obj operation to translate
output write access

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_operation_callback IdlObject  obj,
PrintWriter  output
[inline, static, private]
 

Translate an operation for callback.

Parameters:
obj operation to translate
output write access

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_operation_proxy String  methodName,
IdlObject  obj,
PrintWriter  output
[inline, static, private]
 

Translate an operation for a proxy

Parameters:
obj operation to translate
output write access

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_parameter IdlObject  obj,
PrintWriter  output,
int  attr
[inline, static, private]
 

Translate a parameter

Parameters:
obj param object to translate
output write access
attr parameter attribute

String abeans::models::acs::baci::generator::IDLtoAbeans::translate_parameter IdlObject  obj,
int  attr
[inline, static, private]
 

Translate a parameter

Parameters:
obj param object to translate
attr parameter attribute
Returns:
expression

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_parameter_CORBA IdlObject  obj,
PrintWriter  output,
int  attr
[inline, static, private]
 

Translate a parameter as CORBA does

Parameters:
obj param object to translate
output write access
attr parameter attribute

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_read_attribute_proxy IdlObject  obj,
PrintWriter  output
[inline, static, private]
 

Translate a read attribute for a proxy

Parameters:
obj attribute to translate
output write access

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_state_member IdlObject  obj,
PrintWriter  output
[inline, static, private]
 

Translate a value type state

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_struct IdlObject  obj,
File  writeInto
[inline, private]
 

Translate the structure

Parameters:
obj le module to be translated
writeInto the directory where the structure must be defined

String abeans::models::acs::baci::generator::IDLtoAbeans::translate_to_java_expression String  expr,
boolean  fixed,
IdlObject  obj
[inline, static, private]
 

Translate an IDL expression into a Java expression

Parameters:
expr the IDL expression
Returns:
the equivalent Java expression

String abeans::models::acs::baci::generator::IDLtoAbeans::translate_to_object IdlObject  obj,
String  tname
[inline, static, private]
 

Map obj to java.lang.Object. Examples: outname = tname; outname = new Integer(tname);

Parameters:
obj the member to encode
parameter 
Returns:
expression

String abeans::models::acs::baci::generator::IDLtoAbeans::translate_to_union_case_expression IdlUnionMember  disc,
String  expr
[inline, static, private]
 

Translate an IDL expression into an union expression

Parameters:
expr the IDL expression
Returns:
the equivalent Java expression

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_type IdlObject  obj,
PrintWriter  output
[inline, static, private]
 

Translate a data type

Parameters:
obj the object to translate
output the write access

String abeans::models::acs::baci::generator::IDLtoAbeans::translate_type IdlObject  obj  )  [inline, static, private]
 

Translate a data type

Parameters:
obj the object to translate
expression 

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_type_CORBA IdlObject  obj,
PrintWriter  output
[inline, static, private]
 

Translate a data type

Parameters:
obj the object to translate
output the write access

String abeans::models::acs::baci::generator::IDLtoAbeans::translate_type_CORBA IdlObject  obj  )  [inline, static, private]
 

Translate a data type

Parameters:
obj the object to translate expression

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_typedef IdlObject  obj,
File  writeInto
[inline, private]
 

Translate a typedef

Parameters:
obj the typedef to translate
writeInto the directory where the typedef must be defined

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_union IdlObject  obj,
File  writeInto
[inline, private]
 

Translate an union

Parameters:
obj the union to translate
writeInto the directory where the union must be defined

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_unmarshalling_member IdlObject  obj,
PrintWriter  output,
String  inname,
String  tname,
String  space
[inline, static, private]
 

Encode a member data type

Parameters:
obj the member to encode
output write access
inname inputstream name
tname data type name
space indent space

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_value_box IdlObject  obj,
File  writeInto
[inline, private]
 

Translate a Value Box

Parameters:
obj the value box to translate
writeInto the directory where the module must be defined

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_value_type IdlObject  obj,
File  writeInto
[inline, private]
 

Translate a Value Type

Parameters:
obj la value type to translate
writeInto the directory where the module must be defined

void abeans::models::acs::baci::generator::IDLtoAbeans::translate_write_attribute_proxy IdlObject  obj,
PrintWriter  output
[inline, static, private]
 

Translate a write attribute for a proxy

Parameters:
obj attribute to translate
output write access

void abeans::models::acs::baci::generator::IDLtoAbeans::translateBean IdlObject  obj,
String  packageName
[inline]
 

Generate the Abeans R3 BACI model implemenration (bean)

Parameters:
obj The compilation graph root
packageName The directory where the definitions are added

void abeans::models::acs::baci::generator::IDLtoAbeans::translateData IdlObject  obj,
String  packageName
[inline]
 

Translate the data from IDL to Abeans model java classes, helpers, holders

Parameters:
obj The compilation graph root
packageName The directory where the definitions are added

void abeans::models::acs::baci::generator::IDLtoAbeans::write_helper IdlObject  obj,
File  writeInto
[inline, private]
 

Add a Helper for a data type

Parameters:
obj the object to translate
writeInto the directory where the object must be defined

void abeans::models::acs::baci::generator::IDLtoAbeans::write_holder IdlObject  obj,
File  writeInto
[inline, private]
 

Add an holder for a data type

Parameters:
obj the object to translate
writeInto the directory where the object must be defined

void abeans::models::acs::baci::generator::IDLtoAbeans::writeDefaultAttribute final PrintWriter  output,
final IdlAttribute  obj
[inline, static, private]
 

void abeans::models::acs::baci::generator::IDLtoAbeans::writeDefaultMethods final PrintWriter  output,
final IdlObject  obj,
final Set  ids
[inline, static, private]
 

void abeans::models::acs::baci::generator::IDLtoAbeans::writeDefaultMethodsForInterfaces final PrintWriter  output,
final List  list,
final Set  ids
[inline, static, private]
 

void abeans::models::acs::baci::generator::IDLtoAbeans::writeDefaultMethodsForValueTypes final PrintWriter  output,
final List  list,
final Set  ids
[inline, static, private]
 

void abeans::models::acs::baci::generator::IDLtoAbeans::writeDefaultOperation final PrintWriter  output,
final IdlOp  obj
[inline, static, private]
 

void abeans::models::acs::baci::generator::IDLtoAbeans::writeDefaultValueFactory final IdlValue  obj,
final File  writeInto
[inline, private]
 

void abeans::models::acs::baci::generator::IDLtoAbeans::writeDefaultValueImpl final IdlValue  obj,
final File  writeInto
[inline, private]
 

void abeans::models::acs::baci::generator::IDLtoAbeans::writeMethodsForInterface IdlObject  obj,
PrintWriter  output,
List  declaredMethodsList,
boolean  recursive,
boolean  declareOnly
[inline, static, private]
 

Parameters:
obj 
output 

void abeans::models::acs::baci::generator::IDLtoAbeans::writeOperationHelperClass final PrintWriter  output,
final String  baseName,
final String  name,
final String  operationPrefix
[inline, private]
 

Writes helper method proxy class.

Parameters:
output 
baseName 
name 
operationPrefix 

void abeans::models::acs::baci::generator::IDLtoAbeans::writeOperationHelperClass final IdlObject  obj,
final PrintWriter  output,
final String  baseName
[inline, private]
 

Writes helper method proxy class.

Parameters:
obj 
output 
baseName 

void abeans::models::acs::baci::generator::IDLtoAbeans::writeOperationHelperMethod final IdlObject  obj,
final PrintWriter  output
[inline, private]
 

Writes operation helper method for the proxy.

Parameters:
obj 
output 

void abeans::models::acs::baci::generator::IDLtoAbeans::writeOperationHelperMethodHeader final IdlObject  obj,
final PrintWriter  output,
final String  operationPrefix
[inline, private]
 

Writes helper method proxy header.

Parameters:
obj 
output 
operationPrefix 


Member Data Documentation

IdlObject abeans::models::acs::baci::generator::IDLtoAbeans::_root = null [private]
 

Reference to the compilation graph

final String abeans::models::acs::baci::generator::IDLtoAbeans::ABEANS_POSTFIX = "." + ABEANS_POSTFIX_DOTLESS [static, private]
 

final String abeans::models::acs::baci::generator::IDLtoAbeans::ABEANS_POSTFIX_DOTLESS = "abeans" [static, private]
 

final String abeans::models::acs::baci::generator::IDLtoAbeans::BASE_CALLBACK_ID = "IDL:alma/ACS/Callback:1.0" [static, private]
 

final String abeans::models::acs::baci::generator::IDLtoAbeans::BASE_COMPONENT_ID = "IDL:alma/ACS/ACSComponent:1.0" [static, private]
 

final String abeans::models::acs::baci::generator::IDLtoAbeans::BASE_CONNECTABLE_ID = "IDL:alma/ACS/CharacteristicComponent:1.0" [static, private]
 

Component inteface ID.

final String abeans::models::acs::baci::generator::IDLtoAbeans::BASE_LINKABLE_ID = "IDL:alma/ACS/TypelessProperty:1.0" [static, private]
 

final String abeans::models::acs::baci::generator::IDLtoAbeans::BASE_PROPERTY_ID = "IDL:alma/ACS/TypelessProperty:1.0" [static, private]
 

String abeans::models::acs::baci::generator::IDLtoAbeans::current_pkg = adaptToDot(IdlCompiler.packageName) [private]
 

Current package

final int abeans::models::acs::baci::generator::IDLtoAbeans::DOUBLE_PROPERTY = 0 [static, private]
 

final int abeans::models::acs::baci::generator::IDLtoAbeans::DOUBLE_SEQ_PROPERTY = 4 [static, private]
 

final String abeans::models::acs::baci::generator::IDLtoAbeans::EMPTY_STRING = "" [static, private]
 

Empty string.

final String abeans::models::acs::baci::generator::IDLtoAbeans::GENERATED = "generated" [static, private]
 

GENERATED string.

File abeans::models::acs::baci::generator::IDLtoAbeans::initial = null [private]
 

Reference to the initial directory

final int abeans::models::acs::baci::generator::IDLtoAbeans::INVALID_PROPERTY = -1 [static, private]
 

final String abeans::models::acs::baci::generator::IDLtoAbeans::JAVADOC_AUTHOR = IDLtoAbeansCompiler.PRODUCT_NAME + " v" + IDLtoAbeansCompiler.VERSION [static, private]
 

Javadoc author tag.

final int abeans::models::acs::baci::generator::IDLtoAbeans::LONG_PROPERTY = 1 [static, private]
 

final int abeans::models::acs::baci::generator::IDLtoAbeans::LONG_SEQ_PROPERTY = 5 [static, private]
 

final int abeans::models::acs::baci::generator::IDLtoAbeans::OBJECT_PROPERTY = 3 [static, private]
 

final int abeans::models::acs::baci::generator::IDLtoAbeans::OBJECT_SEQ_PROPERTY = 7 [static, private]
 

final int abeans::models::acs::baci::generator::IDLtoAbeans::PATTERN_PROPERTY = 8 [static, private]
 

final String abeans::models::acs::baci::generator::IDLtoAbeans::PROXY_POSTFIX = "." + PROXY_POSTFIX_DOTLESS [static, private]
 

final String abeans::models::acs::baci::generator::IDLtoAbeans::PROXY_POSTFIX_DOTLESS = "proxy" [static, private]
 

final int abeans::models::acs::baci::generator::IDLtoAbeans::STRING_PROPERTY = 2 [static, private]
 

final int abeans::models::acs::baci::generator::IDLtoAbeans::STRING_SEQ_PROPERTY = 6 [static, private]
 

final String abeans::models::acs::baci::generator::IDLtoAbeans::tab = "\t" [static, private]
 

final String abeans::models::acs::baci::generator::IDLtoAbeans::tab1 = tab [static, private]
 

final String abeans::models::acs::baci::generator::IDLtoAbeans::tab2 = tab + tab [static, private]
 

final String abeans::models::acs::baci::generator::IDLtoAbeans::tab3 = tab + tab + tab [static, private]
 

final String abeans::models::acs::baci::generator::IDLtoAbeans::tab4 = tab + tab + tab + tab [static, private]
 

final String abeans::models::acs::baci::generator::IDLtoAbeans::tab5 = tab + tab + tab + tab + tab [static, private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:42:58 2009 for ACS Java API by doxygen 1.3.8