Package org.gvsig.scripting
Interface ScriptingFolder
- All Superinterfaces:
ScriptingUnit,org.gvsig.tools.visitor.Visitable
Interface that represents a directory in the ScriptingFramework.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(org.gvsig.tools.visitor.Visitor visitor, Predicate<ScriptingUnit> includeFilter) voidadd(ScriptingUnit unit) Adds aScriptingUnitto the ScriptingFolder.getProperty(String group, String name) Returns theScriptingUnitassociated with a File.getUnits()Gets all theScriptingUnits contained in a ScriptingFolder.booleanisLink()voidremove(ScriptingUnit unit) Removes aScriptingUnitfrom the ScriptingFolder.voidsave()voidsetIconNames(String iconName, String iconNameOpen) voidsetProperty(String group, String name, String value) voidMethods inherited from interface org.gvsig.scripting.ScriptingUnit
addPropertyChangeListener, getCreatedBy, getDescription, getFile, getFileResource, getFiles, getIconNames, getId, getName, getParent, getProperties, getProperty, getTypeName, getUserPath, getVersion, isASystemUnit, isSaved, move, reload, remove, rename, setCreatedBy, setDescription, setName, setProperty, setSaved, setVersionMethods inherited from interface org.gvsig.tools.visitor.Visitable
accept
-
Method Details
-
add
Adds aScriptingUnitto the ScriptingFolder.- Parameters:
unit-ScriptingUnitto include.
-
remove
Removes aScriptingUnitfrom the ScriptingFolder.- Parameters:
unit-ScriptingUnitto delete.
-
getUnit
Returns theScriptingUnitassociated with a File.- Parameters:
file- File of the data origin.- Returns:
- a
ScriptingUnitwith the content extracted from the file.
-
getUnit
-
getUnits
List<ScriptingUnit> getUnits()Gets all theScriptingUnits contained in a ScriptingFolder.- Returns:
- a List with the
ScriptingUnits.
-
getUnitFolders
List<ScriptingFolder> getUnitFolders() -
isLink
boolean isLink() -
accept
void accept(org.gvsig.tools.visitor.Visitor visitor, Predicate<ScriptingUnit> includeFilter) throws org.gvsig.tools.exception.BaseException - Throws:
org.gvsig.tools.exception.BaseException
-
save
void save() -
getRawInf
String getRawInf() -
setRawInf
-
getProperty
-
setProperty
-
setIconNames
-