de.smartics.maven.issues.bugzilla
Class Sections

Package class diagram package Sections
java.lang.Object
  extended by de.smartics.maven.issues.bugzilla.Sections
All Implemented Interfaces:
Iterable< Sections.Section>

public class Sections
     
     
extends Object
implements Iterable< Sections.Section>

Provides information for sections within a version.

Author:
Robert Reiner

Nested Class Summary
static class Sections.Section
          Container for the tasks belonging to one section.
 
Constructor Summary
Sections(List<String> sectionNames)
          Default constructor.
 
Method Summary
 boolean addToSection(String sectionName, org.eclipse.mylyn.tasks.core.data.TaskData taskData)
          Adds the given taskData to the given section if the sectionName is contained in this instance.
 boolean containsKey(String sectionName)
          Checks if the given sectionName is contained in this section instance.
 Iterator<Sections.Section> iterator()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sections

public Sections(List<String> sectionNames)
Default constructor.

Parameters:
sectionNames - the list of sections to be put to the sections instance. Sections not mentioned here will be ignored.
Method Detail

iterator

public Iterator<Sections.Section> iterator()

Specified by:
iterator in interface Iterable<Sections.Section>
See Also:
Iterable.iterator()

addToSection

public boolean addToSection(String sectionName,
                            org.eclipse.mylyn.tasks.core.data.TaskData taskData)
Adds the given taskData to the given section if the sectionName is contained in this instance.

Parameters:
sectionName - the name of the section to add to.
taskData - the information to add to the section.
Returns:
true if the element has been added to the requested section, false if not because the section requested is not managed by this instance.

containsKey

public boolean containsKey(String sectionName)
Checks if the given sectionName is contained in this section instance.

Parameters:
sectionName - the name of the section to check if contained.
Returns:
true if the section is part of this instance, false otherwise.


Copyright © 2008-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.