wt.vc.views
Class View

java.lang.Object
  extended by wt.fc.WTObject
      extended by wt.vc.views.View
All Implemented Interfaces:
Externalizable, Serializable, NetFactor, ObjectMappable, Persistable, DisplayIdentification

public final class View
extends WTObject
implements Externalizable

The view represents a type of branching mechanism for versioned data. Versions assigned to views are valid only in the context of the view (or in its downstream views, provided there have been no versions assigned to them). Once assigned to a View, the version becomes view-dependent; and all future versions must also be assigned to views. A version participating in a view can be "branched" into any downstream (child) views, but can not be branched into any of its parent views.

Use the newView static factory method(s), not the View constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
static String NAME
          Label for the attribute; The name of the View.
 
Method Summary
 String getIdentity()
          Returns the name of this view.
 String getName()
          Gets the value of the attribute: NAME.
protected  void initialize(String viewName)
          Supports initialization, following construction of an instance.
static View newView(String viewName)
          Factory method for creating views.
 void setName(String a_Name)
          Sets the value of the attribute: NAME.
 
Methods inherited from class wt.fc.WTObject
getDisplayIdentifier, getDisplayIdentity, getDisplayType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
Label for the attribute; The name of the View. Must be unique.

Supported API: true

See Also:
Constant Field Values
Method Detail

getName

public String getName()
Gets the value of the attribute: NAME. The name of the View. Must be unique.

Supported API: true

Returns:
String

setName

public void setName(String a_Name)
             throws WTPropertyVetoException
Sets the value of the attribute: NAME. The name of the View. Must be unique.

Supported API: true

Parameters:
a_Name -
Throws:
WTPropertyVetoException

newView

public static View newView(String viewName)
                    throws WTException
Factory method for creating views. To create views and view associations, use the command-line interface provided or the load utility:

Supported API: true

Parameters:
viewName -
Returns:
View
Throws:
WTException
See Also:
LoadViews, LoadView

initialize

protected void initialize(String viewName)
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
viewName -
Throws:
WTException

getIdentity

public String getIdentity()
Returns the name of this view.

Supported API: true

Returns:
String