hudson.plugins.warnings.util.model
Class DefaultAnnotationContainer

java.lang.Object
  extended by hudson.plugins.warnings.util.model.AnnotationContainer
      extended by hudson.plugins.warnings.util.model.DefaultAnnotationContainer
All Implemented Interfaces:
AnnotationProvider, java.io.Serializable

public class DefaultAnnotationContainer
extends AnnotationContainer

A simple annotation container that stores a set of annotations. The caching hierarchy is AnnotationContainer.Hierarchy.PROJECT.

Author:
Ulli Hafner
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.plugins.warnings.util.model.AnnotationContainer
AnnotationContainer.Hierarchy
 
Constructor Summary
DefaultAnnotationContainer()
          Creates a new instance of DefaultAnnotationContainer.
DefaultAnnotationContainer(java.util.Set<FileAnnotation> annotations)
          Creates a new instance of DefaultAnnotationContainer.
 
Method Summary
protected  java.util.Collection<? extends AnnotationContainer> getChildren()
          Returns the children containers of this container.
 
Methods inherited from class hudson.plugins.warnings.util.model.AnnotationContainer
addAnnotation, addAnnotations, addAnnotations, containsCategory, containsFile, containsModule, containsPackage, containsType, getAnnotation, getAnnotation, getAnnotationBound, getAnnotations, getAnnotations, getAnnotations, getCategories, getCategory, getContainer, getFile, getFile, getFiles, getHighAnnotations, getHighPriority, getLowAnnotations, getLowPriority, getModule, getModules, getName, getNormalAnnotations, getNormalPriority, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getPackage, getPackageCategoryName, getPackages, getToolTip, getType, getTypes, hasAnnotations, hasAnnotations, hasAnnotations, hasNoAnnotations, hasNoAnnotations, hasNoAnnotations, rebuildMappings, setHierarchy, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAnnotationContainer

public DefaultAnnotationContainer()
Creates a new instance of DefaultAnnotationContainer.


DefaultAnnotationContainer

public DefaultAnnotationContainer(java.util.Set<FileAnnotation> annotations)
Creates a new instance of DefaultAnnotationContainer.

Parameters:
annotations - the annotations to be stored
Method Detail

getChildren

protected java.util.Collection<? extends AnnotationContainer> getChildren()
Returns the children containers of this container. If we are already at the leaf level, then an empty collection is returned.

Specified by:
getChildren in class AnnotationContainer
Returns:
the children containers of this container.


Copyright © 2008. All Rights Reserved.