public class Module extends Object implements Serializable
ModuleItem
. May have an additional user object and archive name
and uri pointing to the module source attached.
The module URI gets initialized with the filename, resource or URL being read, however may be overridden and has not further meaning to the deployment.
The archive name and user object are opportunities to attach additional deployment information.
Constructor and Description |
---|
Module(String name,
String uri,
Set<String> uses,
Set<String> imports,
List<ModuleItem> items,
String moduleText)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
String |
getArchiveName()
Returns the name of the archive this module originated from, or null if not applicable.
|
Set<String> |
getImports()
Returns the imports defined by the module.
|
List<ModuleItem> |
getItems()
Returns a list of statements (some may be comments only) that make up the module.
|
String |
getModuleText()
Returns module text.
|
String |
getName()
Returns the module name, if provided.
|
String |
getUri()
Returns the module URI if provided.
|
Object |
getUserObject()
Returns the optional user object that may be attached to the module.
|
Set<String> |
getUses()
Returns the dependencies the module may have on other modules.
|
void |
setArchiveName(String archiveName)
Set the name of the archive this module originated from, or null if not applicable.
|
void |
setImports(Set<String> imports)
Sets the imports defined by the module.
|
void |
setItems(List<ModuleItem> items)
Sets a list of statements (some may be comments only) that make up the module.
|
void |
setModuleText(String moduleText)
Sets module text.
|
void |
setName(String name)
Sets the module name or null if none provided.
|
void |
setUri(String uri)
Sets the module URI or null if none provided.
|
void |
setUserObject(Object userObject)
Sets an optional user object that may be attached to the module.
|
void |
setUses(Set<String> uses)
Sets the dependencies the module may have on other modules.
|
String |
toString() |
public Module(String name, String uri, Set<String> uses, Set<String> imports, List<ModuleItem> items, String moduleText)
name
- module nameuri
- module uriuses
- names of modules that this module depends onimports
- the Java class importsitems
- EPL statementsmoduleText
- text of modulepublic String getArchiveName()
public void setArchiveName(String archiveName)
archiveName
- archive namepublic Object getUserObject()
public void setUserObject(Object userObject)
userObject
- user objectpublic String getName()
public void setName(String name)
name
- module namepublic String getUri()
public void setUri(String uri)
uri
- of modulepublic Set<String> getUses()
public void setUses(Set<String> uses)
uses
- module dependenciespublic List<ModuleItem> getItems()
public void setItems(List<ModuleItem> items)
items
- statementspublic Set<String> getImports()
public void setImports(Set<String> imports)
imports
- module importspublic String getModuleText()
public void setModuleText(String moduleText)
moduleText
- text to set