public class ModelInfo extends Startable implements IModelInfo
| Modifier and Type | Field and Description | 
|---|---|
| protected java.lang.String[] | allimportsAll imports (cached for speed). | 
| protected java.util.List<IArgument> | argumentsThe arguments. | 
| protected java.lang.String[] | breakpointsThe breakpoints. | 
| protected java.lang.ClassLoader | classloaderThe classloader. | 
| protected java.util.List<ConfigurationInfo> | configurationsThe configurations. | 
| protected IComponentFeatureFactory[] | featuresThe component features. | 
| protected java.lang.String | filenameThe filename. | 
| protected java.lang.String | fullnameThe full name (cached for speed). | 
| protected java.util.List<java.lang.String> | importsThe imports. | 
| protected java.lang.String | nameThe name. | 
| protected java.util.List<NFPropertyInfo> | nfpropertiesThe nf properties. | 
| protected java.lang.String | packagenameThe package. | 
| protected java.util.Map<java.lang.String,java.lang.Object> | propertiesThe properties. | 
| protected java.util.List<ProvidedServiceInfo> | providedservicesThe provided services. | 
| protected java.lang.Object | rawmodelThe raw model. | 
| protected IErrorReport | reportThe report. | 
| protected java.util.Map<java.lang.String,RequiredServiceInfo> | requiredservicesThe required services. | 
| protected java.util.List<IArgument> | resultsThe results. | 
| protected IResourceIdentifier | ridThe resource identifier. | 
| protected boolean | startableFlag if startable. | 
| protected java.util.List<SubcomponentTypeInfo> | subcomponentsThe subcomponent types. | 
| protected java.lang.String | typeThe 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 | 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. | 
| 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.Boolean | getAutoShutdown(java.lang.String configname)Get the autoshutdown flag. | 
| 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. | 
| java.lang.Boolean | getDaemon(java.lang.String configname)Get the daemon flag. | 
| 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.Boolean | getKeepalive(java.lang.String configname)Get the keepalive flag. | 
| java.lang.Boolean | getMaster(java.lang.String configname)Get the master flag. | 
| IMonitoringService.PublishEventLevel | getMonitoring(java.lang.String configname)Get the monitoring flag. | 
| java.lang.String | getName()Get the name. | 
| java.util.List<NFPropertyInfo> | getNFProperties()Get the nfproperties. | 
| java.lang.String | getPackage()Get the package name. | 
| java.lang.Boolean | getPersistable(java.lang.String configname)Get the persistable flag. | 
| 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. | 
| RequiredServiceInfo | getRequiredService(java.lang.String name)Get the required service. | 
| RequiredServiceInfo[] | getRequiredServices()Get the required services. | 
| IResourceIdentifier | getResourceIdentifier()Return the resource identifier. | 
| IArgument | getResult(java.lang.String name)Get a result per name. | 
| IArgument[] | getResults()Get the results. | 
| SubcomponentTypeInfo[] | getSubcomponentTypes()Get the subcomponent names. | 
| 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 | setName(java.lang.String name)Set the name. | 
| void | setNFProperties(java.util.List<NFPropertyInfo> nfproperties)Set the nfproperties. | 
| void | setPackage(java.lang.String packagename)Set the packagename. | 
| 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 | setType(java.lang.String type)Set the component type. | 
getAutoShutdown, getDaemon, getDescription, getKeepalive, getMaster, getMonitoring, getPersistable, getScope, getSuspend, getSynchronous, setAutoShutdown, setDaemon, setDescription, setKeepalive, setMaster, setMonitoring, setPersistable, setScope, setSuspend, setSynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescriptionprotected java.lang.String name
protected java.lang.String packagename
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
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 IModelInfopublic java.lang.String getPackage()
getPackage in interface IModelInfopublic java.lang.String getFullName()
getFullName in interface IModelInfopublic java.lang.String[] getImports()
getImports in interface IModelInfopublic java.lang.String[] getAllImports()
getAllImports in interface IModelInfopublic void addImport(java.lang.String imp)
public IErrorReport getReport()
getReport in interface IModelInfopublic java.lang.String[] getConfigurationNames()
getConfigurationNames in interface IModelInfopublic ConfigurationInfo[] getConfigurations()
getConfigurations in interface IModelInfopublic ConfigurationInfo getConfiguration(java.lang.String name)
getConfiguration in interface IModelInfopublic IArgument[] getArguments()
getArguments in interface IModelInfopublic IArgument getArgument(java.lang.String name)
getArgument in interface IModelInfoname - The name.public IArgument[] getResults()
getResults in interface IModelInfopublic IArgument getResult(java.lang.String name)
getResult in interface IModelInfoname - The name.public boolean isStartable()
isStartable in interface IModelInfopublic java.lang.String getType()
getType in interface IModelInfopublic java.lang.String getFilename()
getFilename in interface IModelInfopublic java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties in interface IModelInfopublic java.lang.Object getProperty(java.lang.String name,
                                    java.lang.ClassLoader cl)
getProperty in interface IModelInfoname - The property name.public java.lang.ClassLoader getClassLoader()
public java.util.List<NFPropertyInfo> getNFProperties()
getNFProperties in interface IModelInfopublic void setNFProperties(java.util.List<NFPropertyInfo> nfproperties)
nfproperties - The nfproperties to set.public void addNFProperty(NFPropertyInfo pi)
public IResourceIdentifier getResourceIdentifier()
getResourceIdentifier in interface IModelInfopublic void setName(java.lang.String name)
name - The name to set.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[] getRequiredServices()
getRequiredServices in interface IModelInfopublic 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(java.lang.String name)
getRequiredService in interface IModelInfopublic void addRequiredService(RequiredServiceInfo requiredservice)
requiredservice - The required service.public void removeRequiredService(RequiredServiceInfo requiredservice)
requiredservice - The required service.public ProvidedServiceInfo[] getProvidedServices()
getProvidedServices in interface IModelInfopublic 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 getMaster(java.lang.String configname)
getMaster in interface IModelInfoconfigname - The configname.public java.lang.Boolean getDaemon(java.lang.String configname)
getDaemon in interface IModelInfoconfigname - The configname.public java.lang.Boolean getAutoShutdown(java.lang.String configname)
getAutoShutdown in interface IModelInfoconfigname - The configname.public java.lang.Boolean getSynchronous(java.lang.String configname)
getSynchronous in interface IModelInfosynchronous - The synchronous.public java.lang.Boolean getPersistable(java.lang.String configname)
getPersistable in interface IModelInfopersistable - The persistable.public java.lang.Boolean getSuspend(java.lang.String configname)
getSuspend in interface IModelInfoconfigname - The configname.public java.lang.Boolean getKeepalive(java.lang.String configname)
getKeepalive in interface IModelInfoconfigname - The configname.public IMonitoringService.PublishEventLevel getMonitoring(java.lang.String configname)
getMonitoring in interface IModelInfoconfigname - The configname.public SubcomponentTypeInfo[] getSubcomponentTypes()
getSubcomponentTypes in interface IModelInfopublic void setSubcomponentTypes(SubcomponentTypeInfo[] subcomponents)
public void addSubcomponentType(SubcomponentTypeInfo subcomponent)
subcomponent - The subcomponent type.public java.lang.String[] getBreakpoints()
getBreakpoints in interface IModelInfopublic 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 IModelInfopublic void internalSetRawModel(java.lang.Object rawmodel)
rawmodel - The kernel-specific model when loaded locally, null for remote models.public IComponentFeatureFactory[] getFeatures()
getFeatures in interface IModelInfopublic void setFeatures(IComponentFeatureFactory[] features)
features - The features to set