StringBvr Class


public class StringBvr extends Behavior {
    // Methods
    public Object extract();
    
    public static StringBvr newUninitBvr();
}

Creates an object that represents a string behavior. At any given time, the value of the behavior is a character string.

For more information about behaviors, see the Behavior class.

Methods


extract

StringBvr Class

Extracts the value of the behavior, returning a Java object. This behavior must have a constant value.

public Object extract( );

Return Values

Returns a Java object. For more information about java.lang.Object objects, consult a Java reference.


newUninitBvr

StringBvr Class

Allows you to refer to an StringBvr behavior before that behavior has been defined. With this method you can create the behavior and use it in the definition of other behaviors, but not actually define its contents until some later point. (This is accomplished with the init method, which is available on all behaviors.) The system generates a run-time error if you initialize a non-uninitialized behavior, initialize an uninitialized behavior that has already been initialized, or run an initialized behavior that has not yet been initialized.

public static StringBvr newUninitBvr( );

Parameters
b
A character string.
Return Values

Returns the StringBvr object.

Relevant Methods from the Statics Class

The following methods are defined in the Statics class and are most relevant to objects of type StringBvr.

public static StringBvr concat(StringBvr a, StringBvr b);

public static StringBvr toBvr(String string);

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.