com.android.sdklib.repositoryv2.meta
Class Library

java.lang.Object
  extended by com.android.sdklib.repositoryv2.meta.Library
All Implemented Interfaces:
IAndroidTarget.OptionalLibrary
Direct Known Subclasses:
LibraryType

public abstract class Library
extends java.lang.Object
implements IAndroidTarget.OptionalLibrary

Information about a IAndroidTarget.OptionalLibrary provided by a package.


Constructor Summary
Library()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
abstract  java.lang.String getDescription()
          User-friendly description of the library.
 java.io.File getJar()
          Absolute path to the library jar file.
abstract  java.lang.String getName()
          The name of the library.
 int hashCode()
           
abstract  boolean isManifestEntryRequired()
          Whether a manifest entry is required for this library.
abstract  void setDescription(java.lang.String description)
           
abstract  void setLocalJarPath(java.lang.String path)
           
abstract  void setManifestEntryRequired(java.lang.Boolean b)
           
abstract  void setName(java.lang.String name)
           
 void setPackagePath(java.io.File packagePath)
          Sets the path of the containing package.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.android.sdklib.IAndroidTarget.OptionalLibrary
getLocalJarPath
 

Constructor Detail

Library

public Library()
Method Detail

setPackagePath

public void setPackagePath(@NonNull
                           java.io.File packagePath)
Sets the path of the containing package. Must be called before calling getJar().


getJar

@Nullable
public java.io.File getJar()
Absolute path to the library jar file. Will be null when a legacy remote package is installed.

Specified by:
getJar in interface IAndroidTarget.OptionalLibrary

getName

@NonNull
public abstract java.lang.String getName()
The name of the library.

Specified by:
getName in interface IAndroidTarget.OptionalLibrary

getDescription

@NonNull
public abstract java.lang.String getDescription()
User-friendly description of the library.

Specified by:
getDescription in interface IAndroidTarget.OptionalLibrary

isManifestEntryRequired

public abstract boolean isManifestEntryRequired()
Whether a manifest entry is required for this library.

Specified by:
isManifestEntryRequired in interface IAndroidTarget.OptionalLibrary

setLocalJarPath

public abstract void setLocalJarPath(java.lang.String path)

setDescription

public abstract void setDescription(java.lang.String description)

setName

public abstract void setName(java.lang.String name)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setManifestEntryRequired

public abstract void setManifestEntryRequired(java.lang.Boolean b)