Package wt.vc.views
Class ViewHelper
java.lang.Object
wt.vc.views.ViewHelper
- All Implemented Interfaces:
Externalizable,Serializable
This standard helper for
Supported API: true
Extendable: false
ViewService has helper methods and accesses
API functionality via ViewHelper.service.
Supported API: true
Extendable: false
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassignToView(ViewManageable version, View view) Assigns the view to a version.static ViewgetView(ViewManageable version) Returns the view the version is assigned to.static StringgetViewName(ViewManageable version) Returns the name of the view this object is assigned to.
-
Field Details
-
service
Supported API: true
-
-
Method Details
-
getViewName
Returns the name of the view this object is assigned to. If the version is not assigned to a view, returns null.
Supported API: true- Parameters:
version-- Returns:
- String
-
getView
Returns the view the version is assigned to. If the version is not assigned to a view, returns null.
Supported API: true- Parameters:
version-- Returns:
- View
-
assignToView
Assigns the view to a version. This method will throw a ViewException if the version has been persisted or has been created from another version. View-independent versions can not be assigned to versions and can not be branched into a view.
Supported API: true- Parameters:
version- The ViewManageable version to assign to a view.view- The view to assign the version to.- Throws:
ViewException
-