com.bea.tuxedo.control
Class TuxClassViewValidate

java.lang.Object
  extended by com.bea.tuxedo.control.TuxClassViewValidate
All Implemented Interfaces:
ITuxClass

public class TuxClassViewValidate
extends Object
implements ITuxClass

Provide access to the fields in a View or View32 class. Used by the validator code.


Constructor Summary
TuxClassViewValidate(HashMap table, TuxedoControl.AccessorName conv)
          Constructor that takes an already generated table
TuxClassViewValidate(TypeDeclaration tuxClass, TuxedoControl.AccessorName conv, AnnotationProcessorEnvironment env)
          Constructor.
 
Method Summary
 ITuxField getField(String name)
          Not used for validation code
 HashMap getTable()
          Get the table built for this class.
 int getType(String name)
          Return the type associated with a named field, or -1 if no field with that name can be found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TuxClassViewValidate

public TuxClassViewValidate(TypeDeclaration tuxClass,
                            TuxedoControl.AccessorName conv,
                            AnnotationProcessorEnvironment env)
Constructor. Create a representation of a view or view32 class using the compiler's internal representation of the class.

Parameters:
tuxClass - View class
conv - The conventions used to convert accessor names to fields.

TuxClassViewValidate

public TuxClassViewValidate(HashMap table,
                            TuxedoControl.AccessorName conv)
Constructor that takes an already generated table

Parameters:
table - A HashMap retreived from a different ITuxClassViewValidate instance
conv - The naming conventions used to construct the table
Method Detail

getTable

public HashMap getTable()
Get the table built for this class.

Returns:
the HashMap representing the name to type mapping for this class.

getField

public ITuxField getField(String name)
Not used for validation code

Specified by:
getField in interface ITuxClass
Parameters:
name - The name of the desired field.
Returns:
An ITuxField object representing the field.

getType

public int getType(String name)
Return the type associated with a named field, or -1 if no field with that name can be found.

Specified by:
getType in interface ITuxClass
Parameters:
name - The name of the desired field.
Returns:
The Tuxedo type code of the field, or -1 if no field could be found.