| 
 | Java DTV API 1.3 18-Nov-2009 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Application
Get attributes of an Application. For each application the attributes can be queried including the appId, type, the application name in one or more locales, the priority and visibility, the service, version information, and icon.
AppManager| Field Summary | |
|---|---|
| static int | APP_IXC_SCOPE_SECUREDGlobal scope for inter-xlet communication. | 
| static int | APP_IXC_SCOPE_UNSECUREDUnsecured scope for inter-xlet communication. | 
| static int | APP_TYPE_HTMLApplication type for an HTML application. | 
| static int | APP_TYPE_JAVAApplication type for Java DTV application. | 
| static int | APP_TYPE_NCLApplication type for NCL. | 
| static int | APP_TYPE_RESIDENTApplication type for native or resident applications. | 
| Method Summary | |
|---|---|
|  String | getAppId()Gets the appIdas a string. | 
|  int | getIconFlags()Gets the flags that describe the available sizes of the icons. | 
|  Locator | getIconLocator()Gets the locator for the Icon. | 
|  String | getIxcFullyQualifiedName(String name,
                         int scope)Generates a fully qualified reference to the object namein the given application namespace for the purpose of inter-xlet
 communication (IXC) within a given scope. | 
|  String | getName()Gets the name of the application in the default locale. | 
|  String | getName(String locale)Gets the name of the application in the requested locale. | 
|  String[] | getNameLocales()Gets the locales for which the application has locale specific names. | 
|  int | getPriority()Gets the priority of the application. | 
|  String[] | getProfiles()Gets the application profiles required to run this application. | 
|  Service | getService()Gets the Service of this application. | 
|  int | getType()Gets the application type. | 
|  short[] | getVersion(String appProfile)Gets the version number of the application in the requested profile. | 
|  boolean | isServiceBound()Gets the binding of the Application to the service context. | 
|  boolean | isStartable()Gets the startable flag for the application. | 
|  boolean | isVisible()Gets the visibility of the application to users. | 
| Field Detail | 
|---|
static final int APP_TYPE_JAVA
static final int APP_TYPE_HTML
static final int APP_TYPE_NCL
static final int APP_TYPE_RESIDENT
static final int APP_IXC_SCOPE_SECURED
getIxcFullyQualifiedName(java.lang.String, int), 
Constant Field Valuesstatic final int APP_IXC_SCOPE_UNSECURED
getIxcFullyQualifiedName(java.lang.String, int), 
Constant Field Values| Method Detail | 
|---|
Locator getIconLocator()
int getIconFlags()
String getAppId()
appId as a string.
AppManager.makeApplicationId(int, int)boolean isStartable()
true if the application can be started;
      otherwise false.boolean isServiceBound()
true if the application is bound to the service;
      otherwise false.String[] getProfiles()
short[] getVersion(String appProfile)
appProfile - the profile for which to get the application's version.
Service getService()
null.String getName()
String getName(String locale)
locale - the locale for which to get the application name.
null if it is not available.String[] getNameLocales()
int getPriority()
boolean isVisible()
true if the application is visible to the user;
    false otherwise.int getType()
APP_TYPE_JAVA, APP_TYPE_NCL,
    APP_TYPE_RESIDENT, 
    or ABNT NBR 15606-3:2007 Table 45 Application Types.
String getIxcFullyQualifiedName(String name,
                                int scope)
                                throws NullPointerException,
                                       IllegalArgumentException,
                                       IllegalStateException
name 
 in the given application namespace for the purpose of inter-xlet
 communication (IXC) within a given scope. Refer to the 
 Inter-Application Communication
 section for more details. This reference may then be used as argument
 when calling any methods of the IxcRegistry class.
 Depending on the value of scope, the implementation 
 will generate the corresponding resource locator:
APP_IXC_SCOPE_SECURED: used when sharing
 objects between signed applications. In this scope,
 if the application is unsigned, this method throws an
 IllegalStateException. If the application is signed
 and verified as such, the return value is:/dtv/signed/appId/name".
 APP_IXC_SCOPE_UNSECURED: used when sharing objects
 between any type of applications independently whether they are
 signed or not. In this scope, the fully qualified IXC reference is
 defined as follows:/dtv/ixc/appId/name".
 getAppId()
 An application wishing to build a reference to an object belonging to another application may proceed as follows:
 String appid = ... the application to communicate with;
 String fqn = AppManager
              .getAppManager()
              .getApplication(appid)
              .getIxcFullyQualifiedName("obj", APP_IXC_SCOPE_SECURED);
 ... now lets communicate
 IxcRegistry ixc = IxcRegistry.getRegistry(xletContext);
 ixc.bind(fqn, obj); 
 
scope - Any of the APP_IXC_SCOPE_ constants defined
 by this interface.name - The name identifying the object and that is to be shared.
name.
NullPointerException - If name is null.
IllegalArgumentException - If scope is none of
 the constants starting with APP_IXC_SCOPE_ defined by 
 this interface.
IllegalStateException - If scope is set to
 APP_IXC_SCOPE_SECURED although the application is not
 signed (or verified as such).IxcRegistry| 
 | Java DTV API 1.3 18-Nov-2009 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||