gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.lib / org.gvsig.scripting.lib.api / src / main / java / org / gvsig / scripting / ScriptingUnit.java @ 441
History | View | Annotate | Download (2.81 KB)
1 |
package org.gvsig.scripting; |
---|---|
2 |
|
3 |
import java.io.File; |
4 |
|
5 |
/**
|
6 |
* <p> Interface that represents the elements used in the ScriptingFramework.</p>
|
7 |
*
|
8 |
* @see ScriptingBaseScript
|
9 |
* @see ScriptingFolder
|
10 |
*/
|
11 |
public interface ScriptingUnit { |
12 |
|
13 |
/**
|
14 |
* Returns the ScriptingUnit's ID
|
15 |
*
|
16 |
* @return a String containing the ScriptingUnit's ID
|
17 |
*/
|
18 |
public String getId(); |
19 |
|
20 |
/**
|
21 |
* Returns the ScriptingUnit's name
|
22 |
*
|
23 |
* @return a String containing the ScriptingUnit's name
|
24 |
*/
|
25 |
public String getName(); |
26 |
|
27 |
/**
|
28 |
* Returns the ScriptingUnit's description
|
29 |
*
|
30 |
* @return a String containing the ScriptingUnit's description
|
31 |
*/
|
32 |
public String getDescription(); |
33 |
|
34 |
/**
|
35 |
* Returns information about the ScriptingUnit's creator
|
36 |
*
|
37 |
* @return a String containing the ScriptingUnit's creator
|
38 |
*/
|
39 |
public String getCreatedBy(); |
40 |
|
41 |
/**
|
42 |
* Returns the ScriptingUnit's version
|
43 |
*
|
44 |
* @return a String containing the ScriptingUnit's version
|
45 |
*/
|
46 |
public String getVersion(); |
47 |
|
48 |
/**
|
49 |
* Returns the ScriptingUnit's parent
|
50 |
*
|
51 |
* @return a {@link ScriptingFolder} where is contained the ScriptingUnit
|
52 |
*/
|
53 |
public ScriptingFolder getParent();
|
54 |
|
55 |
/**
|
56 |
* Sets a new name to the ScriptingUnit.
|
57 |
*
|
58 |
* @param name
|
59 |
* String that contains the new name.
|
60 |
*/
|
61 |
public void setName(String name); |
62 |
|
63 |
/**
|
64 |
* Sets a new description to the ScriptingUnit.
|
65 |
*
|
66 |
* @param description
|
67 |
* String that contains the new description.
|
68 |
*/
|
69 |
public void setDescription(String description); |
70 |
|
71 |
/**
|
72 |
* Sets a new information about the ScriptingUnit's creator.
|
73 |
*
|
74 |
* @param createdBy
|
75 |
* String that contains the new creator's information.
|
76 |
*/
|
77 |
public void setCreatedBy(String createdBy); |
78 |
|
79 |
/**
|
80 |
* Sets a new version value to the ScriptingUnit.
|
81 |
*
|
82 |
* @param version
|
83 |
* String that contains the new version.
|
84 |
*/
|
85 |
public void setVersion(String version); |
86 |
|
87 |
/**
|
88 |
* Changes the ID of a ScriptingUnit and the name of the files and/or directories associated
|
89 |
*
|
90 |
* @param newId
|
91 |
* String that contains the new Id.
|
92 |
*
|
93 |
* @return true if it's succesful, false if not.
|
94 |
*/
|
95 |
public boolean rename(String newId); |
96 |
|
97 |
public boolean remove(); |
98 |
|
99 |
/**
|
100 |
* Moves a ScriptingUnitfrom the current directory to the new location.
|
101 |
*
|
102 |
* @param target
|
103 |
* {@link ScriptingFolder} that represents the destination..
|
104 |
*
|
105 |
* @return true if it's succesful, false if not.
|
106 |
*/
|
107 |
public boolean move(ScriptingFolder target); |
108 |
|
109 |
/**
|
110 |
* Gets the name of the icons associated to the ScriptingUnit type.
|
111 |
*
|
112 |
* @return a String array with the identificators of the icons associated.
|
113 |
*/
|
114 |
public String[] getIconNames(); |
115 |
|
116 |
public String getTypeName(); |
117 |
|
118 |
/**
|
119 |
* Gets a File with the ScriptUnit path name.
|
120 |
*
|
121 |
* @return a string with the path name of the ScriptUnit (inf/folder).
|
122 |
*/
|
123 |
public File getFile(); |
124 |
} |