VbaProject
Inheritance: java.lang.Object
public class VbaProject
Represents the VBA project.
Methods
| Method | Description |
|---|---|
| equals(Object arg0) | |
| getClass() | |
| getModules() | Gets all VbaModule objects. |
| getName() | the name of the VBA project. |
| getReferences() | Gets all references of VBA project. |
| hashCode() | |
| isProtected() | Indicates whether this VBA project is protected. |
| isSigned() | Indicates whether VBAcode is signed or not. |
| notify() | |
| notifyAll() | |
| protect(boolean islockedForViewing, String password) | Protects or unprotects this VBA project. |
| setName(String value) | For the description of this property, please see getName() |
| toString() | |
| validatePassword(String password) | Validates protection password. |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getModules()
public VbaModuleCollection getModules()
Gets all VbaModule objects.
Returns: VbaModuleCollection
getName()
public String getName()
the name of the VBA project.
Returns: java.lang.String
getReferences()
public VbaProjectReferenceCollection getReferences()
Gets all references of VBA project.
Returns: VbaProjectReferenceCollection
hashCode()
public native int hashCode()
Returns: int
isProtected()
public boolean isProtected()
Indicates whether this VBA project is protected.
Returns: boolean
isSigned()
public boolean isSigned()
Indicates whether VBAcode is signed or not.
Returns: boolean
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
protect(boolean islockedForViewing, String password)
public void protect(boolean islockedForViewing, String password)
Protects or unprotects this VBA project. If islockedForViewing is true, the password could not be null.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| islockedForViewing | boolean | indicates whether locks project for viewing. |
| password | java.lang.String | If the value is null, unprotects this VBA project, otherwise protect this VBA project. |
setName(String value)
public void setName(String value)
For the description of this property, please see getName()
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
toString()
public String toString()
Returns: java.lang.String
validatePassword(String password)
public boolean validatePassword(String password)
Validates protection password.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| password | java.lang.String | the password |
Returns: boolean - Whether password is the protection password of this VBA project
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |