public interface IScript
IScriptDefinition
interface.Modifier and Type | Method and Description |
---|---|
ComponentModel |
getComponentModel()
Retrieves the component model for the script (that is, NET or Java)
|
java.lang.String |
getLanguage()
Returns the language of the script being generated.
|
java.io.File |
getModelFile()
Constructs the file object for a script helper based
on the script name, language attributes, and supplied project
name.
|
java.lang.Object |
getProperty(java.lang.String property)
Returns a specific property value with the script definition.
|
java.lang.String[] |
getScriptAssets(boolean datastoreRelativeNames)
Returns the set of file names that are direct assets
of this script.
|
java.lang.String[] |
getScriptAssets(boolean datastoreRelativeNames,
boolean includeSharedAssets)
Returns the set of file names that are assets of this script.
|
java.io.File |
getScriptFile()
Constructs the file object for a script based on
the script name, language attributes, and supplied project
name.
|
java.io.File |
getScriptHelperFile() |
java.lang.String |
getScriptName()
Returns the full name of the script to be generated.
|
void |
removeScriptAssets()
Cleans up the assets associated with a script when
the script is overwritten.
|
void |
setDatastore(java.lang.String datastore)
Allows the default project (datastore) location to be specified for this
instance of script definition.
|
void |
setLanguage(java.lang.String language)
Sets the language of the script being generated.
|
void |
setProperty(java.lang.String property,
java.lang.Object value)
Associates a specific property with the script definition.
|
void |
setScriptName(java.lang.String scriptName)
Defines the full name of the script.
|
java.lang.String getScriptName()
setScriptName(String)
void setScriptName(java.lang.String scriptName)
scriptName
- the full name of the script to be generatedgetScriptName()
java.lang.String getLanguage()
setLanguage(String)
void setLanguage(java.lang.String language)
language
- the language of the scriptsetLanguage(String)
ComponentModel getComponentModel()
void setDatastore(java.lang.String datastore)
datastore
- The relative filesystem directory that the script file is
stored in. The package directory
structure is implied in the script name.java.io.File getScriptFile()
java.io.File getModelFile()
java.io.File getScriptHelperFile()
java.lang.String[] getScriptAssets(boolean datastoreRelativeNames)
datastoreRelativeNames
- specifies whether the names
returned are relative to the datastore or are complete
file names, including the datastore locationgetScriptAssets(boolean,boolean)
java.lang.String[] getScriptAssets(boolean datastoreRelativeNames, boolean includeSharedAssets)
datastoreRelativeNames
- specifies whether the names
returned are relative to the datastore or are complete
file names, including the datastore locationincludeSharedAssets
- specifies whether shared asets should
be included in the set of names returnedgetScriptAssets(boolean)
void removeScriptAssets()
java.lang.Object getProperty(java.lang.String property)
property
- the name of the propertynull
is returned.void setProperty(java.lang.String property, java.lang.Object value)
property
- the name of the propertyvalue
- the value of the property, which must be a value class.