|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.sdklib.internal.repository.sources.SdkSource
com.android.sdklib.internal.repository.sources.SdkAddonSource
public class SdkAddonSource
An sdk-addon source, i.e. a download site for addons and extra packages.
A repository describes one or more Packages available for download.
| Constructor Summary | |
|---|---|
SdkAddonSource(java.lang.String url,
java.lang.String uiName)
Constructs a new source for the given repository URL. |
|
| Method Summary | |
|---|---|
protected org.w3c.dom.Document |
findAlternateToolsXml(java.io.InputStream xml)
This kind of schema does not support forward-evolution of the <tool> element. |
protected java.lang.String[] |
getDefaultXmlFileUrls()
Returns the basename of the default URLs to try to download the XML manifest. |
protected int |
getNsLatestVersion()
Returns SdkRepoConstants.NS_LATEST_VERSION or SdkAddonConstants.NS_LATEST_VERSION. |
protected java.lang.String |
getNsPattern()
Returns SdkRepoConstants.NS_PATTERN or SdkAddonConstants.NS_PATTERN. |
protected java.lang.String |
getNsUri()
Returns SdkRepoConstants.NS_URI or SdkAddonConstants.NS_URI. |
protected java.lang.String |
getRootElementName()
|
protected java.lang.String |
getSchemaUri(int version)
Returns SdkRepoConstants.getSchemaUri() or SdkAddonConstants.getSchemaUri(). |
protected java.io.InputStream |
getXsdStream(int version)
Returns SdkRepoConstants.getXsdStream() or SdkAddonConstants.getXsdStream(). |
boolean |
isAddonSource()
Returns true if this is an addon source. |
boolean |
isSysImgSource()
Returns true if this is a system-image source. |
| Methods inherited from class com.android.sdklib.internal.repository.sources.SdkSource |
|---|
clearPackages, compareTo, equals, getDocument, getFetchError, getLongDescription, getPackages, getShortDescription, getUiName, getUrl, getXmlSchemaVersion, hashCode, isEnabled, load, parsePackages, setEnabled, setPackages, toString, validateXml |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SdkAddonSource(java.lang.String url,
java.lang.String uiName)
url - The source URL. Cannot be null. If the URL ends with a /, the default
addon.xml filename will be appended automatically.uiName - The UI-visible name of the source. Can be null.| Method Detail |
|---|
public boolean isAddonSource()
isAddonSource in class SdkSourcepublic boolean isSysImgSource()
isSysImgSource in class SdkSourceprotected java.lang.String[] getDefaultXmlFileUrls()
SdkSource
getDefaultXmlFileUrls in class SdkSourceprotected int getNsLatestVersion()
SdkSource
getNsLatestVersion in class SdkSourceprotected java.lang.String getNsUri()
SdkSource
getNsUri in class SdkSourceprotected java.lang.String getNsPattern()
SdkSource
getNsPattern in class SdkSourceprotected java.lang.String getSchemaUri(int version)
SdkSource
getSchemaUri in class SdkSourceprotected java.lang.String getRootElementName()
getRootElementName in class SdkSourceprotected java.io.InputStream getXsdStream(int version)
SdkSource
getXsdStream in class SdkSource
protected org.w3c.dom.Document findAlternateToolsXml(@Nullable
java.io.InputStream xml)
findAlternateToolsXml in class SdkSourcexml - The input XML stream. Can be null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||