Title: [1343] trunk/qdox/src/main/java/com/thoughtworks/qdox/model/AbstractBaseJavaEntity.java: code formatting
Revision
1343
Author
rfscholte
Date
2011-10-01 12:24:27 -0500 (Sat, 01 Oct 2011)

Log Message

code formatting

Modified Paths


Diff

Modified: trunk/qdox/src/main/java/com/thoughtworks/qdox/model/AbstractBaseJavaEntity.java (1342 => 1343)

--- trunk/qdox/src/main/java/com/thoughtworks/qdox/model/AbstractBaseJavaEntity.java	2011-10-01 14:44:34 UTC (rev 1342)
+++ trunk/qdox/src/main/java/com/thoughtworks/qdox/model/AbstractBaseJavaEntity.java	2011-10-01 17:24:27 UTC (rev 1343)
@@ -30,17 +30,20 @@
 	private String comment;
 	private List<DocletTag> tags = Collections.emptyList();
 
-	public AbstractBaseJavaEntity() {
-		super();
-	}
+    public AbstractBaseJavaEntity()
+    {
+        super();
+    }
 
-	public List<Annotation> getAnnotations() {
-	    return annotations;
-	}
+    public List<Annotation> getAnnotations()
+    {
+        return annotations;
+    }
 
-	public void setAnnotations(List<Annotation> annotations) {
-	    this.annotations = annotations;
-	}
+    public void setAnnotations( List<Annotation> annotations )
+    {
+        this.annotations = annotations;
+    }
 
 	/**
 	 * Not every entity has a parentClass, but AnnotationFieldRef requires access to it.
@@ -48,55 +51,66 @@
 	 * 
 	 * @return the surrounding class
 	 */
-	public JavaClass getParentClass() { return null; }
+    public JavaClass getParentClass()
+    {
+        return null;
+    }
 
-	public String getComment() {
-	    return comment;
-	}
+    public String getComment()
+    {
+        return comment;
+    }
 
-	public void setComment(String comment) {
-	    this.comment = comment;
-	}
+    public void setComment( String comment )
+    {
+        this.comment = comment;
+    }
 
-	public List<DocletTag> getTags() {
-	    return tags;
-	}
+    public List<DocletTag> getTags()
+    {
+        return tags;
+    }
 
-	public List<DocletTag> getTagsByName(String name) {
-	    List<DocletTag> specifiedTags = new LinkedList<DocletTag>();
-	    for ( DocletTag docletTag : tags ) {
-	        if (docletTag.getName().equals(name)) {
-	            specifiedTags.add(docletTag);
-	        }
-	    }
-	    return specifiedTags;
-	}
+    public List<DocletTag> getTagsByName( String name )
+    {
+        List<DocletTag> specifiedTags = new LinkedList<DocletTag>();
+        for ( DocletTag docletTag : tags )
+        {
+            if ( docletTag.getName().equals( name ) )
+            {
+                specifiedTags.add( docletTag );
+            }
+        }
+        return specifiedTags;
+    }
 
-	public DocletTag getTagByName(String name) {
-	    for (DocletTag docletTag : tags) {
-	        if (docletTag.getName().equals(name)) {
-	            return docletTag;
-	        }
-	    }
-	    return null;
-	}
+    public DocletTag getTagByName( String name )
+    {
+        for ( DocletTag docletTag : tags )
+        {
+            if ( docletTag.getName().equals( name ) )
+            {
+                return docletTag;
+            }
+        }
+        return null;
+    }
 
-	/**
-	 * Convenience method for <code>getTagByName(String).getNamedParameter(String)</code>
-	 * that also checks for null tag.
-	 * @since 1.3
-	 */
-	public String getNamedParameter(String tagName, String parameterName) {
-	    DocletTag tag = getTagByName(tagName);
-	    if(tag != null) {
-	        return tag.getNamedParameter(parameterName);
-	    } else {
-	        return null;
-	    }
-	}
+    /**
+     * Convenience method for <code>getTagByName(String).getNamedParameter(String)</code> that also checks for null tag.
+     * 
+     * @param tagName the name of the docletTag
+     * @param parameterName the name of the parameter
+     * @since 1.3
+     */
+    public String getNamedParameter( String tagName, String parameterName )
+    {
+        DocletTag tag = getTagByName( tagName );
+        return ( tag != null ? tag.getNamedParameter( parameterName ) : null );
+    }
 
-	public void setTags(List<DocletTag> tagList) {
-	    this.tags = tagList;
-	}
-
+    public void setTags( List<DocletTag> tagList )
+    {
+        this.tags = tagList;
+    }
 }
\ No newline at end of file


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to