DGP - added DensityType parsing for recovery devices
[debian/openrocket] / src / net / sf / openrocket / file / rocksim / PositionDependentHandler.java
index 9d457227c470c4113783829e6ef38bd21b16c278..c65e1aec9b79007e8014694021f97897cd0e9719 100644 (file)
@@ -10,17 +10,22 @@ import org.xml.sax.SAXException;
 import java.util.HashMap;
 
 /**
- * An abstract base class that handles position dependencies for all lower level components that 
+ * An abstract base class that handles position dependencies for all lower level components that
  * are position aware.
+ *
+ * @param <C>   the specific position dependent RocketComponent subtype for which the concrete handler can create
  */
 public abstract class PositionDependentHandler<C extends RocketComponent> extends BaseHandler<C> {
 
     /** Temporary position value. */
     private Double positionValue;
-    
+
     /** Temporary position. */
     private RocketComponent.Position position;
 
+    /**
+     * {@inheritDoc}
+     */
     @Override
     public void closeElement(String element, HashMap<String, String> attributes, String content, WarningSet warnings)
             throws SAXException {
@@ -33,12 +38,12 @@ public abstract class PositionDependentHandler<C extends RocketComponent> extend
                     content)).asOpenRocket();
         }
     }
-    
+
     /**
      * This method sets the position information onto the component.  Rocksim splits the location/position
      * information into two disparate data elements.  Both pieces of data are necessary to map into OpenRocket's
      * position model.
-     * 
+     *
      * @param element     the element name
      * @param attributes  the attributes
      * @param content     the content of the element
@@ -54,16 +59,16 @@ public abstract class PositionDependentHandler<C extends RocketComponent> extend
     }
 
     /**
-     * Set the relative position onto the component.  This cannot be done directly because setRelativePosition is not 
+     * Set the relative position onto the component.  This cannot be done directly because setRelativePosition is not
      * public in all components.
-     * 
+     *
      * @param position  the OpenRocket position
      */
     protected abstract void setRelativePosition(RocketComponent.Position position);
-    
+
     /**
      * Set the position of a component.
-     * 
+     *
      * @param component  the component
      * @param position   the relative position
      * @param location   the actual position value
@@ -76,5 +81,5 @@ public abstract class PositionDependentHandler<C extends RocketComponent> extend
             component.setPositionValue(location);
         }
     }
-    
+
 }