1
|
/**
|
2
|
* Copyright (C) 2013 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.cdm.remote.json.processor.bean;
|
10
|
|
11
|
import java.util.List;
|
12
|
|
13
|
/**
|
14
|
* Common interface for all {@link AbstractCdmBeanProcessor}s for CDM types which
|
15
|
* have properties of MultilanguageText or LanguageString sets.
|
16
|
* <p>
|
17
|
* Implementors of this interface should to define in a private field the variable to be returned by the
|
18
|
* {@link #getMultilanguageTextIgnoreList()} and by the {@link #isReplaceMultilanguageText()}.
|
19
|
* The properties to be ignored should be initially skipped. This is done by returning the IgnoreList via the
|
20
|
* {@link AbstractCdmBeanProcessor#getIgnorePropNames()}. The property can then be added again during the
|
21
|
* {@link AbstractCdmBeanProcessor#processBeanSecondStep(Object, net.sf.json.JSONObject, net.sf.json.JsonConfig)}
|
22
|
* where the return value of {@link #isReplaceMultilanguageText()} is evaluated.
|
23
|
* <p>
|
24
|
* For reference implementations, please see {@link StateDataBeanProcessor} or {@link DescriptionElementBeanProcessor}.
|
25
|
*
|
26
|
* @author a.kohlbecker
|
27
|
* @date Dec 4, 2013
|
28
|
*
|
29
|
*/
|
30
|
public interface IMultilanguageTextBeanProcessor {
|
31
|
|
32
|
public abstract void setReplaceMultilanguageText(boolean replace);
|
33
|
|
34
|
public abstract boolean isReplaceMultilanguageText();
|
35
|
|
36
|
public abstract List<String> getMultilanguageTextIgnoreList();
|
37
|
|
38
|
}
|