ter.SDK
Class PluginTypes

java.lang.Object
  |
  +--ter.SDK.PluginTypes

public final class PluginTypes
extends java.lang.Object

Title: Class PluginTypes

Description: Defines the different types of plugins

Copyright: Copyright (c) 2003

Company:

Version:
1.0
Author:
Jerôme GAHIDE - Lucas CHARBIT - Gabriel ZERBIB - Xavier GALBOIS

Field Summary
static int COMPOSITION_CONTROLER
          For a CompositionControler plugin
static int COMPOSITION_VIEW
          For a CompositionView plugin
static int CONTROLER_MANAGER_LIMIT
           
static int DETAIL_CONTROLER
          For a DetailControler plugin
static int DETAIL_VIEW
          For an DetailView plugin
static int HERITAGE_CONTROLER
          For an HeritageControler plugin
static int HERITAGE_VIEW
          For an HeritageView plugin
static int MANAGER
           
static int SEARCH_CONTROLER
          For a SearchManager plugin
static int SEARCH_VIEW
          For a SearchView plugin This has note been implemented yet (the search results are not Views)
static int TOP_MANAGER
           
 
Constructor Summary
PluginTypes()
           
 
Method Summary
static java.lang.String getName(int type)
          return the type name of the given type
static boolean isControler(int type)
          test if the type given is a controler type
static boolean isControler(Plugin p)
          test if a plugin's type is controler
static boolean isManager(Plugin p)
          test if the given plugin's type is manager
static boolean isTopManager(Plugin p)
          test if the given plugin's type is AbstractTopManager
static boolean isView(int type)
          test if the given s type is a view type
static boolean isView(Plugin p)
          test if the given plugin's type is iew
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HERITAGE_VIEW

public static final int HERITAGE_VIEW
For an HeritageView plugin

See Also:
Constant Field Values

DETAIL_VIEW

public static final int DETAIL_VIEW
For an DetailView plugin

See Also:
Constant Field Values

COMPOSITION_VIEW

public static final int COMPOSITION_VIEW
For a CompositionView plugin

See Also:
Constant Field Values

SEARCH_VIEW

public static final int SEARCH_VIEW
For a SearchView plugin This has note been implemented yet (the search results are not Views)

See Also:
Constant Field Values

HERITAGE_CONTROLER

public static final int HERITAGE_CONTROLER
For an HeritageControler plugin

See Also:
Constant Field Values

DETAIL_CONTROLER

public static final int DETAIL_CONTROLER
For a DetailControler plugin

See Also:
Constant Field Values

COMPOSITION_CONTROLER

public static final int COMPOSITION_CONTROLER
For a CompositionControler plugin

See Also:
Constant Field Values

SEARCH_CONTROLER

public static final int SEARCH_CONTROLER
For a SearchManager plugin

See Also:
Constant Field Values

CONTROLER_MANAGER_LIMIT

public static final int CONTROLER_MANAGER_LIMIT
See Also:
Constant Field Values

MANAGER

public static final int MANAGER
See Also:
Constant Field Values

TOP_MANAGER

public static final int TOP_MANAGER
See Also:
Constant Field Values
Constructor Detail

PluginTypes

public PluginTypes()
Method Detail

isControler

public static boolean isControler(Plugin p)
test if a plugin's type is controler

Parameters:
p - the plugin to test
Returns:
true if this plugin is a controler, false otherwise

isControler

public static boolean isControler(int type)
test if the type given is a controler type

Parameters:
type - the type to test
Returns:
true if this type is a controler, false otherwise

isView

public static boolean isView(Plugin p)
test if the given plugin's type is iew

Parameters:
p - the plugin to test
Returns:
true if the plugin is a view false otherwise

isView

public static boolean isView(int type)
test if the given s type is a view type

Parameters:
type - the type to test
Returns:
true if this type is a controler, false otherwise

isManager

public static boolean isManager(Plugin p)
test if the given plugin's type is manager

Parameters:
p - the plugin to test
Returns:
true if the type is a manager, false otherwise

isTopManager

public static boolean isTopManager(Plugin p)
test if the given plugin's type is AbstractTopManager

Parameters:
p - the plugin to test
Returns:
true if the tpye is a AbstractTopManager, false otherwise

getName

public static java.lang.String getName(int type)
return the type name of the given type

Returns:
the name of the type