Project

General

Profile

Download (1.24 KB) Statistics
| Branch: | Tag: | Revision:
1
package eu.etaxonomy.cdm.model.common;
2

    
3
import java.util.Set;
4

    
5
public interface IIntextReferencable {
6

    
7

    
8
	//*************** INTEXT REFERENCE **********************************************
9

    
10
	public Set<IntextReference> getIntextReferences();
11

    
12
	public void addIntextReference(IntextReference intextReference);
13

    
14
	public void removeIntextReference(IntextReference intextReference);
15

    
16
	/**
17
	 * Returns the referenced text
18
     * @return the referenced text
19
     */
20
    public String getText();
21

    
22
    /**
23
     * Sets the referenced text.
24
     * @param text the new referenced text
25
     */
26
    public void setText(String text);
27

    
28
    /**
29
     * Adds an {@link IntextReference} and
30
     * sets the text of the referenced entity.<BR>
31
     *
32
     * NOTE: this will override any existing
33
     * text.
34
     *
35
     * @param target
36
     * @param start
37
     * @param inner
38
     * @param end
39
     * @return
40
     */
41
    public IntextReference addIntextReference(IIntextReferenceTarget target, String start, String inner, String end);
42

    
43
    /**
44
     * Adds an
45
     * @param target
46
     * @param start
47
     * @param end
48
     * @return
49
     */
50
    public IntextReference addIntextReference(IIntextReferenceTarget target, int start, int end);
51
}
(22-22/79)