public class ApplicationDefinition extends java.lang.Object implements ElementDefinition
Constructor and Description |
---|
ApplicationDefinition(java.lang.String name,
long id)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addLibraries(java.net.URL[] urlArray)
Add an array of libraries which implement the Application.
|
void |
addLibrary(java.net.URL url)
Add a library which implement the Application.
|
void |
addModule(ModuleDefinition module)
Add a Module.
|
java.lang.String |
addModule(ModuleDefinition module,
java.lang.String fromTemplate)
Add a Module as an instance of a module template.
|
int |
countModules()
Return the number of modules.
|
java.lang.String |
getDescription()
Return the application description (may be null).
|
long |
getID()
Return the Application ID.
|
java.util.List<java.net.URL> |
getLibraries()
Return the library which implement the Application.
|
java.lang.String |
getLibraryVersion()
Return the application library version.
|
ModuleDefinition |
getModule(java.lang.String name)
Return the module with a specified name.
|
java.util.Set<java.lang.String> |
getModuleInstances(java.lang.String templateName)
Return the module instances names derived from a module template name.
|
java.util.Map<java.lang.String,ModuleDefinition> |
getModules()
Return the map of modules.
|
java.util.Map<java.lang.Long,ModuleDefinition> |
getModulesByID()
Return the modules Map by ID.
|
java.lang.String |
getName()
Return the Application name.
|
java.net.URL |
getSpecURL()
Return the URL of the XML file which hold the definition for this application.
|
java.lang.String |
getType()
Return the application type.
|
boolean |
hasLibraries()
Return true if the application has libraries.
|
boolean |
hasLibraryVersion()
Return true if the application has a library version.
|
boolean |
hasModule(java.lang.String name)
Return true if there is a module with a specified name.
|
boolean |
hasServicesInterface()
Return true if the Application Definition support at least one Service interface for one of its modules.
|
void |
removeModule(ModuleDefinition module)
Removes a module.
|
void |
setDescription(java.lang.String desc)
Set the application description.
|
void |
setID(long id)
Set the Application ID.
|
void |
setLibraryVersion(java.lang.String version)
Set the application library version.
|
void |
setSpecURL(java.net.URL url)
Set the URL of the XML file which hold the definition for this application.
|
void |
setType(java.lang.String appliType)
Set the application type.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
hasID
public ApplicationDefinition(java.lang.String name, long id)
name
- the Application nameid
- the Application IDpublic void setSpecURL(java.net.URL url)
url
- the urlpublic java.net.URL getSpecURL()
public void setID(long id)
setID
in interface ElementDefinition
id
- the Application IDpublic void setDescription(java.lang.String desc)
setDescription
in interface org.da.protoframework.model.def.DescriptedElement
desc
- the application descriptionpublic java.lang.String getDescription()
getDescription
in interface org.da.protoframework.model.def.DescriptedElement
public java.lang.String getName()
getName
in interface ElementDefinition
public void setLibraryVersion(java.lang.String version)
version
- the application library versionpublic boolean hasLibraryVersion()
public java.lang.String getLibraryVersion()
public void setType(java.lang.String appliType)
appliType
- the application typepublic java.lang.String getType()
public long getID()
getID
in interface ElementDefinition
public void addLibrary(java.net.URL url)
url
- the library URLpublic void addLibraries(java.net.URL[] urlArray)
urlArray
- the libraries URLspublic java.util.List<java.net.URL> getLibraries()
public boolean hasLibraries()
public boolean hasModule(java.lang.String name)
name
- the module namepublic java.lang.String addModule(ModuleDefinition module, java.lang.String fromTemplate)
module
- the modulefromTemplate
- the module template namepublic java.util.Set<java.lang.String> getModuleInstances(java.lang.String templateName)
templateName
- the module template namepublic void addModule(ModuleDefinition module)
module
- the modulepublic void removeModule(ModuleDefinition module)
module
- the modulepublic java.util.Map<java.lang.Long,ModuleDefinition> getModulesByID()
public java.util.Map<java.lang.String,ModuleDefinition> getModules()
public int countModules()
public ModuleDefinition getModule(java.lang.String name)
name
- the module namepublic boolean hasServicesInterface()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence