net.sf.jett.model
Class Group

java.lang.Object
  extended by net.sf.jett.model.Group

public class Group
extends java.lang.Object

A Group is a group of objects that shares some common values for some properties. One of the objects is designated as "the object" to represent all "items" with the same common values for some properties. JETT will not be able to determine the type of the objects at compile time, so there's no point to making this class generic.

Since:
0.3.0
Author:
Randy Gettman

Constructor Summary
Group()
          Constructs a Group without a representative object or a list of all items in the group.
 
Method Summary
 java.util.List getItems()
          Returns the List of items in the group.
 java.lang.Object getObj()
          Returns the object that is representative of all objects in the group.
 void setItems(java.util.List items)
          Sets the List of items in the group.
 void setObj(java.lang.Object obj)
          Sets the object that is representative of all objects in the group.
 java.lang.String toString()
          Returns the string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Group

public Group()
Constructs a Group without a representative object or a list of all items in the group.

Method Detail

getObj

public java.lang.Object getObj()
Returns the object that is representative of all objects in the group.

Returns:
The object that is representative of all objects in the group.

setObj

public void setObj(java.lang.Object obj)
Sets the object that is representative of all objects in the group. This object should be an element in the list of items.

Parameters:
obj - An object that is representative of all objects in the group.

getItems

public java.util.List getItems()
Returns the List of items in the group.

Returns:
The List of items in the group.

setItems

public void setItems(java.util.List items)
Sets the List of items in the group.

Parameters:
items - The List of items in the group.

toString

public java.lang.String toString()
Returns the string representation.

Overrides:
toString in class java.lang.Object
Returns:
The string representation.


Copyright © 2012-2013 Jett Team. All Rights Reserved.