Class symantec.itools.beans.ConnectionDescriptor
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.beans.ConnectionDescriptor

Object
   |
   +----FeatureDescriptor
           |
           +----symantec.itools.beans.ConnectionDescriptor

public class ConnectionDescriptor
extends FeatureDescriptor
A simple class that encapsulates a bean's Visual Café "connection" information as used by the Interaction Wizard. A Visual Café connection implies a relationship between objects (or between an object and itself) involving either event notification or data transmission. The Interaction Wizard allows users to graphically build these relationships between objects and then Visual Café is able to generate the code for the specified relationship based on the underlying connection information encapsulated in the ConnectionDescriptor.

Version:
1.0, July 1, 1997
Author:
Symantec

Variable Index

 o CONNECTIONS
A constant used by SymantecBeanDescriptor when specifying connection information.
 o INPUT
A constant indicating an input connection.
 o OUTPUT
A constant indicating an output connection.

Constructor Index

 o symantec.itools.beans.ConnectionDescriptor()
Constructs a default ConnectionDescriptor.
 o symantec.itools.beans.ConnectionDescriptor(String)
Constructs a ConnectionDescriptor with the given form.
 o symantec.itools.beans.ConnectionDescriptor(String, String, String, String, String)
Constructs a ConnectionDescriptor with the given form, type, init, and expr String values.

Method Index

 o getExpr()
Gets the current expression string.
 o getForm()
Gets the current form string.
 o getInit()
Gets the current init string.
 o getType()
Gets the current type string.
 o setExpr(String)
Specifies the code fragment that is used to create this connection.
 o setForm(String)
Sets the form string.
 o setInit(String)
Specifies any initialization code that needs to be present prior to the code generated from the connection expression.
 o setType(String)
Specifies the Java type of the parameter or return value of this connection.

Variables

 o CONNECTIONS
public static final java.lang.String CONNECTIONS
A constant used by SymantecBeanDescriptor when specifying connection information.

See Also:
SymantecBeanDescriptor
 o INPUT
public static final java.lang.String INPUT
A constant indicating an input connection.

See Also:
setForm
 o OUTPUT
public static final java.lang.String OUTPUT
A constant indicating an output connection.

See Also:
setForm

Constructors

 o ConnectionDescriptor
public ConnectionDescriptor()
Constructs a default ConnectionDescriptor. Form, type, init, and expr are all empty strings.

See Also:
setForm, setType, setInit, setExpr
 o ConnectionDescriptor
public ConnectionDescriptor(String f)
Constructs a ConnectionDescriptor with the given form. Type, init, and expr are all empty strings.

Parameters:
f - the form string
See Also:
setType, setInit, setExpr
 o ConnectionDescriptor
public ConnectionDescriptor(String f,
                            String t,
                            String i,
                            String e,
                            String d)
Constructs a ConnectionDescriptor with the given form, type, init, and expr String values.

Parameters:
f - the form string
t - the type string
i - the init string
e - the expression string
d - a short description

Methods

 o getExpr
public java.lang.String getExpr()
Gets the current expression string.

Returns:
the current expression
See Also:
setExpr
 o getForm
public java.lang.String getForm()
Gets the current form string.

Returns:
the current form
See Also:
setForm
 o getInit
public java.lang.String getInit()
Gets the current init string.

Returns:
the current init
See Also:
setInit
 o getType
public java.lang.String getType()
Gets the current type string.

Returns:
the current type
See Also:
setType
 o setExpr
public void setExpr(String e)
Specifies the code fragment that is used to create this connection. The following replacement variables are allowed in the code fragment: %name% the name of the class/bean %class% full classname of the class/bean %arg% method argument used for input connection data

Returns:
the new expression
See Also:
getExpr
 o setForm
public void setForm(String f)
Sets the form string. The form of a connection is either INPUT or OUTPUT. An output connection defines an interaction that returns data; an input connection defines an interaction that sets data, or initiates execution of a method that doesn't take data.

Returns:
the new form
See Also:
getForm
 o setInit
public void setInit(String i)
Specifies any initialization code that needs to be present prior to the code generated from the connection expression. This string is usually blank.

Returns:
the new init
See Also:
getInit, setExpr
 o setType
public void setType(String t)
Specifies the Java type of the parameter or return value of this connection. The most common types are int, boolean, String, and void.

Returns:
the new type
See Also:
getType

All Packages  Class Hierarchy  This Package  Previous  Next  Index