public class ModelInfo extends Startable implements IModelInfo
Constructor and Description |
---|
ModelInfo()
Create a new model info.
|
ModelInfo(String name,
String packagename,
String description,
IErrorReport report,
IArgument[] arguments,
IArgument[] results,
boolean startable,
String filename,
Map<String,Object> properties,
ClassLoader classloader,
RequiredServiceInfo[] requiredservices,
ProvidedServiceInfo[] providedservices,
ConfigurationInfo[] configurations,
SubcomponentTypeInfo[] subcomponents,
String[] imports,
IResourceIdentifier rid)
Create a new model info.
|
Modifier and Type | Method and Description |
---|---|
void |
addArgument(IArgument argument)
Add an argument.
|
void |
addConfiguration(ConfigurationInfo configuration)
Add a configuration.
|
void |
addExtensiontype(Object extension)
Add a extension type.
|
void |
addImport(String imp)
Add an import statement.
|
void |
addProperty(String name,
Object value)
Add a property.
|
void |
addProperty(UnparsedExpression unexp)
Add a property.
|
void |
addProvidedService(ProvidedServiceInfo providedservice)
Add a provided service.
|
void |
addRequiredService(RequiredServiceInfo requiredservice)
Add a required service.
|
void |
addResult(IArgument result)
Add a result.
|
void |
addSubcomponentType(SubcomponentTypeInfo subcomponent)
Add a subcomponent type.
|
boolean |
checkName()
Check if the specified name matches the file name.
|
boolean |
checkPackage()
Check if the specified package matches the file name.
|
String[] |
getAllImports()
Get the imports including the package.
|
IArgument |
getArgument(String name)
Get an argument per name.
|
IArgument[] |
getArguments()
Get the arguments.
|
Boolean |
getAutoShutdown(String configname)
Get the autoshutdown flag.
|
ConfigurationInfo |
getConfiguration(String name)
Get a configuration.
|
String[] |
getConfigurationNames()
Get the configurations.
|
ConfigurationInfo[] |
getConfigurations()
Get the configurations.
|
Boolean |
getDaemon(String configname)
Get the daemon flag.
|
Object[] |
getExtensionTypes()
Get the extension names.
|
String |
getFilename()
Get the filename.
|
String |
getFullName()
Get the full model name (package.name)
|
String[] |
getImports()
Get the imports.
|
Boolean |
getMaster(String configname)
Get the master flag.
|
IMonitoringService.PublishEventLevel |
getMonitoring(String configname)
Get the monitoring flag.
|
String |
getName()
Get the name.
|
List<NFPropertyInfo> |
getNFProperties()
Get the nfproperties.
|
String |
getPackage()
Get the package name.
|
Map<String,Object> |
getProperties()
Get the properties.
|
Object |
getProperty(String name,
ClassLoader cl)
Get a parsed property.
|
ProvidedServiceInfo[] |
getProvidedServices()
Get the provided services.
|
IErrorReport |
getReport()
Get the report.
|
RequiredServiceInfo |
getRequiredService(String name)
Get the required service.
|
RequiredServiceInfo[] |
getRequiredServices()
Get the required services.
|
IResourceIdentifier |
getResourceIdentifier()
Return the resource identifier.
|
IArgument |
getResult(String name)
Get a result per name.
|
IArgument[] |
getResults()
Get the results.
|
SubcomponentTypeInfo[] |
getSubcomponentTypes()
Get the subcomponent names.
|
Boolean |
getSuspend(String configname)
Get the suspend flag.
|
Boolean |
getSynchronous(String configname)
Get the synchronous flag.
|
String |
getType()
Get the model type.
|
boolean |
isStartable()
Is the model startable.
|
void |
removeProvidedService(ProvidedServiceInfo providedservice)
Remove a provided service.
|
void |
removeRequiredService(RequiredServiceInfo requiredservice)
Remove a required service.
|
void |
setArguments(IArgument[] arguments)
Set the arguments.
|
void |
setConfigurations(ConfigurationInfo[] configurations)
Set the configurations.
|
void |
setExtensiontypes(Object[] extensions)
Set the extension types.
|
void |
setFilename(String filename)
Set the filename.
|
void |
setImports(String[] imports)
Set the imports.
|
void |
setName(String name)
Set the name.
|
void |
setNFProperties(List<NFPropertyInfo> nfproperties)
Set the nfproperties.
|
void |
setPackage(String packagename)
Set the packagename.
|
void |
setProperties(Map<String,Object> properties)
Set the properties.
|
void |
setProvidedServices(ProvidedServiceInfo[] providedservices)
Set the provided services.
|
void |
setReport(IErrorReport report)
Set the report.
|
void |
setRequiredServices(RequiredServiceInfo[] requiredservices)
Set the required services.
|
void |
setResourceIdentifier(IResourceIdentifier rid)
Set the resource identifier.
|
void |
setResults(IArgument[] results)
Set the results.
|
void |
setStartable(boolean startable)
Set the startable.
|
void |
setSubcomponentTypes(SubcomponentTypeInfo[] subcomponents)
Set the subcomponent types.
|
void |
setType(String type)
Set the component type.
|
getAutoShutdown, getDaemon, getDescription, getMaster, getMonitoring, getSuspend, getSynchronous, setAutoShutdown, setDaemon, setDescription, setMaster, setMonitoring, setSuspend, setSynchronous
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription
public ModelInfo()
public ModelInfo(String name, String packagename, String description, IErrorReport report, IArgument[] arguments, IArgument[] results, boolean startable, String filename, Map<String,Object> properties, ClassLoader classloader, RequiredServiceInfo[] requiredservices, ProvidedServiceInfo[] providedservices, ConfigurationInfo[] configurations, SubcomponentTypeInfo[] subcomponents, String[] imports, IResourceIdentifier rid)
public String getName()
getName
in interface IModelInfo
public String getPackage()
getPackage
in interface IModelInfo
public String getFullName()
getFullName
in interface IModelInfo
public String[] getImports()
getImports
in interface IModelInfo
public String[] getAllImports()
getAllImports
in interface IModelInfo
public void addImport(String imp)
public IErrorReport getReport()
getReport
in interface IModelInfo
public String[] getConfigurationNames()
getConfigurationNames
in interface IModelInfo
public ConfigurationInfo[] getConfigurations()
getConfigurations
in interface IModelInfo
public ConfigurationInfo getConfiguration(String name)
getConfiguration
in interface IModelInfo
public IArgument[] getArguments()
getArguments
in interface IModelInfo
public IArgument getArgument(String name)
getArgument
in interface IModelInfo
name
- The name.public IArgument[] getResults()
getResults
in interface IModelInfo
public IArgument getResult(String name)
getResult
in interface IModelInfo
name
- The name.public boolean isStartable()
isStartable
in interface IModelInfo
public String getType()
getType
in interface IModelInfo
public String getFilename()
getFilename
in interface IModelInfo
public Map<String,Object> getProperties()
getProperties
in interface IModelInfo
public Object getProperty(String name, ClassLoader cl)
getProperty
in interface IModelInfo
name
- The property name.public List<NFPropertyInfo> getNFProperties()
getNFProperties
in interface IModelInfo
public void setNFProperties(List<NFPropertyInfo> nfproperties)
nfproperties
- The nfproperties to set.public IResourceIdentifier getResourceIdentifier()
getResourceIdentifier
in interface IModelInfo
public void setName(String name)
name
- The name to set.public void setPackage(String packagename)
packagename
- The packagename to set.public void setReport(IErrorReport report)
report
- The report to set.public void setImports(String[] imports)
imports
- The imports to set.public void setConfigurations(ConfigurationInfo[] configurations)
configurations
- The configurations to set.public void addConfiguration(ConfigurationInfo configuration)
configuration
- The configuration.public void setArguments(IArgument[] arguments)
arguments
- The arguments to set.public void addArgument(IArgument argument)
argument
- The argument.public void setResults(IArgument[] results)
results
- The results to set.public void addResult(IArgument result)
result
- The result.public void setStartable(boolean startable)
startable
- The startable to set.public void setFilename(String filename)
filename
- The filename to set.public void setType(String type)
type
- The component type to set.public void setProperties(Map<String,Object> properties)
properties
- The properties to set.public void addProperty(UnparsedExpression unexp)
public RequiredServiceInfo[] getRequiredServices()
getRequiredServices
in interface IModelInfo
public void setResourceIdentifier(IResourceIdentifier rid)
rid
- The resource identifier to set.public void setRequiredServices(RequiredServiceInfo[] requiredservices)
required
- services The required services to set.public RequiredServiceInfo getRequiredService(String name)
getRequiredService
in interface IModelInfo
public void addRequiredService(RequiredServiceInfo requiredservice)
requiredservice
- The required service.public void removeRequiredService(RequiredServiceInfo requiredservice)
requiredservice
- The required service.public ProvidedServiceInfo[] getProvidedServices()
getProvidedServices
in interface IModelInfo
public void setProvidedServices(ProvidedServiceInfo[] providedservices)
provided
- services The provided services to set.public void addProvidedService(ProvidedServiceInfo providedservice)
providedservice
- The provided service.public void removeProvidedService(ProvidedServiceInfo providedservice)
providedservice
- The provided service.public Boolean getMaster(String configname)
getMaster
in interface IModelInfo
configname
- The configname.public Boolean getDaemon(String configname)
getDaemon
in interface IModelInfo
configname
- The configname.public Boolean getAutoShutdown(String configname)
getAutoShutdown
in interface IModelInfo
configname
- The configname.public Boolean getSuspend(String configname)
getSuspend
in interface IModelInfo
configname
- The configname.public IMonitoringService.PublishEventLevel getMonitoring(String configname)
getMonitoring
in interface IModelInfo
configname
- The configname.public Boolean getSynchronous(String configname)
getSynchronous
in interface IModelInfo
synchronous
- The synchronous.public SubcomponentTypeInfo[] getSubcomponentTypes()
getSubcomponentTypes
in interface IModelInfo
public void setSubcomponentTypes(SubcomponentTypeInfo[] subcomponents)
public void addSubcomponentType(SubcomponentTypeInfo subcomponent)
subcomponent
- The subcomponent type.public Object[] getExtensionTypes()
getExtensionTypes
in interface IModelInfo
public void setExtensiontypes(Object[] extensions)
public void addExtensiontype(Object extension)
extension
- The extension type.public boolean checkName()
public boolean checkPackage()
Copyright © 2013. All Rights Reserved.