Package com.aspose.tasks
Class VbaModule
- java.lang.Object
-
- com.aspose.tasks.VbaModule
-
- All Implemented Interfaces:
IVbaModule
public final class VbaModule extends Object implements IVbaModule
Represents a VBA module.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VbaModulecreateClassModule(String name)Creates an instance ofVbaModulewith VbaModuleType.ClassModule type.static VbaModulecreateProceduralModule(String name)Creates an instance ofVbaModulewith VbaModuleType.ProceduralModule type.VbaModuleAttributeCollectiongetAttributes()Gets a collection of the module's attributes.StringgetName()Gets a name of the VBA moduleStringgetSourceCode()Gets a source code of the VBA moduleintgetType()Gets the type of the module.voidsetName(String value)A name of the VBA modulevoidsetSourceCode(String value)Sets a source code of the VBA module
-
-
-
Method Detail
-
createClassModule
public static VbaModule createClassModule(String name)
Creates an instance of
VbaModulewith VbaModuleType.ClassModule type.
-
createProceduralModule
public static VbaModule createProceduralModule(String name)
Creates an instance of
VbaModulewith VbaModuleType.ProceduralModule type.
-
getAttributes
public final VbaModuleAttributeCollection getAttributes()
Gets a collection of the module's attributes.
- Specified by:
getAttributesin interfaceIVbaModule- Returns:
- a collection of the module's attributes.
-
getName
public final String getName()
Gets a name of the VBA module
- Specified by:
getNamein interfaceIVbaModule- Returns:
- a name of the VBA module
-
setName
public final void setName(String value)
A name of the VBA module
- Parameters:
value- a name of the VBA module
-
getSourceCode
public final String getSourceCode()
Gets a source code of the VBA module
- Specified by:
getSourceCodein interfaceIVbaModule- Returns:
- a source code of the VBA module
-
setSourceCode
public final void setSourceCode(String value)
Sets a source code of the VBA module
- Parameters:
value- a source code of the VBA module
-
getType
public final int getType()
Gets the type of the module.
- Returns:
- the type of the module.
-
-