camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r790782 - in /camel/trunk/components/camel-bindy/src: main/java/org/apache/camel/dataformat/bindy/ test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/ test/java/org/apache/camel/dataformat/bindy/model/simple/onec...
Date Fri, 03 Jul 2009 02:55:40 GMT
Author: ningjiang
Date: Fri Jul  3 02:55:39 2009
New Revision: 790782

URL: http://svn.apache.org/viewvc?rev=790782&view=rev
Log:
Fixed CS errors of camel-bindy

Modified:
    camel/trunk/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyAbstractFactory.java
    camel/trunk/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyCsvFactory.java
    camel/trunk/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyKeyValuePairFactory.java
    camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Order.java
    camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Security.java
    camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclass/Order.java
    camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclassandskipfirstline/Order.java

Modified: camel/trunk/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyAbstractFactory.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyAbstractFactory.java?rev=790782&r1=790781&r2=790782&view=diff
==============================================================================
--- camel/trunk/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyAbstractFactory.java
(original)
+++ camel/trunk/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyAbstractFactory.java
Fri Jul  3 02:55:39 2009
@@ -88,15 +88,15 @@
      * Link objects together
      */
     public void link(Map<String, Object> model) throws Exception {
-    	
-    	// Iterate class by class
-    	for (String link : annotedLinkFields.keySet()) {
+
+        // Iterate class by class
+        for (String link : annotedLinkFields.keySet()) {
             List<Field> linkFields = annotedLinkFields.get(link);
-            
+
             // Iterate through Link fields list
             for (Field field : linkFields) {
-            	
-            	// Change protection for private field
+
+                // Change protection for private field
                 field.setAccessible(true);
 
                 // Retrieve linked object
@@ -105,7 +105,7 @@
 
                 ObjectHelper.notNull(to, "No @link annotation has been defined for the oject
to link");
                 field.set(model.get(field.getDeclaringClass().getName()), to);
-            	
+
             }
         }
     }

Modified: camel/trunk/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyCsvFactory.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyCsvFactory.java?rev=790782&r1=790781&r2=790782&view=diff
==============================================================================
--- camel/trunk/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyCsvFactory.java
(original)
+++ camel/trunk/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyCsvFactory.java
Fri Jul  3 02:55:39 2009
@@ -81,8 +81,8 @@
     public void initAnnotedFields() {
 
         for (Class<?> cl : models) {
-        	
-        	List<Field> linkFields = new ArrayList<Field>();
+
+            List<Field> linkFields = new ArrayList<Field>();
 
             if (LOG.isDebugEnabled()) {
                 LOG.debug("Class retrieved : " + cl.getName());
@@ -92,8 +92,8 @@
                 DataField dataField = field.getAnnotation(DataField.class);
                 if (dataField != null) {
                     if (LOG.isDebugEnabled()) {
-                        LOG.debug("Position defined in the class : " + cl.getName() + ",
position : " + dataField.pos()
-                                + ", Field : " + dataField.toString());
+                        LOG.debug("Position defined in the class : " + cl.getName() + ",
position : "
+                                  + dataField.pos() + ", Field : " + dataField.toString());
                     }
                     dataFields.put(dataField.pos(), dataField);
                     annotedFields.put(dataField.pos(), field);
@@ -105,14 +105,13 @@
                     if (LOG.isDebugEnabled()) {
                         LOG.debug("Class linked  : " + cl.getName() + ", Field" + field.toString());
                     }
-                    linkFields.add( field );
+                    linkFields.add(field);
                 }
 
             }
-            
-            
-            if (! linkFields.isEmpty() ) {
-            	annotedLinkFields.put(cl.getName(), linkFields);
+
+            if (!linkFields.isEmpty()) {
+                annotedLinkFields.put(cl.getName(), linkFields);
             }
         }
     }
@@ -152,7 +151,7 @@
                 // format the data received
                 Object value = format.parse(data.get(pos));
                 
-                field.set(modelField, value );
+                field.set(modelField, value);
             }
             pos++;
         }
@@ -218,31 +217,32 @@
                     Object value = field.get(modelField);
                     
                     // Add value to the list if not null
-					if (value != null) {
-						
-						// Format field value
-						String valueFormated = format.format(value);
-						
-						// Add the content to the TreeMap according to the position defined
-						positions.put(keyGenerated, valueFormated);
-
-						if (LOG.isDebugEnabled()) {
-							LOG.debug("Positions size : " + positions.size());
-						}
-					}
+                    if (value != null) {
+
+                        // Format field value
+                        String valueFormated = format.format(value);
+
+                        // Add the content to the TreeMap according to the
+                        // position defined
+                        positions.put(keyGenerated, valueFormated);
+
+                        if (LOG.isDebugEnabled()) {
+                            LOG.debug("Positions size : " + positions.size());
+                        }
+                    }
                 } else {
                     // Get field value
                     Object value = field.get(modelField);
-                    
+
                     // Add value to the list if not null
-					if (value != null) {
-						
-						// Format field value
-						String valueFormated = format.format(value);
-						builder.append( valueFormated );
-					}
-                    
-                	if (it.hasNext()) {
+                    if (value != null) {
+
+                        // Format field value
+                        String valueFormated = format.format(value);
+                        builder.append(valueFormated);
+                    }
+
+                    if (it.hasNext()) {
                         builder.append(separator);
                     }
                 }

Modified: camel/trunk/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyKeyValuePairFactory.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyKeyValuePairFactory.java?rev=790782&r1=790781&r2=790782&view=diff
==============================================================================
--- camel/trunk/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyKeyValuePairFactory.java
(original)
+++ camel/trunk/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyKeyValuePairFactory.java
Fri Jul  3 02:55:39 2009
@@ -83,15 +83,15 @@
     public void initAnnotedFields() {
 
         for (Class<?> cl : models) {
-        	
-        	List<Field> linkFields = new ArrayList<Field>();
+
+            List<Field> linkFields = new ArrayList<Field>();
 
             for (Field field : cl.getDeclaredFields()) {
                 KeyValuePairField keyValuePairField = field.getAnnotation(KeyValuePairField.class);
                 if (keyValuePairField != null) {
                     if (LOG.isDebugEnabled()) {
-                        LOG.debug("Key declared in the class : " + cl.getName() + ", key
: " + keyValuePairField.tag()
-                                + ", Field : " + keyValuePairField.toString());
+                        LOG.debug("Key declared in the class : " + cl.getName() + ", key
: "
+                                  + keyValuePairField.tag() + ", Field : " + keyValuePairField.toString());
                     }
                     keyValuePairFields.put(keyValuePairField.tag(), keyValuePairField);
                     annotedFields.put(keyValuePairField.tag(), field);
@@ -103,12 +103,12 @@
                     if (LOG.isDebugEnabled()) {
                         LOG.debug("Class linked  : " + cl.getName() + ", Field" + field.toString());
                     }
-                    linkFields.add( field );
+                    linkFields.add(field);
                 }
             }
-            
-            if (! linkFields.isEmpty() ) {
-            	annotedLinkFields.put(cl.getName(), linkFields);
+
+            if (!linkFields.isEmpty()) {
+                annotedLinkFields.put(cl.getName(), linkFields);
             }
 
         }
@@ -129,7 +129,7 @@
                 // Separate the key from its value
                 // e.g 8=FIX 4.1 --> key = 8 and Value = FIX 4.1
                 ObjectHelper.notNull(this.keyValuePairSeparator,
-                        "Key Value Pair not defined in the @Message annotation");
+                                     "Key Value Pair not defined in the @Message annotation");
                 String[] keyValuePair = data.get(pos).split(this.getKeyValuePairSeparator());
 
                 int tag = Integer.parseInt(keyValuePair[0]);
@@ -150,21 +150,20 @@
                 }
 
                 Format<?> format;
-                
+
                 // Get pattern defined for the field
                 String pattern = keyValuePairField.pattern();
-                
-                // Create format object to format the field 
+
+                // Create format object to format the field
                 format = FormatFactory.getFormat(field.getType(), pattern, keyValuePairField.precision());
-                
+
                 // field object to be set
                 Object modelField = model.get(field.getDeclaringClass().getName());
-                
+
                 // format the value of the key received
-                Object value = format.parse( keyValue );
-                
-                
-                field.set( modelField , value );
+                Object value = format.parse(keyValue);
+
+                field.set(modelField, value);
 
             }
 
@@ -198,84 +197,87 @@
 
         while (it.hasNext()) {
 
-			KeyValuePairField keyValuePairField = keyValuePairFieldsSorted.get(it.next());
-			ObjectHelper.notNull(keyValuePairField, "KeyValuePair is null !");
+            KeyValuePairField keyValuePairField = keyValuePairFieldsSorted.get(it.next());
+            ObjectHelper.notNull(keyValuePairField, "KeyValuePair is null !");
+
+            // Retrieve the field
+            Field field = annotedFields.get(keyValuePairField.tag());
+            // Change accessibility to allow to read protected/private fields
+            field.setAccessible(true);
+
+            if (LOG.isDebugEnabled()) {
+                LOG.debug("Tag : " + keyValuePairField.tag() + ", Field type : " + field.getType()
+                          + ", class : " + field.getDeclaringClass().getName());
+            }
 
-			// Retrieve the field
-			Field field = annotedFields.get(keyValuePairField.tag());
-			// Change accessibility to allow to read protected/private fields
-			field.setAccessible(true);
-
-			if (LOG.isDebugEnabled()) {
-				LOG.debug("Tag : " + keyValuePairField.tag() + ", Field type : " + field.getType() +
", class : "
-						+ field.getDeclaringClass().getName());
-			}
-
-			// Retrieve the format, pattern and precision associated to the type
-			Class type = field.getType();
-			String pattern = keyValuePairField.pattern();
-			int precision = keyValuePairField.precision();
-
-			// Create format
-			Format format = FormatFactory.getFormat(type, pattern, precision);
-
-			// Get object to be formatted
-			Object obj = model.get(field.getDeclaringClass().getName());
-
-			if (obj != null) {
-
-				// Get field value
-				Object keyValue = field.get(obj);
-
-				if (this.isMessageOrdered()) {
-					// Generate a key using the number of the section
-					// and the position of the field
-					Integer key1 = sections.get(obj.getClass().getName());
-					Integer key2 = keyValuePairField.position();
-					Integer keyGenerated = generateKey(key1, key2);
-
-					if (LOG.isDebugEnabled()) {
-						LOG.debug("Key generated : " + String.valueOf(keyGenerated) + ", for section : " +
key1);
-					}
-
-					// Add value to the list if not null
-					if (keyValue != null) {
-
-						// Format field value
-						String valueFormated = format.format(keyValue);
-
-						// Create the key value string
-						String value = keyValuePairField.tag() + this.getKeyValuePairSeparator() + valueFormated;
-
-						// Add the content to the TreeMap according to the
-						// position defined
-						positions.put(keyGenerated, value);
-
-						if (LOG.isDebugEnabled()) {
-							LOG.debug("Positions size : " + positions.size());
-						}
-					}
-				} else {
-
-					// Add value to the list if not null
-					if (keyValue != null) {
-
-						// Format field value
-						String valueFormated = format.format(keyValue);
-
-						// Create the key value string
-						String value = keyValuePairField.tag() + this.getKeyValuePairSeparator() + valueFormated
+ separator;
-
-						// Add content to the stringBuilder
-						builder.append(value);
-
-						if (LOG.isDebugEnabled()) {
-							LOG.debug("Value added : " + keyValuePairField.tag() + this.getKeyValuePairSeparator()
-									+ valueFormated + separator);
-						}
-					}
-				}
-			}
+            // Retrieve the format, pattern and precision associated to the type
+            Class type = field.getType();
+            String pattern = keyValuePairField.pattern();
+            int precision = keyValuePairField.precision();
+
+            // Create format
+            Format format = FormatFactory.getFormat(type, pattern, precision);
+
+            // Get object to be formatted
+            Object obj = model.get(field.getDeclaringClass().getName());
+
+            if (obj != null) {
+
+                // Get field value
+                Object keyValue = field.get(obj);
+
+                if (this.isMessageOrdered()) {
+                    // Generate a key using the number of the section
+                    // and the position of the field
+                    Integer key1 = sections.get(obj.getClass().getName());
+                    Integer key2 = keyValuePairField.position();
+                    Integer keyGenerated = generateKey(key1, key2);
+
+                    if (LOG.isDebugEnabled()) {
+                        LOG.debug("Key generated : " + String.valueOf(keyGenerated) + ",
for section : "
+                                  + key1);
+                    }
+
+                    // Add value to the list if not null
+                    if (keyValue != null) {
+
+                        // Format field value
+                        String valueFormated = format.format(keyValue);
+
+                        // Create the key value string
+                        String value = keyValuePairField.tag() + this.getKeyValuePairSeparator()
+                                       + valueFormated;
+
+                        // Add the content to the TreeMap according to the
+                        // position defined
+                        positions.put(keyGenerated, value);
+
+                        if (LOG.isDebugEnabled()) {
+                            LOG.debug("Positions size : " + positions.size());
+                        }
+                    }
+                } else {
+
+                    // Add value to the list if not null
+                    if (keyValue != null) {
+
+                        // Format field value
+                        String valueFormated = format.format(keyValue);
+
+                        // Create the key value string
+                        String value = keyValuePairField.tag() + this.getKeyValuePairSeparator()
+                                       + valueFormated + separator;
+
+                        // Add content to the stringBuilder
+                        builder.append(value);
+
+                        if (LOG.isDebugEnabled()) {
+                            LOG.debug("Value added : " + keyValuePairField.tag()
+                                      + this.getKeyValuePairSeparator() + valueFormated +
separator);
+                        }
+                    }
+                }
+            }
         }
 
         // Iterate through the list to generate

Modified: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Order.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Order.java?rev=790782&r1=790781&r2=790782&view=diff
==============================================================================
--- camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Order.java
(original)
+++ camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Order.java
Fri Jul  3 02:55:39 2009
@@ -91,28 +91,28 @@
     }
     
     public Security getSecurity() {
-		return security;
-	}
+        return security;
+    }
+
+    public void setSecurity(Security security) {
+        this.security = security;
+    }
 
-	public void setSecurity(Security security) {
-		this.security = security;
-	}
-	
     public String getOrderType() {
-		return orderType;
-	}
+        return orderType;
+    }
 
-	public void setOrderType(String orderType) {
-		this.orderType = orderType;
-	}
-
-	public String getInstrumentType() {
-		return instrumentType;
-	}
-
-	public void setInstrumentType(String instrumentType) {
-		this.instrumentType = instrumentType;
-	}
+    public void setOrderType(String orderType) {
+        this.orderType = orderType;
+    }
+
+    public String getInstrumentType() {
+        return instrumentType;
+    }
+
+    public void setInstrumentType(String instrumentType) {
+        this.instrumentType = instrumentType;
+    }
 
     @Override
     public String toString() {

Modified: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Security.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Security.java?rev=790782&r1=790781&r2=790782&view=diff
==============================================================================
--- camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Security.java
(original)
+++ camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/complex/twoclassesandonelink/Security.java
Fri Jul  3 02:55:39 2009
@@ -25,30 +25,29 @@
     @DataField(pos = 5)
     private String instrumentNumber;
 
-	@DataField(pos = 4)
+    @DataField(pos = 4)
     private String instrumentCode;
-	
+
     public String getInstrumentNumber() {
-		return instrumentNumber;
-	}
+        return instrumentNumber;
+    }
+
+    public void setInstrumentNumber(String instrumentNumber) {
+        this.instrumentNumber = instrumentNumber;
+    }
 
-	public void setInstrumentNumber(String instrumentNumber) {
-		this.instrumentNumber = instrumentNumber;
-	}
-
-	public String getInstrumentCode() {
-		return instrumentCode;
-	}
-
-	public void setInstrumentCode(String instrumentCode) {
-		this.instrumentCode = instrumentCode;
-	}
+    public String getInstrumentCode() {
+        return instrumentCode;
+    }
+
+    public void setInstrumentCode(String instrumentCode) {
+        this.instrumentCode = instrumentCode;
+    }
 
     @Override
     public String toString() {
-        return "Model : " + Security.class.getName() + " : "
-            + this.instrumentNumber + ", "
-            + this.instrumentCode;
+        return "Model : " + Security.class.getName() + " : " + this.instrumentNumber + ",
"
+               + this.instrumentCode;
     }
 
 }

Modified: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclass/Order.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclass/Order.java?rev=790782&r1=790781&r2=790782&view=diff
==============================================================================
--- camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclass/Order.java
(original)
+++ camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclass/Order.java
Fri Jul  3 02:55:39 2009
@@ -25,132 +25,132 @@
 @CsvRecord(separator = ",")
 public class Order {
 
-	@DataField(pos = 0)
-	private int orderNr;
+    @DataField(pos = 0)
+    private int orderNr;
 
-	@DataField(pos = 1)
-	private String clientNr;
+    @DataField(pos = 1)
+    private String clientNr;
 
-	@DataField(pos = 2)
-	private String firstName;
+    @DataField(pos = 2)
+    private String firstName;
 
-	@DataField(pos = 3)
-	private String lastName;
+    @DataField(pos = 3)
+    private String lastName;
 
-	@DataField(pos = 4)
-	private String instrumentCode;
+    @DataField(pos = 4)
+    private String instrumentCode;
 
-	@DataField(pos = 5)
-	private String instrumentNumber;
+    @DataField(pos = 5)
+    private String instrumentNumber;
 
-	@DataField(pos = 6)
-	private String orderType;
+    @DataField(pos = 6)
+    private String orderType;
 
-	@DataField(name = "Name", pos = 7)
-	private String instrumentType;
+    @DataField(name = "Name", pos = 7)
+    private String instrumentType;
 
-	@DataField(pos = 8, precision = 2)
-	private BigDecimal amount;
+    @DataField(pos = 8, precision = 2)
+    private BigDecimal amount;
 
-	@DataField(pos = 9)
-	private String currency;
+    @DataField(pos = 9)
+    private String currency;
 
-	@DataField(pos = 10, pattern = "dd-MM-yyyy")
-	private Date orderDate;
+    @DataField(pos = 10, pattern = "dd-MM-yyyy")
+    private Date orderDate;
 
-	public int getOrderNr() {
-		return orderNr;
-	}
+    public int getOrderNr() {
+        return orderNr;
+    }
 
-	public void setOrderNr(int orderNr) {
-		this.orderNr = orderNr;
-	}
+    public void setOrderNr(int orderNr) {
+        this.orderNr = orderNr;
+    }
 
-	public String getClientNr() {
-		return clientNr;
-	}
+    public String getClientNr() {
+        return clientNr;
+    }
 
-	public void setClientNr(String clientNr) {
-		this.clientNr = clientNr;
-	}
+    public void setClientNr(String clientNr) {
+        this.clientNr = clientNr;
+    }
 
-	public String getFirstName() {
-		return firstName;
-	}
+    public String getFirstName() {
+        return firstName;
+    }
 
-	public void setFirstName(String firstName) {
-		this.firstName = firstName;
-	}
+    public void setFirstName(String firstName) {
+        this.firstName = firstName;
+    }
 
-	public String getLastName() {
-		return lastName;
-	}
+    public String getLastName() {
+        return lastName;
+    }
 
-	public void setLastName(String lastName) {
-		this.lastName = lastName;
-	}
+    public void setLastName(String lastName) {
+        this.lastName = lastName;
+    }
 
-	public String getInstrumentCode() {
-		return instrumentCode;
-	}
+    public String getInstrumentCode() {
+        return instrumentCode;
+    }
 
-	public void setInstrumentCode(String instrumentCode) {
-		this.instrumentCode = instrumentCode;
-	}
+    public void setInstrumentCode(String instrumentCode) {
+        this.instrumentCode = instrumentCode;
+    }
 
-	public String getInstrumentNumber() {
-		return instrumentNumber;
-	}
+    public String getInstrumentNumber() {
+        return instrumentNumber;
+    }
 
-	public void setInstrumentNumber(String instrumentNumber) {
-		this.instrumentNumber = instrumentNumber;
-	}
+    public void setInstrumentNumber(String instrumentNumber) {
+        this.instrumentNumber = instrumentNumber;
+    }
 
-	public String getOrderType() {
-		return orderType;
-	}
+    public String getOrderType() {
+        return orderType;
+    }
 
-	public void setOrderType(String orderType) {
-		this.orderType = orderType;
-	}
+    public void setOrderType(String orderType) {
+        this.orderType = orderType;
+    }
 
-	public String getInstrumentType() {
-		return instrumentType;
-	}
+    public String getInstrumentType() {
+        return instrumentType;
+    }
 
-	public void setInstrumentType(String instrumentType) {
-		this.instrumentType = instrumentType;
-	}
+    public void setInstrumentType(String instrumentType) {
+        this.instrumentType = instrumentType;
+    }
 
-	public BigDecimal getAmount() {
-		return amount;
-	}
+    public BigDecimal getAmount() {
+        return amount;
+    }
 
-	public void setAmount(BigDecimal amount) {
-		this.amount = amount;
-	}
+    public void setAmount(BigDecimal amount) {
+        this.amount = amount;
+    }
 
-	public String getCurrency() {
-		return currency;
-	}
+    public String getCurrency() {
+        return currency;
+    }
 
-	public void setCurrency(String currency) {
-		this.currency = currency;
-	}
+    public void setCurrency(String currency) {
+        this.currency = currency;
+    }
 
-	public Date getOrderDate() {
-		return orderDate;
-	}
+    public Date getOrderDate() {
+        return orderDate;
+    }
 
-	public void setOrderDate(Date orderDate) {
-		this.orderDate = orderDate;
-	}
+    public void setOrderDate(Date orderDate) {
+        this.orderDate = orderDate;
+    }
 
-	@Override
-	public String toString() {
-		return "Model : " + Order.class.getName() + " : " + this.orderNr + ", " + this.orderType
+ ", "
-				+ String.valueOf(this.amount) + ", " + this.instrumentCode + ", " + this.instrumentNumber
+ ", "
-				+ this.instrumentType + ", " + this.currency + ", " + this.clientNr + ", " + this.firstName
+ ", "
-				+ this.lastName + ", " + String.valueOf(this.orderDate);
-	}
+    @Override
+    public String toString() {
+        return "Model : " + Order.class.getName() + " : " + this.orderNr + ", " + this.orderType
+ ", "
+               + String.valueOf(this.amount) + ", " + this.instrumentCode + ", " + this.instrumentNumber
+               + ", " + this.instrumentType + ", " + this.currency + ", " + this.clientNr
+ ", "
+               + this.firstName + ", " + this.lastName + ", " + String.valueOf(this.orderDate);
+    }
 }

Modified: camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclassandskipfirstline/Order.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclassandskipfirstline/Order.java?rev=790782&r1=790781&r2=790782&view=diff
==============================================================================
--- camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclassandskipfirstline/Order.java
(original)
+++ camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/simple/oneclassandskipfirstline/Order.java
Fri Jul  3 02:55:39 2009
@@ -25,132 +25,132 @@
 @CsvRecord(separator = ",", skipFirstLine = true)
 public class Order {
 
-	@DataField(pos = 0)
-	private int orderNr;
+    @DataField(pos = 0)
+    private int orderNr;
 
-	@DataField(pos = 1)
-	private String clientNr;
+    @DataField(pos = 1)
+    private String clientNr;
 
-	@DataField(pos = 2)
-	private String firstName;
+    @DataField(pos = 2)
+    private String firstName;
 
-	@DataField(pos = 3)
-	private String lastName;
+    @DataField(pos = 3)
+    private String lastName;
 
-	@DataField(pos = 4)
-	private String instrumentCode;
+    @DataField(pos = 4)
+    private String instrumentCode;
 
-	@DataField(pos = 5)
-	private String instrumentNumber;
+    @DataField(pos = 5)
+    private String instrumentNumber;
 
-	@DataField(pos = 6)
-	private String orderType;
+    @DataField(pos = 6)
+    private String orderType;
 
-	@DataField(name = "Name", pos = 7)
-	private String instrumentType;
+    @DataField(name = "Name", pos = 7)
+    private String instrumentType;
 
-	@DataField(pos = 8, precision = 2)
-	private BigDecimal amount;
+    @DataField(pos = 8, precision = 2)
+    private BigDecimal amount;
 
-	@DataField(pos = 9)
-	private String currency;
+    @DataField(pos = 9)
+    private String currency;
 
-	@DataField(pos = 10, pattern = "dd-MM-yyyy")
-	private Date orderDate;
+    @DataField(pos = 10, pattern = "dd-MM-yyyy")
+    private Date orderDate;
 
-	public int getOrderNr() {
-		return orderNr;
-	}
+    public int getOrderNr() {
+        return orderNr;
+    }
 
-	public void setOrderNr(int orderNr) {
-		this.orderNr = orderNr;
-	}
+    public void setOrderNr(int orderNr) {
+        this.orderNr = orderNr;
+    }
 
-	public String getClientNr() {
-		return clientNr;
-	}
+    public String getClientNr() {
+        return clientNr;
+    }
 
-	public void setClientNr(String clientNr) {
-		this.clientNr = clientNr;
-	}
+    public void setClientNr(String clientNr) {
+        this.clientNr = clientNr;
+    }
 
-	public String getFirstName() {
-		return firstName;
-	}
+    public String getFirstName() {
+        return firstName;
+    }
 
-	public void setFirstName(String firstName) {
-		this.firstName = firstName;
-	}
+    public void setFirstName(String firstName) {
+        this.firstName = firstName;
+    }
 
-	public String getLastName() {
-		return lastName;
-	}
+    public String getLastName() {
+        return lastName;
+    }
 
-	public void setLastName(String lastName) {
-		this.lastName = lastName;
-	}
+    public void setLastName(String lastName) {
+        this.lastName = lastName;
+    }
 
-	public String getInstrumentCode() {
-		return instrumentCode;
-	}
+    public String getInstrumentCode() {
+        return instrumentCode;
+    }
 
-	public void setInstrumentCode(String instrumentCode) {
-		this.instrumentCode = instrumentCode;
-	}
+    public void setInstrumentCode(String instrumentCode) {
+        this.instrumentCode = instrumentCode;
+    }
 
-	public String getInstrumentNumber() {
-		return instrumentNumber;
-	}
+    public String getInstrumentNumber() {
+        return instrumentNumber;
+    }
 
-	public void setInstrumentNumber(String instrumentNumber) {
-		this.instrumentNumber = instrumentNumber;
-	}
+    public void setInstrumentNumber(String instrumentNumber) {
+        this.instrumentNumber = instrumentNumber;
+    }
 
-	public String getOrderType() {
-		return orderType;
-	}
+    public String getOrderType() {
+        return orderType;
+    }
 
-	public void setOrderType(String orderType) {
-		this.orderType = orderType;
-	}
+    public void setOrderType(String orderType) {
+        this.orderType = orderType;
+    }
 
-	public String getInstrumentType() {
-		return instrumentType;
-	}
+    public String getInstrumentType() {
+        return instrumentType;
+    }
 
-	public void setInstrumentType(String instrumentType) {
-		this.instrumentType = instrumentType;
-	}
+    public void setInstrumentType(String instrumentType) {
+        this.instrumentType = instrumentType;
+    }
 
-	public BigDecimal getAmount() {
-		return amount;
-	}
+    public BigDecimal getAmount() {
+        return amount;
+    }
 
-	public void setAmount(BigDecimal amount) {
-		this.amount = amount;
-	}
+    public void setAmount(BigDecimal amount) {
+        this.amount = amount;
+    }
 
-	public String getCurrency() {
-		return currency;
-	}
+    public String getCurrency() {
+        return currency;
+    }
 
-	public void setCurrency(String currency) {
-		this.currency = currency;
-	}
+    public void setCurrency(String currency) {
+        this.currency = currency;
+    }
 
-	public Date getOrderDate() {
-		return orderDate;
-	}
+    public Date getOrderDate() {
+        return orderDate;
+    }
 
-	public void setOrderDate(Date orderDate) {
-		this.orderDate = orderDate;
-	}
+    public void setOrderDate(Date orderDate) {
+        this.orderDate = orderDate;
+    }
 
-	@Override
-	public String toString() {
-		return "Model : " + Order.class.getName() + " : " + this.orderNr + ", " + this.orderType
+ ", "
-				+ String.valueOf(this.amount) + ", " + this.instrumentCode + ", " + this.instrumentNumber
+ ", "
-				+ this.instrumentType + ", " + this.currency + ", " + this.clientNr + ", " + this.firstName
+ ", "
-				+ this.lastName + ", " + String.valueOf(this.orderDate);
-	}
+    @Override
+    public String toString() {
+        return "Model : " + Order.class.getName() + " : " + this.orderNr + ", " + this.orderType
+ ", "
+               + String.valueOf(this.amount) + ", " + this.instrumentCode + ", " + this.instrumentNumber
+               + ", " + this.instrumentType + ", " + this.currency + ", " + this.clientNr
+ ", "
+               + this.firstName + ", " + this.lastName + ", " + String.valueOf(this.orderDate);
+    }
 }



Mime
View raw message