|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mtj.core.model.library.api.API
public class API
Instances of this class represent the API provided by an ILibrary instance.
| Constructor Summary | |
|---|---|
API()
Construct a new API instance |
|
API(IConfigurationElement configurationElement)
Construct a new API instance for the registry element. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getIdentifier()
|
String |
getName()
|
String |
getPrimaryMatchableClass()
Return the fully-qualifed class name of the primary class for this API that can be used for matching. |
URL[] |
getSkeletonReplacements()
Return the replacement files that are useful for preverification and devices such as MPowerPlayer and microemu. |
APIType |
getType()
|
Version |
getVersion()
|
int |
hashCode()
|
boolean |
isConfiguration()
Return a boolean indicating whether this API is a configuration library. |
boolean |
isProfile()
Return a boolean indicating whether this API is a profile library. |
boolean |
isRegistered()
|
void |
loadUsing(IPersistenceProvider persistenceProvider)
Load the state of this object using the specified persistence state information. |
void |
setIdentifier(String identifier)
|
void |
setName(String name)
|
void |
setPrimaryMatchableClass(String primaryMatchableClass)
Set the fully-qualified class name of the primary class for this API that can be used for matching. |
void |
setRegistered(boolean registered)
|
void |
setSkeletonReplacements(URL[] verifiableReplacements)
Set the replacement files that are useful for preverification. |
void |
setType(APIType type)
|
void |
setVersion(Version version)
|
void |
storeUsing(IPersistenceProvider persistenceProvider)
Save the state of this object using the specified persistence state information. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public API()
public API(IConfigurationElement configurationElement)
throws IOException
configurationElement -
IOException| Method Detail |
|---|
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public String getIdentifier()
public void setIdentifier(String identifier)
identifier - The identifier to set.public String getName()
public String getPrimaryMatchableClass()
public void setName(String name)
name - The name to set.public void setPrimaryMatchableClass(String primaryMatchableClass)
primaryMatchableClass - public APIType getType()
public boolean isRegistered()
public void setRegistered(boolean registered)
registered - public URL[] getSkeletonReplacements()
null if there are not replacements
for this particular API.
public void setType(APIType type)
type - The type to set.public Version getVersion()
public void setSkeletonReplacements(URL[] verifiableReplacements)
verifiableReplacements - public void setVersion(Version version)
version - The version to set.public boolean isConfiguration()
public boolean isProfile()
public void loadUsing(IPersistenceProvider persistenceProvider)
throws PersistenceException
IPersistable
loadUsing in interface IPersistablePersistenceExceptionIPersistable.loadUsing(org.eclipse.mtj.core.persistence.IPersistenceProvider)
public void storeUsing(IPersistenceProvider persistenceProvider)
throws PersistenceException
IPersistable
storeUsing in interface IPersistablePersistenceExceptionIPersistable.storeUsing(org.eclipse.mtj.core.persistence.IPersistenceProvider)public String toString()
toString in class ObjectObject.toString()
|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||