net.sf.adatagenerator.api
Interface Group<T>

All Superinterfaces:
Comparable<NamedInstance>, NamedInstance
All Known Subinterfaces:
HierarchicalGroup<T>
All Known Implementing Classes:
DefaultGroup

public interface Group<T>
extends NamedInstance


Field Summary
static int DEFAULT_INITIAL_ID
           
 
Method Summary
 void addAllRecords(List<T> recs)
           
 void addRecord(T rec)
           
 void clearRecords()
           
 int getId()
           
 String getName()
          Implementing classes should return a name that will be comparable within some context
 String getParam(String name)
           
 HashMap<String,String> getParams()
           
 List<T> getRecords()
           
 int incrementId()
           
 void setName(String name)
           
 void setParam(String name, String value)
           
 
Methods inherited from interface net.sf.adatagenerator.api.NamedInstance
compareContexts, compareTo, getContext, getContextComparator, getNamedInstanceComparator
 

Field Detail

DEFAULT_INITIAL_ID

static final int DEFAULT_INITIAL_ID
See Also:
Constant Field Values
Method Detail

getId

int getId()

incrementId

int incrementId()

getName

String getName()
Description copied from interface: NamedInstance
Implementing classes should return a name that will be comparable within some context

Specified by:
getName in interface NamedInstance
Returns:
a value that identifies an instance in some context. This parameter may be null for an anonymous instance, but if it is non-null, the value will be a trimmed String

setName

void setName(String name)

setParam

void setParam(String name,
              String value)

getParam

String getParam(String name)

getParams

HashMap<String,String> getParams()

addRecord

void addRecord(T rec)

clearRecords

void clearRecords()

addAllRecords

void addAllRecords(List<T> recs)

getRecords

List<T> getRecords()


Copyright © 2011-2012. All Rights Reserved.