com.soebes.subversion.sapm
Class Groups

java.lang.Object
  extended by com.soebes.subversion.sapm.Groups

public class Groups
extends Object

Convenience class for the grammar to handle a list of Groups.

Author:
Karl Heinz Marbaise

Field Summary
private  ArrayList<Group> groupsList
           
 
Constructor Summary
Groups()
           
 
Method Summary
 void add(Group group)
          Add a single group to the list of groups.
 Group getGroup(Group group)
           
 Group getGroup(String groupName)
          Get the Group instance from the list by name.
 ArrayList<Group> getGroupsList()
          Get the list of all groups
 boolean hasGroup(String groupName)
          Check if a group with the given groupName exists in the list or not.
 void setGroupsList(ArrayList<Group> groupsList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groupsList

private ArrayList<Group> groupsList
Constructor Detail

Groups

public Groups()
Method Detail

setGroupsList

public void setGroupsList(ArrayList<Group> groupsList)

getGroupsList

public ArrayList<Group> getGroupsList()
Get the list of all groups

Returns:
The list of Groups.

add

public void add(Group group)
Add a single group to the list of groups.

Parameters:
group - The group which will added to the list.

hasGroup

public boolean hasGroup(String groupName)
Check if a group with the given groupName exists in the list or not. The check will be done case-sensitive.

Parameters:
groupName - The name we are searching for.
Returns:
true if the group has been found false otherwise.

getGroup

public Group getGroup(Group group)

getGroup

public Group getGroup(String groupName)
Get the Group instance from the list by name.

Parameters:
groupName - The group for which will be searched.
Returns:
The Group instance for the given group name.


Copyright © 2010-2011 SoftwareEntwicklung Beratung Schulung. All Rights Reserved.