bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r995783 - /incubator/bval/sandbox/lang3-work/bval-core/src/main/java/org/apache/bval/model/MetaBean.java
Date Fri, 10 Sep 2010 13:14:36 GMT
Author: mbenson
Date: Fri Sep 10 13:14:36 2010
New Revision: 995783

URL: http://svn.apache.org/viewvc?rev=995783&view=rev
Log:
missed format merge

Modified:
    incubator/bval/sandbox/lang3-work/bval-core/src/main/java/org/apache/bval/model/MetaBean.java

Modified: incubator/bval/sandbox/lang3-work/bval-core/src/main/java/org/apache/bval/model/MetaBean.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/lang3-work/bval-core/src/main/java/org/apache/bval/model/MetaBean.java?rev=995783&r1=995782&r2=995783&view=diff
==============================================================================
--- incubator/bval/sandbox/lang3-work/bval-core/src/main/java/org/apache/bval/model/MetaBean.java
(original)
+++ incubator/bval/sandbox/lang3-work/bval-core/src/main/java/org/apache/bval/model/MetaBean.java
Fri Sep 10 13:14:36 2010
@@ -19,9 +19,9 @@ package org.apache.bval.model;
 import org.apache.commons.lang3.ArrayUtils;
 
 /**
- * Description: the meta description of a bean or class.
- * the class/bean itself can have a map of features and an array of metaproperties.<br/>
- *
+ * Description: the meta description of a bean or class. the class/bean itself
+ * can have a map of features and an array of metaproperties.<br/>
+ * 
  * @see MetaProperty
  */
 public class MetaBean extends FeaturesCapable implements Cloneable, Features.Bean {
@@ -34,6 +34,7 @@ public class MetaBean extends FeaturesCa
 
     /**
      * Get the id.
+     * 
      * @return String
      */
     public String getId() {
@@ -42,7 +43,9 @@ public class MetaBean extends FeaturesCa
 
     /**
      * Set the id.
-     * @param id the String to set
+     * 
+     * @param id
+     *            the String to set
      */
     public void setId(String id) {
         this.id = id;
@@ -50,6 +53,7 @@ public class MetaBean extends FeaturesCa
 
     /**
      * Get the name.
+     * 
      * @return String
      */
     public String getName() {
@@ -58,7 +62,9 @@ public class MetaBean extends FeaturesCa
 
     /**
      * Set the name.
-     * @param name the String to set
+     * 
+     * @param name
+     *            the String to set
      */
     public void setName(String name) {
         this.name = name;
@@ -66,6 +72,7 @@ public class MetaBean extends FeaturesCa
 
     /**
      * Get the beanClass.
+     * 
      * @return Class<?>
      */
     public Class<?> getBeanClass() {
@@ -74,7 +81,9 @@ public class MetaBean extends FeaturesCa
 
     /**
      * Set the beanClass.
-     * @param beanClass the Class<?> to set
+     * 
+     * @param beanClass
+     *            the Class<?> to set
      */
     public void setBeanClass(Class<?> beanClass) {
         this.beanClass = beanClass;
@@ -82,6 +91,7 @@ public class MetaBean extends FeaturesCa
 
     /**
      * Get the properties.
+     * 
      * @return MetaProperty[]
      */
     public MetaProperty[] getProperties() {
@@ -90,7 +100,9 @@ public class MetaBean extends FeaturesCa
 
     /**
      * Set the properties.
-     * @param properties the MetaProperty[] to set
+     * 
+     * @param properties
+     *            the MetaProperty[] to set
      */
     public void setProperties(MetaProperty[] properties) {
         this.properties = properties;
@@ -98,44 +110,52 @@ public class MetaBean extends FeaturesCa
 
     /**
      * Get the specified {@link MetaProperty}.
+     * 
      * @param name
      * @return MetaProperty found or <code>null</code>
      */
     public MetaProperty getProperty(String name) {
         for (MetaProperty p : properties) {
-            if (name.equals(p.getName())) return p;
+            if (name.equals(p.getName()))
+                return p;
         }
         return null;
     }
 
     /**
      * Learn whether any known property is a relationship.
+     * 
      * @see MetaProperty#isRelationship()
      * @return true when at least one of the properties is a relationship
      */
     public boolean hasRelationships() {
         for (MetaProperty p : properties) {
-            if (p.isRelationship()) return true;
+            if (p.isRelationship())
+                return true;
         }
         return false;
     }
 
     /**
      * Learn whether there are any known properties.
+     * 
      * @return boolean
      */
     public boolean hasProperties() {
         return properties.length > 0;
     }
 
-  /**
-   * bidirectional - set the relationship between a MetaProperty and its parentMetaBean
-   * @param name
-   * @param property
-   */
+    /**
+     * bidirectional - set the relationship between a MetaProperty and its
+     * parentMetaBean
+     * 
+     * @param name
+     * @param property
+     */
     public void putProperty(String name, MetaProperty property) {
         final MetaProperty oldProperty = getProperty(name);
-        if(property != null) property.setParentMetaBean(this);
+        if (property != null)
+            property.setParentMetaBean(this);
         if (oldProperty == null) { // add
             if (properties.length == 0) {
                 properties = new MetaProperty[1];
@@ -155,8 +175,7 @@ public class MetaBean extends FeaturesCa
      * {@inheritDoc}
      */
     public String toString() {
-        return "MetaBean{" + "id='" + id + '\'' + ", name='" + name + '\'' + ", beanClass="
+
-                beanClass + '}';
+        return "MetaBean{" + "id='" + id + '\'' + ", name='" + name + '\'' + ", beanClass="
+ beanClass + '}';
     }
 
     /**
@@ -175,12 +194,19 @@ public class MetaBean extends FeaturesCa
     }
 
     /**
-     * <p>If this {@link MetaBean} is compatible with <code>bean</code>,
return <code>this</code>, else <code>null</code>.</p><p>
-     * Compatibility is satisfied in one of the following ways:<ul>
+     * <p>
+     * If this {@link MetaBean} is compatible with <code>bean</code>, return
+     * <code>this</code>, else <code>null</code>.
+     * </p>
+     * <p>
+     * Compatibility is satisfied in one of the following ways:
+     * <ul>
      * <li><code>bean</code> is null</li>
      * <li><code>bean</code> is an instance of our <code>beanClass</code></li>
      * <li><code>bean</code> <em>is</em> our <code>beanClass</code>
itself</li>
-     * </ul></p>
+     * </ul>
+     * </p>
+     * 
      * @param bean
      * @return <code>this</code> or <code>null</code>
      */



Mime
View raw message