yawda.data.model.application
Class CGroup

java.lang.Object
  extended byyawda.data.model.application.CGroup

public final class CGroup
extends Object

This class represent a group (role)

Author:
Quentin Anciaux

Constructor Summary
CGroup(CModule parent, String name, boolean disabled)
          Create a new group
 
Method Summary
 String getName()
           
 CModule getParent()
           
 boolean isDisabled()
           
 String toString()
           
 String toString(String tabs)
           
static CGroup unmarshall(Node node, CModule parent)
          Unmarshall a group object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CGroup

public CGroup(CModule parent,
              String name,
              boolean disabled)
Create a new group

Parameters:
parent - The module to associate to this group
name - The name of the group
disabled - if true, the associated module is disabled for this group
Method Detail

isDisabled

public final boolean isDisabled()
Returns:
true, if this groupd disable the associated module

getParent

public final CModule getParent()
Returns:
the associated module

getName

public final String getName()
Returns:
the name of the group

unmarshall

public static final CGroup unmarshall(Node node,
                                      CModule parent)
Unmarshall a group object

Parameters:
node - a <group> tag node
parent - the module to associate the unmarshalled group
Returns:
The unmarshalled group

toString

public final String toString()
See Also:
Object.toString()

toString

public final String toString(String tabs)
Parameters:
tabs - A string containing one or more tabs '\t'
Returns:
The group as an xml string.