public class ModelInfo extends Startable implements IModelInfo
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
allimports
All imports (cached for speed).
|
protected java.util.List<IArgument> |
arguments
The arguments.
|
protected java.lang.String[] |
breakpoints
The breakpoints.
|
protected java.lang.ClassLoader |
classloader
The classloader.
|
protected java.util.List<ConfigurationInfo> |
configurations
The configurations.
|
protected IComponentFeatureFactory[] |
features
The component features.
|
protected java.lang.String |
filename
The filename.
|
protected java.lang.String |
fullname
The full name (cached for speed).
|
protected java.util.List<java.lang.String> |
imports
The imports.
|
protected java.lang.String |
instancename
Default instance name.
|
protected java.lang.String |
name
The name.
|
protected java.lang.String |
namehint
The name hint for instances of this model.
|
protected java.util.List<NFPropertyInfo> |
nfproperties
The nf properties.
|
protected java.lang.String |
packagename
The package.
|
protected java.lang.String[] |
predecessors
The predecessors.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
properties
The properties.
|
protected java.util.List<ProvidedServiceInfo> |
providedservices
The provided services.
|
protected java.lang.Object |
rawmodel
The raw model.
|
protected IErrorReport |
report
The report.
|
protected java.util.Map<java.lang.String,RequiredServiceInfo> |
requiredservices
The required services.
|
protected java.util.List<IArgument> |
results
The results.
|
protected IResourceIdentifier |
rid
The resource identifier.
|
protected boolean |
startable
Flag if startable.
|
protected java.util.List<SubcomponentTypeInfo> |
subcomponents
The subcomponent types.
|
protected java.lang.String[] |
successors
The predecessors.
|
protected java.lang.String |
type
The type.
|
description
Constructor and Description |
---|
ModelInfo()
Create a new model info.
|
ModelInfo(java.lang.String name,
java.lang.String packagename,
java.lang.String description,
IErrorReport report,
IArgument[] arguments,
IArgument[] results,
boolean startable,
java.lang.String filename,
java.util.Map<java.lang.String,java.lang.Object> properties,
java.lang.ClassLoader classloader,
RequiredServiceInfo[] requiredservices,
ProvidedServiceInfo[] providedservices,
ConfigurationInfo[] configurations,
SubcomponentTypeInfo[] subcomponents,
java.lang.String[] imports,
IResourceIdentifier rid,
java.lang.Object rawmodel,
IComponentFeatureFactory[] features)
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 |
addImport(java.lang.String imp)
Add an import statement.
|
void |
addNFProperty(NFPropertyInfo pi)
Add a non functional property.
|
void |
addPredecessors(java.lang.String[] predecessors)
Adds required predecessors (dependencies).
|
void |
addProperty(java.lang.String name,
java.lang.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.
|
void |
addSuccessors(java.lang.String[] successors)
Adds required predecessors (dependencies).
|
boolean |
checkName()
Check if the specified name matches the file name.
|
boolean |
checkPackage()
Check if the specified package matches the file name.
|
java.lang.String[] |
getAllImports()
Get the imports including the package.
|
IArgument |
getArgument(java.lang.String name)
Get an argument per name.
|
IArgument[] |
getArguments()
Get the arguments.
|
java.lang.String[] |
getBreakpoints()
Get the possible breakpoint places in that model.
|
java.lang.ClassLoader |
getClassLoader()
Return the class loader corresponding to the model.
|
ConfigurationInfo |
getConfiguration(java.lang.String name)
Get a configuration.
|
java.lang.String[] |
getConfigurationNames()
Get the configurations.
|
ConfigurationInfo[] |
getConfigurations()
Get the configurations.
|
IComponentFeatureFactory[] |
getFeatures()
Get the features.
|
java.lang.String |
getFilename()
Get the filename.
|
java.lang.String |
getFullName()
Get the full model name (package.name)
|
java.lang.String[] |
getImports()
Get the imports.
|
java.lang.String |
getInstanceName()
Get the default instance name.
|
java.lang.Boolean |
getKeepalive(java.lang.String configname)
Get the keepalive flag.
|
IMonitoringService.PublishEventLevel |
getMonitoring(java.lang.String configname)
Get the monitoring flag.
|
java.lang.String |
getName()
Get the name.
|
java.lang.String |
getNameHint()
Get the namehint.
|
java.util.List<NFPropertyInfo> |
getNFProperties()
Get the nfproperties.
|
java.lang.String |
getPackage()
Get the package name.
|
java.lang.String[] |
getPredecessors()
Get required predecessors (dependencies).
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Get the properties.
|
java.lang.Object |
getProperty(java.lang.String name,
java.lang.ClassLoader cl)
Get a parsed property.
|
ProvidedServiceInfo[] |
getProvidedServices()
Get the provided services.
|
java.lang.Object |
getRawModel()
Get the kernel-specific model.
|
IErrorReport |
getReport()
Get the report.
|
IResourceIdentifier |
getResourceIdentifier()
Return the resource identifier.
|
IArgument |
getResult(java.lang.String name)
Get a result per name.
|
IArgument[] |
getResults()
Get the results.
|
RequiredServiceInfo |
getService(java.lang.String name)
Get the required service.
|
RequiredServiceInfo[] |
getServices()
Get the required services.
|
SubcomponentTypeInfo[] |
getSubcomponentTypes()
Get the subcomponent names.
|
java.lang.String[] |
getSuccessors()
Get declared successors (dependencies).
|
java.lang.Boolean |
getSuspend(java.lang.String configname)
Get the suspend flag.
|
java.lang.Boolean |
getSynchronous(java.lang.String configname)
Get the synchronous flag.
|
java.lang.String |
getType()
Get the model type.
|
void |
internalSetRawModel(java.lang.Object rawmodel)
Set the kernel-specific model.
|
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 |
setBreakpoints(java.lang.String[] breakpoints)
Set the breakpoints.
|
void |
setClassloader(java.lang.ClassLoader classloader)
Set the classloader.
|
void |
setConfigurations(ConfigurationInfo[] configurations)
Set the configurations.
|
void |
setFeatures(IComponentFeatureFactory[] features)
The features to set.
|
void |
setFilename(java.lang.String filename)
Set the filename.
|
void |
setImports(java.lang.String[] imports)
Set the imports.
|
void |
setInstanceName(java.lang.String instancename)
Set the default instance name.
|
void |
setName(java.lang.String name)
Set the name.
|
void |
setNameHint(java.lang.String namehint)
Set the namehint.
|
void |
setNFProperties(java.util.List<NFPropertyInfo> nfproperties)
Set the nfproperties.
|
void |
setPackage(java.lang.String packagename)
Set the packagename.
|
void |
setPredecessors(java.lang.String[] predecessors)
Set required predecessors (dependencies).
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.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 |
setSuccessors(java.lang.String[] successors)
Set declared successors (dependencies).
|
void |
setType(java.lang.String type)
Set the component type.
|
getDescription, getKeepalive, getMonitoring, getScope, getSuspend, getSynchronous, setDescription, setKeepalive, setMonitoring, setScope, setSuspend, setSynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription
protected java.lang.String name
protected java.lang.String instancename
protected java.lang.String packagename
protected java.lang.String[] predecessors
protected java.lang.String[] successors
protected java.util.List<java.lang.String> imports
protected java.lang.String[] allimports
protected IErrorReport report
protected java.util.List<ConfigurationInfo> configurations
protected java.util.List<IArgument> arguments
protected java.util.List<IArgument> results
protected boolean startable
protected java.lang.String filename
protected java.lang.String type
protected java.lang.String fullname
protected java.util.Map<java.lang.String,java.lang.Object> properties
protected java.util.List<NFPropertyInfo> nfproperties
protected java.lang.ClassLoader classloader
protected java.util.Map<java.lang.String,RequiredServiceInfo> requiredservices
protected java.util.List<ProvidedServiceInfo> providedservices
protected java.util.List<SubcomponentTypeInfo> subcomponents
protected IResourceIdentifier rid
protected java.lang.String[] breakpoints
protected java.lang.Object rawmodel
protected IComponentFeatureFactory[] features
protected java.lang.String namehint
public ModelInfo()
public ModelInfo(java.lang.String name, java.lang.String packagename, java.lang.String description, IErrorReport report, IArgument[] arguments, IArgument[] results, boolean startable, java.lang.String filename, java.util.Map<java.lang.String,java.lang.Object> properties, java.lang.ClassLoader classloader, RequiredServiceInfo[] requiredservices, ProvidedServiceInfo[] providedservices, ConfigurationInfo[] configurations, SubcomponentTypeInfo[] subcomponents, java.lang.String[] imports, IResourceIdentifier rid, java.lang.Object rawmodel, IComponentFeatureFactory[] features)
public java.lang.String getName()
getName
in interface IModelInfo
public java.lang.String getInstanceName()
getInstanceName
in interface IModelInfo
public java.lang.String[] getPredecessors()
getPredecessors
in interface IModelInfo
public java.lang.String[] getSuccessors()
getSuccessors
in interface IModelInfo
public java.lang.String getPackage()
getPackage
in interface IModelInfo
public java.lang.String getFullName()
getFullName
in interface IModelInfo
public java.lang.String[] getImports()
getImports
in interface IModelInfo
public java.lang.String[] getAllImports()
getAllImports
in interface IModelInfo
public void addImport(java.lang.String imp)
public IErrorReport getReport()
getReport
in interface IModelInfo
public java.lang.String[] getConfigurationNames()
getConfigurationNames
in interface IModelInfo
public ConfigurationInfo[] getConfigurations()
getConfigurations
in interface IModelInfo
public ConfigurationInfo getConfiguration(java.lang.String name)
getConfiguration
in interface IModelInfo
public IArgument[] getArguments()
getArguments
in interface IModelInfo
public IArgument getArgument(java.lang.String name)
getArgument
in interface IModelInfo
name
- The name.public IArgument[] getResults()
getResults
in interface IModelInfo
public IArgument getResult(java.lang.String name)
getResult
in interface IModelInfo
name
- The name.public boolean isStartable()
isStartable
in interface IModelInfo
public java.lang.String getType()
getType
in interface IModelInfo
public java.lang.String getFilename()
getFilename
in interface IModelInfo
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties
in interface IModelInfo
public java.lang.Object getProperty(java.lang.String name, java.lang.ClassLoader cl)
getProperty
in interface IModelInfo
name
- The property name.public java.lang.ClassLoader getClassLoader()
public java.util.List<NFPropertyInfo> getNFProperties()
getNFProperties
in interface IModelInfo
public void setNFProperties(java.util.List<NFPropertyInfo> nfproperties)
nfproperties
- The nfproperties to set.public void addNFProperty(NFPropertyInfo pi)
public IResourceIdentifier getResourceIdentifier()
getResourceIdentifier
in interface IModelInfo
public void setName(java.lang.String name)
name
- The name to set.public void setInstanceName(java.lang.String instancename)
instancename
- The instance name.public void addPredecessors(java.lang.String[] predecessors)
public void setPredecessors(java.lang.String[] predecessors)
public void addSuccessors(java.lang.String[] successors)
public void setSuccessors(java.lang.String[] successors)
public void setPackage(java.lang.String packagename)
packagename
- The packagename to set.public void setReport(IErrorReport report)
report
- The report to set.public void setImports(java.lang.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(java.lang.String filename)
filename
- The filename to set.public void setType(java.lang.String type)
type
- The component type to set.public void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
properties
- The properties to set.public void addProperty(java.lang.String name, java.lang.Object value)
public void addProperty(UnparsedExpression unexp)
public void setClassloader(java.lang.ClassLoader classloader)
classloader
- The classloader to set.public RequiredServiceInfo[] getServices()
getServices
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 getService(java.lang.String name)
getService
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 java.lang.Boolean getSynchronous(java.lang.String configname)
getSynchronous
in interface IModelInfo
synchronous
- The synchronous.public java.lang.Boolean getSuspend(java.lang.String configname)
getSuspend
in interface IModelInfo
configname
- The configname.public java.lang.Boolean getKeepalive(java.lang.String configname)
getKeepalive
in interface IModelInfo
configname
- The configname.public IMonitoringService.PublishEventLevel getMonitoring(java.lang.String configname)
getMonitoring
in interface IModelInfo
configname
- The configname.public SubcomponentTypeInfo[] getSubcomponentTypes()
getSubcomponentTypes
in interface IModelInfo
public void setSubcomponentTypes(SubcomponentTypeInfo[] subcomponents)
public void addSubcomponentType(SubcomponentTypeInfo subcomponent)
subcomponent
- The subcomponent type.public java.lang.String[] getBreakpoints()
getBreakpoints
in interface IModelInfo
public void setBreakpoints(java.lang.String[] breakpoints)
breakpoints
- The breakpoints to set.public boolean checkName()
public boolean checkPackage()
public java.lang.Object getRawModel()
getRawModel
in interface IModelInfo
public void internalSetRawModel(java.lang.Object rawmodel)
rawmodel
- The kernel-specific model when loaded locally, null for remote models.public IComponentFeatureFactory[] getFeatures()
getFeatures
in interface IModelInfo
public void setFeatures(IComponentFeatureFactory[] features)
features
- The features to setpublic java.lang.String getNameHint()
getNameHint
in interface IModelInfo
public void setNameHint(java.lang.String namehint)
namehint
- The namehint to set