Show:

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>

Methods

addDatabaseDescriptorPath

(
  • databaseDescriptorPath
)

Add Database Descriptor path as per contained in ApplicationDescriptor.xml file.

Parameters:

  • databaseDescriptorPath String

    DatabaseDescriptor path.

addEvent

(
  • event
)

Add event as per defined in ApplicationDescriptor.xml file.

Parameters:

  • event String

    Event Handler class name.

addProperty

(
  • name
  • value
)

Add Property in property pool.

Parameters:

  • name String

    Name of Property.

  • value String

    value of Property.

addProperty

(
  • name
  • value
)

Add Property in property pool.

Parameters:

  • name String

    Name of Property.

  • value String

    value of Property.

containProperty

(
  • name
)
Boolean

Check whether Property exist or not.

Parameters:

  • name String

    Name of Property.

Returns:

Boolean:

true/false, TRUE if property exist, FALSE if property does not exist.

containProperty

(
  • name
)
Boolean

Check whether Property exist or not.

Parameters:

  • name String

    Name of Property.

Returns:

Boolean:

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:

Array:

It which contains all database descriptor paths.

getDescription

() String

Set Description of Application as per defined in ApplicationDescriptor.xml file.

Returns:

String:

Description of application.

getEvents

() Array

Get all event handlers as per defined in ApplicationDescriptor.xml file.

Returns:

Array:

All event handlers defined in ApplicationDescriptor.xml file

getHandlers

() Array

Get All Handler defined in descriptors.

Returns:

Array:

All Handlers.

getHandlers

(
  • handler
)

Add Handler.

Parameters:

  • handler Handler

    Handler.

getName

() String

Get Application Descriptor Name as per defined in ApplicationDescriptor.xml file.

Returns:

String:

Application Descriptor Name.

getProperties

() Array

Get all Properties defined in descriptor.

Returns:

Array:

All Property Values.

getProperties

() Array

Get all Properties defined in descriptor.

Returns:

Array:

All Property Values.

getProperty

(
  • name
)
String

Get Property based on name provided.

Parameters:

  • name String

    Name of Property.

Returns:

String:

Property value.

getProperty

(
  • name
)
String

Get Property based on name provided.

Parameters:

  • name String

    Name of Property.

Returns:

String:

Property value.

getVersion

() String

Get Version of Application as per defined in ApplicationDescriptor.xml file.

Returns:

String:

Version of application.

removeProperty

(
  • name
)

Remove Property from property pool.

Parameters:

  • name String

    Name of Property.

removeProperty

(
  • name
)

Remove Property from property pool.

Parameters:

  • name String

    Name of Property.

setDescription

(
  • description
)

Set Description of Application as per defined in ApplicationDescriptor.xml file.

Parameters:

  • description String

    Description of application.

setName

(
  • name
)

Set Application Descriptor Name as per defined in ApplicationDescriptor.xml file.

Parameters:

  • name String

    Name of Application Descriptor.

setVersion

(
  • version
)

Set Version of Application as per defined in ApplicationDescriptor.xml file.

Parameters:

  • version String

    Version of application.