/
MBookmark.java
59 lines (52 loc) · 1.51 KB
/
MBookmark.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*******************************************************************************
* Copyright (c) 2017 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Obeo - initial API and implementation
*
*******************************************************************************/
package org.obeonetwork.m2doc.element;
/**
* An bookmark that can be returned by services.
*
* @author <a href="mailto:yvan.lussaud@obeo.fr">Yvan Lussaud</a>
*/
public interface MBookmark extends MElement {
/**
* Gets the text to display.
*
* @return the text to display
*/
String getText();
/**
* Sets the text to display.
*
* @param text
* the new text to display
*/
void setText(String text);
/**
* Gets the bookmark ID.
*
* @return the bookmark ID
*/
String getId();
/**
* Sets the bookmark ID.
*
* @param id
* the new bookmark ID
*/
void setId(String id);
/**
* Tells if this is a reference to a {@link MBookmark} or a {@link MBookmark} declaration.
*
* @return <code>true</code> if this is a reference to a {@link MBookmark}, <code>false</code> if it's a {@link MBookmark}
* declaration
*/
boolean isReference();
}