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
-
CONNECTIONS
- A constant used by SymantecBeanDescriptor when specifying connection information.
-
INPUT
- A constant indicating an input connection.
-
OUTPUT
- A constant indicating an output connection.
-
symantec.itools.beans.ConnectionDescriptor()
- Constructs a default ConnectionDescriptor.
-
symantec.itools.beans.ConnectionDescriptor(String)
- Constructs a ConnectionDescriptor with the given form.
-
symantec.itools.beans.ConnectionDescriptor(String, String, String, String, String)
- Constructs a ConnectionDescriptor with the given form, type, init, and
expr String values.
-
getExpr()
- Gets the current expression string.
-
getForm()
- Gets the current form string.
-
getInit()
- Gets the current init string.
-
getType()
- Gets the current type string.
-
setExpr(String)
- Specifies the code fragment that is used to create this connection.
-
setForm(String)
- Sets the form string.
-
setInit(String)
- Specifies any initialization code that needs to be present prior to the code generated from
the connection expression.
-
setType(String)
- Specifies the Java type of the parameter or return value of this connection.
CONNECTIONS
public static final java.lang.String CONNECTIONS
- A constant used by SymantecBeanDescriptor when specifying connection information.
- See Also:
- SymantecBeanDescriptor
INPUT
public static final java.lang.String INPUT
- A constant indicating an input connection.
- See Also:
- setForm
OUTPUT
public static final java.lang.String OUTPUT
- A constant indicating an output connection.
- See Also:
- setForm
ConnectionDescriptor
public ConnectionDescriptor()
- Constructs a default ConnectionDescriptor. Form, type, init, and expr
are all empty strings.
- See Also:
- setForm, setType, setInit, setExpr
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
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
getExpr
public java.lang.String getExpr()
- Gets the current expression string.
- Returns:
- the current expression
- See Also:
- setExpr
getForm
public java.lang.String getForm()
- Gets the current form string.
- Returns:
- the current form
- See Also:
- setForm
getInit
public java.lang.String getInit()
- Gets the current init string.
- Returns:
- the current init
- See Also:
- setInit
getType
public java.lang.String getType()
- Gets the current type string.
- Returns:
- the current type
- See Also:
- setType
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
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
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
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