EMMA Coverage Report (generated Tue Mar 05 16:36:55 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 2013 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/**
21 *  ElasticsearchPersistentProperty
22 *
23 * @author Rizwan Idrees
24 * @author Mohsin Husen
25 */
26 
27public interface ElasticsearchPersistentProperty extends PersistentProperty<ElasticsearchPersistentProperty>{
28 
29        String getFieldName();
30 
31    boolean isVersionProperty();
32 
33    public enum PropertyToFieldNameConverter implements Converter<ElasticsearchPersistentProperty, String> {
34 
35        INSTANCE;
36 
37        public String convert(ElasticsearchPersistentProperty source) {
38            return source.getFieldName();
39        }
40    }
41 
42}

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