EMMA Coverage Report (generated Sat Nov 03 21:53:04 GMT 2007)
[all classes][sf.qof.mapping]

COVERAGE SUMMARY FOR SOURCE FILE [AbstractCharacterMapping.java]

nameclass, %method, %block, %line, %
AbstractCharacterMapping.java100% (3/3)100% (10/10)100% (50/50)100% (18/18)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AbstractCharacterMapping100% (1/1)100% (2/2)100% (8/8)100% (4/4)
AbstractCharacterMapping (): void 100% (1/1)100% (3/3)100% (2/2)
accept (Mapper, MappingVisitor): void 100% (1/1)100% (5/5)100% (2/2)
     
class AbstractCharacterMapping$CharacterMapping100% (1/1)100% (4/4)100% (23/23)100% (8/8)
<static initializer> 100% (1/1)100% (13/13)100% (4/4)
AbstractCharacterMapping$CharacterMapping (): void 100% (1/1)100% (3/3)100% (1/1)
accept (Mapper, CharacterMappingVisitor): void 100% (1/1)100% (5/5)100% (2/2)
getTypes (): Set 100% (1/1)100% (2/2)100% (1/1)
     
class AbstractCharacterMapping$StringMapping100% (1/1)100% (4/4)100% (19/19)100% (7/7)
<static initializer> 100% (1/1)100% (9/9)100% (3/3)
AbstractCharacterMapping$StringMapping (): void 100% (1/1)100% (3/3)100% (1/1)
accept (Mapper, CharacterMappingVisitor): void 100% (1/1)100% (5/5)100% (2/2)
getTypes (): Set 100% (1/1)100% (2/2)100% (1/1)

1/*
2 * Copyright 2007 brunella ltd
3 *
4 * Licensed under the LGPL Version 3 (the "License");
5 * you may not use this file except in compliance with the License.
6 *
7 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
8 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
9 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
10 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
11 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
12 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
13 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
14 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
15 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
16 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
17 * THE POSSIBILITY OF SUCH DAMAGE.
18 */
19package sf.qof.mapping;
20 
21import java.util.HashSet;
22import java.util.Set;
23 
24public abstract class AbstractCharacterMapping extends AbstractBaseMapping implements Mapping, ParameterMapping,
25    ResultMapping {
26 
27  public void accept(Mapper mapper, MappingVisitor visitor) {
28    visitor.visit(mapper, this);
29  }
30 
31  public abstract void accept(Mapper mapper, CharacterMappingVisitor visitor);
32 
33  public static class StringMapping extends AbstractCharacterMapping {
34    private static final Set<Class<?>> types = new HashSet<Class<?>>();
35    static {
36      types.add(String.class);
37    }
38 
39    public static Set<Class<?>> getTypes() {
40      return types;
41    }
42 
43    public void accept(Mapper mapper, CharacterMappingVisitor visitor) {
44      visitor.visit(mapper, this);
45    }
46  }
47 
48  public static class CharacterMapping extends AbstractCharacterMapping {
49    private static final Set<Class<?>> types = new HashSet<Class<?>>();
50    static {
51      types.add(char.class);
52      types.add(Character.class);
53    }
54 
55    public static Set<Class<?>> getTypes() {
56      return types;
57    }
58 
59    public void accept(Mapper mapper, CharacterMappingVisitor visitor) {
60      visitor.visit(mapper, this);
61    }
62  }
63}

[all classes][sf.qof.mapping]
EMMA 2.0.5312 (C) Vladimir Roubtsov