|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.pmd.util.model.AnnotationContainer
public class AnnotationContainer
A container for annotations.
| Constructor Summary | |
|---|---|
AnnotationContainer()
Creates a new instance of AnnotationContainer. |
|
| Method Summary | |
|---|---|
void |
addAnnotation(FileAnnotation annotation)
Adds the specified annotation to this container. |
void |
addAnnotations(java.util.Collection<? extends FileAnnotation> newAnnotations)
Adds the specified annotations to this container. |
void |
addAnnotations(FileAnnotation[] newAnnotations)
Adds the specified annotations to this container. |
protected void |
annotationAdded(FileAnnotation annotation)
Called if the specified annotation has been added to this container. |
FileAnnotation |
getAnnotation(long key)
Returns the annotation with the specified key. |
FileAnnotation |
getAnnotation(java.lang.String key)
Returns the annotation with the specified key. |
java.util.Collection<FileAnnotation> |
getAnnotations()
Returns the annotations for this object. |
java.util.Collection<FileAnnotation> |
getAnnotations(Priority priority)
Returns the annotations of the specified priority for this object. |
java.util.Collection<FileAnnotation> |
getAnnotations(java.lang.String priority)
Returns the annotations of the specified priority for this object. |
int |
getNumberOfAnnotations()
Returns the total number of annotations for this object. |
int |
getNumberOfAnnotations(Priority priority)
Returns the total number of annotations of the specified priority for this object. |
int |
getNumberOfAnnotations(java.lang.String priority)
Returns the annotations of the specified priority for this object. |
java.lang.String |
getPackageCategoryName()
Returns the package category name for the scanned files. |
java.lang.String |
getToolTip()
Returns a tooltip showing the distribution of priorities for this container. |
boolean |
hasAnnotations()
Returns whether this objects has annotations. |
boolean |
hasAnnotations(Priority priority)
Returns whether this objects has annotations with the specified priority. |
boolean |
hasAnnotations(java.lang.String priority)
Returns whether this objects has annotations with the specified priority. |
protected void |
rebuildPriorities()
Rebuilds the priorities after deserialization. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationContainer()
AnnotationContainer.
| Method Detail |
|---|
protected void rebuildPriorities()
public final void addAnnotation(FileAnnotation annotation)
annotation - the annotation to addpublic final void addAnnotations(java.util.Collection<? extends FileAnnotation> newAnnotations)
newAnnotations - the annotations to addpublic final void addAnnotations(FileAnnotation[] newAnnotations)
newAnnotations - the annotations to addprotected void annotationAdded(FileAnnotation annotation)
annotation - the added annotationpublic final java.util.Collection<FileAnnotation> getAnnotations()
getAnnotations in interface AnnotationProviderpublic final java.util.Collection<FileAnnotation> getAnnotations(Priority priority)
getAnnotations in interface AnnotationProviderpriority - the priority
public final java.util.Collection<FileAnnotation> getAnnotations(java.lang.String priority)
getAnnotations in interface AnnotationProviderpriority - the priority as a string object
public int getNumberOfAnnotations()
getNumberOfAnnotations in interface AnnotationProviderpublic int getNumberOfAnnotations(Priority priority)
getNumberOfAnnotations in interface AnnotationProviderpriority - the priority
public final int getNumberOfAnnotations(java.lang.String priority)
getNumberOfAnnotations in interface AnnotationProviderpriority - the priority as a string object
public final boolean hasAnnotations()
hasAnnotations in interface AnnotationProvidertrue if this objects has annotations.public final boolean hasAnnotations(Priority priority)
hasAnnotations in interface AnnotationProviderpriority - the priority
true if this objects has annotations.public final boolean hasAnnotations(java.lang.String priority)
hasAnnotations in interface AnnotationProviderpriority - the priority as a string object
true if this objects has annotations.public final FileAnnotation getAnnotation(long key)
getAnnotation in interface AnnotationProviderkey - the key of the annotation
public final FileAnnotation getAnnotation(java.lang.String key)
getAnnotation in interface AnnotationProviderkey - the key of the annotation as a long value in string representation
public java.lang.String getToolTip()
public final java.lang.String getPackageCategoryName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||