ApplicationDescriptor Class
/private/var/user/Documents/App/Hybrid/JavaScript/Siminov/Model/ApplicationDescriptor.js:50
                                Exposes methods to GET and SET Application Descriptor information as per define in ApplicationDescriptor.xml file by application.
Example:
                            <siminov>
                            
                                <property name="name">SIMINOV HYBRID SAMPLE</property>  
                                <property name="description">Siminov Hybrid Sample Application</property>
                                <property name="version">0.9</property>
                            
                                <!-- DATABASE-DESCRIPTORS -->
                                <database-descriptors>
                                    <database-descriptor>DatabaseDescriptor.xml</database-descriptor>
                                </database-descriptors>
                            
                                <!-- SIMINOV EVENTS -->
                                <event-handlers>
                                    <event-handler>siminov.hybrid.sample.events.SiminovEventHandler</event-handler>
                                    <event-handler>siminov.hybrid.sample.events.DatabaseEventHandler</event-handler>
                                </event-handlers>
                                    
                            </siminov>Item Index
Methods
- addDatabaseDescriptorPath
- addEvent
- addProperty
- addProperty
- containProperty
- containProperty
- getDatabaseDescriptorPaths
- getDescription
- getEvents
- getHandlers
- getHandlers
- getName
- getProperties
- getProperties
- getProperty
- getProperty
- getVersion
- removeProperty
- removeProperty
- setDescription
- setName
- setVersion
Methods
addDatabaseDescriptorPath
                                            
                                                    - 
                                                                    databaseDescriptorPath
Add Database Descriptor path as per contained in ApplicationDescriptor.xml file.
Parameters:
- 
                                                                    databaseDescriptorPathStringDatabaseDescriptor path. 
addEvent
                                            
                                                    - 
                                                                    event
Add event as per defined in ApplicationDescriptor.xml file.
Parameters:
- 
                                                                    eventStringEvent Handler class name. 
addProperty
                                            
                                                    - 
                                                                    name
- 
                                                                    value
Add Property in property pool.
addProperty
                                            
                                                    - 
                                                                    name
- 
                                                                    value
Add Property in property pool.
containProperty
                                            
                                                    - 
                                                                    name
Check whether Property exist or not.
Parameters:
- 
                                                                    nameStringName of Property. 
Returns:
true/false, TRUE if property exist, FALSE if property does not exist.
containProperty
                                            
                                                    - 
                                                                    name
Check whether Property exist or not.
Parameters:
- 
                                                                    nameStringName of Property. 
Returns:
true/false, TRUE if property exist, FALSE if property does not exist.
getDatabaseDescriptorPaths
                                            
                                                    ()
                                            
                                                    
                                                        Array
                                                    
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                                
                                            
                                                Get all database descriptor paths as per contained in ApplicationDescriptor.xml file.
Returns:
It which contains all database descriptor paths.
getDescription
                                            
                                                    ()
                                            
                                                    
                                                        String
                                                    
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                                
                                            
                                                Set Description of Application as per defined in ApplicationDescriptor.xml file.
Returns:
Description of application.
getEvents
                                            
                                                    ()
                                            
                                                    
                                                        Array
                                                    
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                                
                                            
                                                Get all event handlers as per defined in ApplicationDescriptor.xml file.
Returns:
All event handlers defined in ApplicationDescriptor.xml file
getHandlers
                                            
                                                    - 
                                                                    handler
Add Handler.
Parameters:
- 
                                                                    handlerHandlerHandler. 
getName
                                            
                                                    ()
                                            
                                                    
                                                        String
                                                    
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                                
                                            
                                                Get Application Descriptor Name as per defined in ApplicationDescriptor.xml file.
Returns:
Application Descriptor Name.
getProperties
                                            
                                                    ()
                                            
                                                    
                                                        Array
                                                    
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                                
                                            
                                                Get all Properties defined in descriptor.
Returns:
All Property Values.
getProperties
                                            
                                                    ()
                                            
                                                    
                                                        Array
                                                    
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                                
                                            
                                                Get all Properties defined in descriptor.
Returns:
All Property Values.
getProperty
                                            
                                                    - 
                                                                    name
Get Property based on name provided.
Parameters:
- 
                                                                    nameStringName of Property. 
Returns:
Property value.
getProperty
                                            
                                                    - 
                                                                    name
Get Property based on name provided.
Parameters:
- 
                                                                    nameStringName of Property. 
Returns:
Property value.
getVersion
                                            
                                                    ()
                                            
                                                    
                                                        String
                                                    
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                                
                                            
                                                Get Version of Application as per defined in ApplicationDescriptor.xml file.
Returns:
Version of application.
removeProperty
                                            
                                                    - 
                                                                    name
Remove Property from property pool.
Parameters:
- 
                                                                    nameStringName of Property. 
removeProperty
                                            
                                                    - 
                                                                    name
Remove Property from property pool.
Parameters:
- 
                                                                    nameStringName of Property. 
setDescription
                                            
                                                    - 
                                                                    description
Set Description of Application as per defined in ApplicationDescriptor.xml file.
Parameters:
- 
                                                                    descriptionStringDescription of application. 
setName
                                            
                                                    - 
                                                                    name
Set Application Descriptor Name as per defined in ApplicationDescriptor.xml file.
Parameters:
- 
                                                                    nameStringName of Application Descriptor. 
setVersion
                                            
                                                    - 
                                                                    version
Set Version of Application as per defined in ApplicationDescriptor.xml file.
Parameters:
- 
                                                                    versionStringVersion of application. 
 Siminov Hybrid
            Siminov Hybrid