User: kz      
Date: 2008-05-05 15:22:04+0000
Modified:
   
dba/reportdesign/java/com/sun/star/report/pentaho/parser/stylemapper/OneOfConstantsMapper.java

Log:
 INTEGRATION: CWS dba30beta (1.3.6); FILE MERGED
 2008/04/22 10:30:32 oj 1.3.6.1: #i88503# merge changes from rptchart02

File Changes:

Directory: 
/dba/reportdesign/java/com/sun/star/report/pentaho/parser/stylemapper/
=================================================================================

File [changed]: OneOfConstantsMapper.java
Url: 
http://dba.openoffice.org/source/browse/dba/reportdesign/java/com/sun/star/report/pentaho/parser/stylemapper/OneOfConstantsMapper.java?r1=1.3&r2=1.4
Delta lines:  +33 -33
---------------------
--- OneOfConstantsMapper.java   2008-04-10 17:52:37+0000        1.3
+++ OneOfConstantsMapper.java   2008-05-05 15:22:01+0000        1.4
@@ -27,37 +27,37 @@
  * for a copy of the LGPLv3 License.
  *
  ************************************************************************/
-
-
 package com.sun.star.report.pentaho.parser.stylemapper;
 
 import java.util.HashMap;
 
 import com.sun.star.report.pentaho.parser.StyleMapper;
+import java.util.Map;
 import org.jfree.layouting.input.style.CSSDeclarationRule;
 import org.jfree.layouting.input.style.StyleKey;
 import org.jfree.layouting.input.style.values.CSSValue;
 
 public abstract class OneOfConstantsMapper implements StyleMapper
 {
-  private StyleKey styleKey;
-  private HashMap mappings;
 
-  protected OneOfConstantsMapper (StyleKey styleKey)
+    private final StyleKey styleKey;
+    private final Map mappings;
+
+    protected OneOfConstantsMapper(final StyleKey styleKey)
   {
     this.styleKey = styleKey;
     this.mappings = new HashMap();
   }
 
-  public void addMapping (String value, CSSValue target)
+    public void addMapping (final String value, final CSSValue target)
   {
     mappings.put(value, target);
   }
 
-  public void updateStyle (String uri,
-                           String attrName,
-                           String attrValue,
-                           CSSDeclarationRule targetRule)
+    public void updateStyle(final String uri,
+            final String attrName,
+            final String attrValue,
+            final CSSDeclarationRule targetRule)
   {
     final CSSValue value = lookupMapping(attrValue);
     if (value != null)
@@ -66,12 +66,12 @@
     }
   }
 
-  public StyleKey getStyleKey ()
+    public StyleKey getStyleKey()
   {
     return styleKey;
   }
 
-  protected CSSValue lookupMapping (String attrValue)
+    protected CSSValue lookupMapping(final String attrValue)
   {
     return (CSSValue) mappings.get(attrValue);
   }




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to