public class FrameworkDefinition
extends java.lang.Object
Constructor and Description |
---|
FrameworkDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
addApplication(ApplicationDefinition appli)
Add an Application definition.
|
void |
addService(ServiceDefinition service)
Add a Service.
|
void |
addType(Type type)
Add a Type.
|
ApplicationDefinition |
getApplication(java.lang.String appliName)
Return the application of a specified name.
|
java.util.Map<java.lang.String,ApplicationDefinition> |
getApplications()
Return the applications.
|
java.util.Map<java.lang.Long,ApplicationDefinition> |
getApplicationsByID()
Return the applications Map by ID.
|
java.util.List<java.net.URL> |
getConfigurationDirectories()
Return the configuration directories.
|
Framework |
getFramework()
Return the framework.
|
java.util.List<java.net.URL> |
getLibraries()
Return the global libraries shared by all applications.
|
ModuleDefinition |
getModule(ModuleKey key)
Return a Module definition.
|
ServiceDefinition |
getService(NamespaceKey key)
Return the Service of a specified key.
|
ServiceDefinition |
getService(java.lang.String name)
Return the Service of a specified name.
|
java.util.Map<NamespaceKey,ServiceDefinition> |
getServices()
Return the Services sorted by their name.
|
java.util.Map<java.lang.Long,ServiceDefinition> |
getServicesByID()
Return the Services sorted by their ID.
|
java.util.Map<NamespaceKey,Type> |
getTypes()
Return the Types.
|
java.util.Map<java.lang.String,Type> |
getTypesByNames()
Return the Types.
|
boolean |
hasApplication(java.lang.String appliName)
Return true if the model has an application for a specified name.
|
boolean |
hasLibraries()
Return true if the framework has global libraries.
|
boolean |
hasOwner()
Return true if the framework has one module owner.
|
boolean |
hasService(NamespaceKey key)
Return true if there is a Service of a specified key.
|
boolean |
hasService(java.lang.String name)
Return true if there is a Service of a specified name.
|
void |
setConfigurationDirectories(java.util.List<java.net.URL> confDirectories)
Set the configuration directories.
|
void |
setFramework(Framework framework)
Set the framework.
|
void |
setLibraries(java.util.List<java.net.URL> globalLibs)
Set the global libraries shared by all applications.
|
void |
setOwner()
Set that the framework has one module owner.
|
public void setFramework(Framework framework)
framework
- the frameworkpublic void setConfigurationDirectories(java.util.List<java.net.URL> confDirectories)
confDirectories
- the configuration directoriespublic java.util.List<java.net.URL> getConfigurationDirectories()
public void setLibraries(java.util.List<java.net.URL> globalLibs)
globalLibs
- the global librariespublic java.util.List<java.net.URL> getLibraries()
public boolean hasLibraries()
public Framework getFramework()
public boolean hasApplication(java.lang.String appliName)
appliName
- the application namepublic ApplicationDefinition getApplication(java.lang.String appliName)
appliName
- the application namepublic void addApplication(ApplicationDefinition appli)
appli
- the Application definitionpublic ModuleDefinition getModule(ModuleKey key)
key
- the Module definition keypublic java.util.Map<java.lang.String,ApplicationDefinition> getApplications()
public java.util.Map<java.lang.Long,ApplicationDefinition> getApplicationsByID()
public void addService(ServiceDefinition service)
service
- the Servicepublic java.util.Map<NamespaceKey,ServiceDefinition> getServices()
public ServiceDefinition getService(java.lang.String name)
name
- the Service namepublic ServiceDefinition getService(NamespaceKey key)
key
- the Service keypublic boolean hasService(NamespaceKey key)
key
- the Service keypublic boolean hasService(java.lang.String name)
name
- the Service namepublic java.util.Map<java.lang.Long,ServiceDefinition> getServicesByID()
public java.util.Map<NamespaceKey,Type> getTypes()
public void addType(Type type)
type
- the typepublic java.util.Map<java.lang.String,Type> getTypesByNames()
public boolean hasOwner()
public void setOwner()
Copyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence