public class Suite
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Suite |
SYSTEM_SUITE
Special object symbolizing the system as
Suite . |
Constructor and Description |
---|
Suite() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAttributes()
Retrieves a list of available JAD / manifest attributes.
|
java.lang.String |
getAttributeValue(java.lang.String name)
Requests JAD attribute value for given attribute name.
|
java.util.List<Suite> |
getDependencies()
Retrieves a list of the shared libraries this
Suite depends on
|
java.lang.String |
getDownloadUrl()
Gets the URL that the suite descriptor was downloaded from.
|
java.util.List<java.lang.String> |
getMIDlets()
Retrieve a list of the applications (application class names) of this suite.
|
java.lang.String |
getName()
Get name for given suite.
|
SuiteType |
getSuiteType()
Get suite type, one of
SuiteType.ST_APPLICATION ,
SuiteType.ST_INVALID ,
SuiteType.ST_LIBRARY , or SuiteType.ST_LINK . |
java.lang.String |
getVendor()
Get vendor name for given suite
|
java.lang.String |
getVersion()
Get the version of the given suite.
|
boolean |
isSuiteState(SuiteStateFlag state)
Checks whether the specified flag is set.
|
boolean |
isTrusted()
Checks if this Suite is trusted or not.
|
void |
setSuiteState(SuiteStateFlag state,
boolean value)
Sets the specified flag to the specified value.
|
public static final Suite SYSTEM_SUITE
Suite
.public java.lang.String getName() throws SuiteNotFoundException
SuiteNotFoundException
- is thrown if the suite was removedpublic java.lang.String getVendor() throws SuiteNotFoundException
SuiteNotFoundException
- is thrown if the suite was removedpublic java.lang.String getVersion() throws SuiteNotFoundException
SuiteNotFoundException
- is thrown if the suite was removedpublic java.lang.String getDownloadUrl() throws SuiteNotFoundException
SuiteNotFoundException
- is thrown if the suite was removedpublic java.util.List<java.lang.String> getAttributes() throws SuiteNotFoundException
SuiteNotFoundException
- is thrown if the suite was removedpublic java.lang.String getAttributeValue(java.lang.String name) throws SuiteNotFoundException
name
- the name of the JAD / manifest attributeSuiteNotFoundException
- is thrown if the suite was removedpublic SuiteType getSuiteType() throws SuiteNotFoundException
SuiteType.ST_APPLICATION
,
SuiteType.ST_INVALID
,
SuiteType.ST_LIBRARY
, or SuiteType.ST_LINK
.SuiteType.ST_APPLICATION
,
SuiteType.ST_INVALID
, SuiteType.ST_LIBRARY
, or
SuiteType.ST_LINK
SuiteNotFoundException
- is thrown if the suite was removedpublic boolean isSuiteState(SuiteStateFlag state) throws SuiteNotFoundException
state
- state flag to be check for, must be one of
SuiteStateFlag.SSF_ENABLED
,
SuiteStateFlag.SSF_HIDDEN
,
SuiteStateFlag.SSF_AVAILABLE
,
SuiteStateFlag.SSF_REMOVE_DENIED
,
SuiteStateFlag.SSF_UPDATE_DENIED
,
SuiteStateFlag.SSF_PREINSTALLED
, or
SuiteStateFlag.SSF_SYSTEM
true
if state flag is set, false
otherwiseSuiteNotFoundException
- is thrown if the suite was removedpublic void setSuiteState(SuiteStateFlag state, boolean value) throws SuiteNotFoundException
state
- state flag to be set, must be one of
SuiteStateFlag.SSF_ENABLED
,
SuiteStateFlag.SSF_HIDDEN
,
SuiteStateFlag.SSF_AVAILABLE
,
SuiteStateFlag.SSF_REMOVE_DENIED
,
SuiteStateFlag.SSF_UPDATE_DENIED
,
SuiteStateFlag.SSF_PREINSTALLED
, or
SuiteStateFlag.SSF_SYSTEM
value
- the value the flag should be set to: true
or
false
SuiteNotFoundException
- is thrown if the suite was removedpublic java.util.List<java.lang.String> getMIDlets() throws SuiteNotFoundException
The first application in the enumeration is the default application
as specified in the MIDlet-1
field.
null
if suite is a librarySuiteNotFoundException
- in case the suite cannot get foundpublic java.util.List<Suite> getDependencies()
public boolean isTrusted()
true
if Suite is trusted false
otherwise.Copyright (c) 2013, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.