|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.sf.bloof.metrics.FileGroup
Container for a group of files. Acts as filter for a Metric
This class is used as an argument for a @link{MetricParameter}
| Field Summary |
| Fields inherited from interface net.sf.bloof.metrics.Filter |
DEFAULT_NAME_PREFIXES, DEVELOPER, FILE, TIMESPAN |
| Constructor Summary | |
FileGroup(FileNode[] aFileNode)
Creates a FileGroup from an Array of FileNodes, using the pathnames of the FileNodes |
|
FileGroup(java.lang.String[] aFullPathnameList)
Creates a FileGroup from an Array of fully qualified pathnames If a pathname is in a subtree of another pathname the shortest common prefix is choosen and the others are deleted because of reduncance, e.g. |
|
| Method Summary | |
java.lang.String |
getContent()
Returns the content of the filter as string |
int |
getFilterType()
Returns the type of the filter, must be one of Filter.FILE, Filter.DEVELOPER, Filter.TIMESPAN |
java.lang.String |
getName()
Returns the name of the group |
java.util.Iterator |
getPathnamePrefixIterator()
Returns an Iterator over the prefix set of the pathnames of this group |
int |
getSize()
Returns the number of files in this group |
void |
setName(java.lang.String aName)
Sets the name. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FileGroup(FileNode[] aFileNode)
aFileNode - list of FileNodespublic FileGroup(java.lang.String[] aFullPathnameList)
aFullPathnameList - list of fully qualified pathnames| Method Detail |
public java.lang.String getContent()
Filter
getContent in interface FilterObject.toString( )public int getFilterType()
Filter
getFilterType in interface FilterFilter.getFilterType()public java.lang.String getName()
getName in interface Filterpublic java.util.Iterator getPathnamePrefixIterator()
public int getSize()
public void setName(java.lang.String aName)
setName in interface FilteraName - The name to setpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString( )
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||