Class Library
- java.lang.Object
-
- com.android.sdklib.repository.meta.Library
-
- All Implemented Interfaces:
OptionalLibrary
- Direct Known Subclasses:
LibraryType,LibraryType,LibraryType
public abstract class Library extends java.lang.Object implements OptionalLibrary
Information about aOptionalLibraryprovided by a package.
-
-
Constructor Summary
Constructors Constructor Description Library()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)abstract java.lang.StringgetDescription()User-friendly description of the library.java.nio.file.PathgetJar()Absolute path to the library jar file.abstract java.lang.StringgetName()The name of the library.inthashCode()abstract booleanisManifestEntryRequired()Whether a manifest entry is required for this library.abstract voidsetDescription(java.lang.String description)abstract voidsetLocalJarPath(java.lang.String path)abstract voidsetManifestEntryRequired(java.lang.Boolean b)abstract voidsetName(java.lang.String name)voidsetPackagePath(java.nio.file.Path packagePath)Sets the path of the containing package.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.android.sdklib.OptionalLibrary
getLocalJarPath
-
-
-
-
Method Detail
-
setPackagePath
public void setPackagePath(@NonNull java.nio.file.Path packagePath)Sets the path of the containing package. Must be called before callinggetJar().
-
getJar
@Nullable public java.nio.file.Path getJar()
Absolute path to the library jar file. Will benullwhen a legacy remote package is installed.- Specified by:
getJarin interfaceOptionalLibrary
-
getName
@NonNull public abstract java.lang.String getName()
The name of the library.- Specified by:
getNamein interfaceOptionalLibrary
-
getDescription
@NonNull public abstract java.lang.String getDescription()
User-friendly description of the library.- Specified by:
getDescriptionin interfaceOptionalLibrary
-
isManifestEntryRequired
public abstract boolean isManifestEntryRequired()
Whether a manifest entry is required for this library.- Specified by:
isManifestEntryRequiredin interfaceOptionalLibrary
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setManifestEntryRequired
public abstract void setManifestEntryRequired(java.lang.Boolean b)
-
-