Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.library.model.impl
Class MidletLibrary

java.lang.Object
  extended by org.eclipse.mtj.core.library.model.impl.MidletLibrary
All Implemented Interfaces:
ILibrary

public final class MidletLibrary
extends Object
implements ILibrary

Representation of the MIDlet libraries that are provided by 3rd party vendors.

Since:
0.9.1

Constructor Summary
MidletLibrary(IConfigurationElement configurationElement)
          Creates a new configurationElement based on the informed IConfigurationElement.
MidletLibrary(String identifier, String name, String description, Visibility visibility, Version version, LicenceInfo licence, SecurityInfo security)
          Creates a new MidletLibrary
 
Method Summary
 void addClasspathEntry(IClasspathEntry libraryItem)
          Appends the specified element to the end of the ClasspathEntry List.
 boolean equals(Object obj)
           
 List<IClasspathEntry> getClasspathEntryList()
           
 String getDescription()
           
 String getIdentifier()
           
 LicenceInfo getLicence()
           
 String getName()
           
 SecurityInfo getSecurity()
           
 Version getVersion()
           
 Visibility getVisibility()
           
 int hashCode()
           
 void removeClasspathEntry(IClasspathEntry libraryItem)
          Removes the first occurrence in the LibraryItem List of the specified element.
 void setClasspathEntryList(List<IClasspathEntry> libraryItemList)
           
 void setDescription(String description)
           
 void setIdentifier(String identifier)
           
 void setName(String name)
           
 void setVersion(Version version)
           
 void setVisibility(Visibility visibility)
          Sets the visibility for the library.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidletLibrary

public MidletLibrary(IConfigurationElement configurationElement)
              throws IllegalArgumentException
Creates a new configurationElement based on the informed IConfigurationElement.

Parameters:
configurationElement -
Throws:
IllegalArgumentException

MidletLibrary

public MidletLibrary(String identifier,
                     String name,
                     String description,
                     Visibility visibility,
                     Version version,
                     LicenceInfo licence,
                     SecurityInfo security)
              throws IllegalArgumentException
Creates a new MidletLibrary

Parameters:
identifier -
name -
description -
version -
licence -
Throws:
IllegalArgumentException
Method Detail

addClasspathEntry

public void addClasspathEntry(IClasspathEntry libraryItem)
Description copied from interface: ILibrary
Appends the specified element to the end of the ClasspathEntry List.

Specified by:
addClasspathEntry in interface ILibrary
Parameters:
libraryItem - element to be appended to the ClasspathEntry List.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getClasspathEntryList

public List<IClasspathEntry> getClasspathEntryList()
Specified by:
getClasspathEntryList in interface ILibrary
Returns:
the classpathEntry

getDescription

public String getDescription()
Specified by:
getDescription in interface ILibrary
Returns:

getIdentifier

public String getIdentifier()
Specified by:
getIdentifier in interface ILibrary
Returns:
Returns the identifier.

getLicence

public LicenceInfo getLicence()
Specified by:
getLicence in interface ILibrary
Returns:
the license.

getName

public String getName()
Specified by:
getName in interface ILibrary
Returns:
Returns the name.

getSecurity

public SecurityInfo getSecurity()
Specified by:
getSecurity in interface ILibrary
Returns:
the security info.

getVersion

public Version getVersion()
Specified by:
getVersion in interface ILibrary
Returns:
Returns the version.

getVisibility

public Visibility getVisibility()
Specified by:
getVisibility in interface ILibrary
Returns:
the visibility for this library.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

removeClasspathEntry

public void removeClasspathEntry(IClasspathEntry libraryItem)
Description copied from interface: ILibrary
Removes the first occurrence in the LibraryItem List of the specified element.

Specified by:
removeClasspathEntry in interface ILibrary
Parameters:
libraryItem - element to be removed from the LibraryItem List, if present.

setClasspathEntryList

public void setClasspathEntryList(List<IClasspathEntry> libraryItemList)
Specified by:
setClasspathEntryList in interface ILibrary
Parameters:
libraryItemList - the classpathEntryList to set

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface ILibrary

setIdentifier

public void setIdentifier(String identifier)
Specified by:
setIdentifier in interface ILibrary
Parameters:
identifier - The identifier to set.

setName

public void setName(String name)
Specified by:
setName in interface ILibrary
Parameters:
name - The name to set.

setVersion

public void setVersion(Version version)
Specified by:
setVersion in interface ILibrary
Parameters:
version - The version to set.

setVisibility

public void setVisibility(Visibility visibility)
Description copied from interface: ILibrary
Sets the visibility for the library.

Specified by:
setVisibility in interface ILibrary

Mobile Tools for Java
Release 1.0