|
|||||||||
| Home >> All >> recoin >> [ group overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
recoin.group
Class ModuleView

java.lang.Objectrecoin.group.ModuleView
- All Implemented Interfaces:
- Module, java.io.Serializable
- public class ModuleView
- extends java.lang.Object
- implements Module, java.io.Serializable
- extends java.lang.Object
A ModuleView implements the Module interface, but doesn't implement the runtime methods
like prepareContainer 55 .
It merely encapsulates information about the Module which can also be transmitted across
a network, because a ModuleView implements the Serializable interface.
ModuleView objects are used, for example, by the administration web application to transport
and store data about the Module.
- Version:
- 0.2.9
| Field Summary | |
protected boolean |
activate
The flag signaling whether this Module should be loaded on startup. |
protected boolean |
active
The flag signaling the ready state of this Module. |
protected java.util.Vector |
components
The Component objects that are contained in this Module. |
protected java.lang.String |
description
A description of this Module. |
protected java.lang.String |
groupname
The name of the Module's ModuleGroup. |
protected int |
id
The unique ID. |
(package private) static org.apache.log4j.Logger |
logger
The logger for this class. |
protected java.lang.String |
name
The name of this Module. |
| Constructor Summary | |
ModuleView(int id)
Creates a new ModuleView with the specified ID. |
|
ModuleView(Module module)
Creates a new ModuleView based on the specified Module by copying its attributes. |
|
| Method Summary | |
boolean |
activate()
Method not implemented in this class!! Always returns false. |
void |
addComponent(Component component)
Verifies that the specified Component is an instance of ComponentView. |
boolean |
equals(java.lang.Object o)
Compares the specified Object to this ModuleView. |
boolean |
getActivateOnStartup()
Returns the value of the activate field of this ModuleView. |
Component |
getComponent(int id)
Returns the Component with the specified ID. |
int |
getComponentCount()
Returns the number of Component objects contained in this Module. |
int[] |
getComponentIDs()
Returns the IDs of the Component objects contained in this Module as an int array. |
java.util.Vector |
getComponents()
Returns the Component objects of this Module. |
java.lang.String |
getDescription()
Returns the description of this Module. |
ModuleGroup |
getGroup()
Method not implemented in this class! Always returns NULL. |
java.lang.String |
getGroupname()
Returns the name of the ModuleGroup. |
int |
getID()
Returns the ID of this Module. |
java.lang.String |
getName()
Returns the name of this Module. |
boolean |
isActive()
Returns whether this Module has been successfully activated. |
java.util.Vector |
prepareContainer(recoin.container.RetrievalContainer container)
Not implemented in this class! Always returns NULL. |
ComponentRunnable |
prepareContainer(recoin.container.RetrievalContainer container,
recoin.system.session.ComponentOrder order)
Not implemented in this class! Always returns NULL. |
ComponentRunnable |
prepareContainer(recoin.container.RetrievalContainer container,
recoin.system.session.ComponentOrder order,
ComponentRunnable runnable)
Not implemented in this class! Always returns NULL. |
void |
removeComponent(Component component)
Tries to remove the specified Component from this ModuleView. |
void |
setActivateOnStartup(boolean activate)
Sets the value of the activate field of this ModuleView to the
specified value. |
void |
setActive(boolean active)
Sets the value of the active field of this Module to the
specified value. |
void |
setDescription(java.lang.String description)
Sets the description of this Module to the specified description. |
void |
setGroup(ModuleGroup group)
Method not implemented in this class! |
void |
setName(java.lang.String name)
Sets the name of this Module to the specified name. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
id
protected int id
- The unique ID.
activate
protected boolean activate
- The flag signaling whether this Module should be loaded on startup.
active
protected boolean active
- The flag signaling the ready state of this Module.
groupname
protected java.lang.String groupname
- The name of the Module's ModuleGroup.
name
protected java.lang.String name
- The name of this Module.
description
protected java.lang.String description
- A description of this Module.
components
protected java.util.Vector components
- The Component objects that are contained in this Module.
logger
static org.apache.log4j.Logger logger
- The logger for this class.
| Constructor Detail |
ModuleView
public ModuleView(int id)
- Creates a new ModuleView with the specified ID.
ModuleView
public ModuleView(Module module)
- Creates a new ModuleView based on the specified Module by copying its
attributes. Any Component objects contained in the specified Module will be
transformed into ComponentView objects to maintain serializability.
| Method Detail |
getDescription
public java.lang.String getDescription()
- Returns the description of this Module.
- Specified by:
getDescriptionin interfaceModule
setDescription
public void setDescription(java.lang.String description)
- Sets the description of this Module to the specified description.
- Specified by:
setDescriptionin interfaceModule
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getComponentIDs
public int[] getComponentIDs()
- Returns the IDs of the Component objects contained in this Module as an int array.
- Specified by:
getComponentIDsin interfaceModule
getComponentCount
public int getComponentCount()
- Returns the number of Component objects contained in this Module.
- Specified by:
getComponentCountin interfaceModule
getComponents
public java.util.Vector getComponents()
- Returns the Component objects of this Module.
- Specified by:
getComponentsin interfaceModule
getID
public int getID()
getGroupname
public java.lang.String getGroupname()
- Returns the name of the ModuleGroup.
- Specified by:
getGroupnamein interfaceModule
getGroup
public ModuleGroup getGroup()
- Method not implemented in this class! Always returns NULL.
setGroup
public void setGroup(ModuleGroup group)
getComponent
public Component getComponent(int id)
- Returns the Component with the specified ID. The method returns NULL if no
Component with the specified ID can be found.
- Specified by:
getComponentin interfaceModule
getActivateOnStartup
public boolean getActivateOnStartup()
- Returns the value of the
activatefield of this ModuleView.- Specified by:
getActivateOnStartupin interfaceModule
setActivateOnStartup
public void setActivateOnStartup(boolean activate)
- Sets the value of the
activatefield of this ModuleView to the specified value.- Specified by:
setActivateOnStartupin interfaceModule
activate
public boolean activate()
- Method not implemented in this class!! Always returns
false.
isActive
public boolean isActive()
- Returns whether this Module has been successfully activated.
setActive
public void setActive(boolean active)
- Sets the value of the
activefield of this Module to the specified value.
prepareContainer
public java.util.Vector prepareContainer(recoin.container.RetrievalContainer container)
- Not implemented in this class! Always returns NULL.
- Specified by:
prepareContainerin interfaceModule
prepareContainer
public ComponentRunnable prepareContainer(recoin.container.RetrievalContainer container, recoin.system.session.ComponentOrder order)
- Not implemented in this class! Always returns NULL.
- Specified by:
prepareContainerin interfaceModule
prepareContainer
public ComponentRunnable prepareContainer(recoin.container.RetrievalContainer container, recoin.system.session.ComponentOrder order, ComponentRunnable runnable)
- Not implemented in this class! Always returns NULL.
- Specified by:
prepareContainerin interfaceModule
addComponent
public void addComponent(Component component)
- Verifies that the specified Component is an instance of ComponentView. If so,
it is added to this ModuleView.
- Specified by:
addComponentin interfaceModule
removeComponent
public void removeComponent(Component component)
- Tries to remove the specified Component from this ModuleView. If the Component
was removed successfully, the Component's
setInitiated 55 method is called
with a parameter of
false.- Specified by:
removeComponentin interfaceModule
equals
public boolean equals(java.lang.Object o)
- Compares the specified Object to this ModuleView. If the Object is an instance of
ModuleView and if its fields equal this ModuleView's fields, the method returns
true.
|
|||||||||
| Home >> All >> recoin >> [ group overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
recoin.group.ModuleView