EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.core.mapping]

COVERAGE SUMMARY FOR SOURCE FILE [ElasticsearchPersistentProperty.java]

nameclass, %method, %block, %line, %
ElasticsearchPersistentProperty.java100% (1/1)60%  (3/5)71%  (22/31)89%  (2.7/3)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ElasticsearchPersistentProperty$PropertyToFieldNameConverter100% (1/1)60%  (3/5)71%  (22/31)89%  (2.7/3)
valueOf (String): ElasticsearchPersistentProperty$PropertyToFieldNameConverter 0%   (0/1)0%   (0/5)0%   (0/1)
values (): ElasticsearchPersistentProperty$PropertyToFieldNameConverter [] 0%   (0/1)0%   (0/4)0%   (0/1)
<static initializer> 100% (1/1)100% (14/14)100% (2/2)
ElasticsearchPersistentProperty$PropertyToFieldNameConverter (String, int): void 100% (1/1)100% (5/5)100% (1/1)
convert (ElasticsearchPersistentProperty): String 100% (1/1)100% (3/3)100% (1/1)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.core.mapping;
17 
18import org.springframework.core.convert.converter.Converter;
19import org.springframework.data.mapping.PersistentProperty;
20 
21public interface ElasticsearchPersistentProperty extends PersistentProperty<ElasticsearchPersistentProperty>{
22 
23        String getFieldName();
24 
25    public enum PropertyToFieldNameConverter implements Converter<ElasticsearchPersistentProperty, String> {
26 
27        INSTANCE;
28 
29        public String convert(ElasticsearchPersistentProperty source) {
30            return source.getFieldName();
31        }
32    }
33 
34}

[all classes][org.springframework.data.elasticsearch.core.mapping]
EMMA 2.0.5312 (C) Vladimir Roubtsov