< prev index next >

## src/com/sun/javatest/cof/COFData.java

Print this page

      69                 putAll(p);
      70             }
      71             else
      72                 throw new IllegalArgumentException(o.toString());
      73         }
      74     }
      75
      76     public String get(String name) {
      77         return (String) (data.get(name));
      78     }
      79
      80     public String get(String name, String defaultValue) {
      81         String value = (String) (data.get(name));
      82         return (value == null ? defaultValue : value);
      83     }
      84
      85     public void put(String name, String value) {
      86         data.put(name, value);
      87     }
      88
      89     public void putAll(Map map) {
      90         data.putAll(map);
      91     }
      92
      93     private Map data = new HashMap();
      94
      95     private CustomFilter filter = new CustomFilterAdapter();
      96
      97     void setCustomFilter(String filterClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
      98         Class c = Class.forName(filterClassName, true, ClassLoader.getSystemClassLoader());
      99         filter = (CustomFilter) c.newInstance();
     100     }
     101
     102     CustomFilter getCustomFilter() {
     103         return filter;
     104     }
     105
     106     private MTL mtl;
     107
     108     MTL getMtl() {
     109         return mtl;
     110     }
     111
     112     void setMtl(MTL mtl) {
     113         this.mtl = mtl;
      69                 putAll(p);
      70             }
      71             else
      72                 throw new IllegalArgumentException(o.toString());
      73         }
      74     }
      75
      76     public String get(String name) {
      77         return (String) (data.get(name));
      78     }
      79
      80     public String get(String name, String defaultValue) {
      81         String value = (String) (data.get(name));
      82         return (value == null ? defaultValue : value);
      83     }
      84
      85     public void put(String name, String value) {
      86         data.put(name, value);
      87     }
      88
      89     public void putAll(Map<Object,Object> map) {
      90         data.putAll(map);
      91     }
      92
      93     private Map<Object,Object> data = new HashMap<>();
      94
      95     private CustomFilter filter = new CustomFilterAdapter();
      96
      97     void setCustomFilter(String filterClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
      98         Class c = Class.forName(filterClassName, true, ClassLoader.getSystemClassLoader());
      99         filter = (CustomFilter) c.newInstance();
     100     }
     101
     102     CustomFilter getCustomFilter() {
     103         return filter;
     104     }
     105
     106     private MTL mtl;
     107
     108     MTL getMtl() {
     109         return mtl;
     110     }
     111
     112     void setMtl(MTL mtl) {
     113         this.mtl = mtl;

< prev index next >