public interface ScriptingUnit
Interface that represents the elements used in the ScriptingFramework.
ScriptingBaseScript
,
ScriptingFolder
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
java.lang.String |
getCreatedBy()
Returns information about the ScriptingUnit's creator
|
java.lang.String |
getDescription()
Returns the ScriptingUnit's description
|
java.io.File |
getFile()
Gets a File with the ScriptUnit path name.
|
java.io.File |
getFileResource(java.lang.String extension) |
java.util.List<java.io.File> |
getFiles()
Return a list of the files that use this unit with out the inf file.
|
java.lang.String[] |
getIconNames()
Gets the name of the icons associated to the ScriptingUnit type.
|
java.lang.String |
getId()
Returns the ScriptingUnit's ID
|
java.lang.String |
getName()
Returns the ScriptingUnit's name
|
ScriptingFolder |
getParent()
Returns the ScriptingUnit's parent
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
java.lang.String |
getProperty(java.lang.String name) |
java.lang.String |
getTypeName() |
java.lang.String |
getUserPath() |
java.lang.String |
getVersion()
Returns the ScriptingUnit's version
|
boolean |
isASystemUnit() |
boolean |
isSaved()
Indicates if the ScriptBaseScript is modified from last saved version.
|
boolean |
move(ScriptingFolder target)
Moves a ScriptingUnitfrom the current directory to the new location.
|
void |
reload() |
boolean |
remove() |
boolean |
rename(java.lang.String newId)
Changes the ID of a ScriptingUnit and the name of the files and/or directories associated
|
void |
setCreatedBy(java.lang.String createdBy)
Sets a new information about the ScriptingUnit's creator.
|
void |
setDescription(java.lang.String description)
Sets a new description to the ScriptingUnit.
|
void |
setName(java.lang.String name)
Sets a new name to the ScriptingUnit.
|
void |
setProperty(java.lang.String name,
java.lang.String value) |
void |
setSaved(boolean saved)
Sets the unit current status with the saved version.
|
void |
setVersion(java.lang.String version)
Sets a new version value to the ScriptingUnit.
|
java.lang.String getId()
java.lang.String getName()
java.lang.String getDescription()
java.lang.String getCreatedBy()
java.lang.String getVersion()
ScriptingFolder getParent()
ScriptingFolder
where is contained the ScriptingUnitjava.lang.String getUserPath()
void setName(java.lang.String name)
name
- String that contains the new name.void setDescription(java.lang.String description)
description
- String that contains the new description.void setCreatedBy(java.lang.String createdBy)
createdBy
- String that contains the new creator's information.void setVersion(java.lang.String version)
version
- String that contains the new version.void reload()
boolean rename(java.lang.String newId)
newId
- String that contains the new Id.boolean remove()
boolean move(ScriptingFolder target)
target
- ScriptingFolder
that represents the destination..java.lang.String[] getIconNames()
java.lang.String getTypeName()
java.io.File getFile()
java.util.List<java.io.File> getFiles()
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
void setSaved(boolean saved)
saved
- Indicate if the unit is up-to-date or not.boolean isSaved()
java.lang.String getProperty(java.lang.String name)
void setProperty(java.lang.String name, java.lang.String value)
java.util.Map<java.lang.String,java.lang.String> getProperties()
boolean isASystemUnit()
java.io.File getFileResource(java.lang.String extension)