| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.sdklib.repository.RepoConstants
com.android.sdklib.repository.SdkRepoConstants
public class SdkRepoConstants
Public constants for the sdk-repository XML Schema.
| Field Summary | |
|---|---|
| static java.lang.String | NODE_BUILD_TOOLA build-tool package. | 
| static java.lang.String | NODE_DOCA doc package. | 
| static java.lang.String | NODE_MAJOR_REV | 
| static java.lang.String | NODE_MICRO_REV | 
| static java.lang.String | NODE_MINOR_REV | 
| static java.lang.String | NODE_PLATFORMA platform package. | 
| static java.lang.String | NODE_PLATFORM_TOOLA platform-tool package. | 
| static java.lang.String | NODE_PREVIEW | 
| static java.lang.String | NODE_SAMPLEA sample package. | 
| static java.lang.String | NODE_SDK_REPOSITORYThe root sdk-repository element | 
| static java.lang.String | NODE_SOURCEA source package. | 
| static java.lang.String | NODE_TOOLA tool package. | 
| static java.lang.String[] | NODESList of possible nodes in a repository XML. | 
| static int | NS_LATEST_VERSIONThe latest version of the sdk-repository XML Schema. | 
| static java.lang.String | NS_PATTERNThe pattern of our sdk-repository XML namespace. | 
| static int | NS_SERVER_MIN_VERSIONThe min version of the sdk-repository XML Schema we'll try to load. | 
| static java.lang.String | NS_URIThe XML namespace of the latest sdk-repository XML. | 
| static java.lang.String | URL_DEFAULT_FILENAMEThe default name looked for by SdkSourcewhen trying to load an
 sdk-repository XML if the URL doesn't match an existing resource. | 
| static java.lang.String | URL_FILENAME_PATTERNThe pattern name looked by SdkSourcewhen trying to load
 an sdk-repository XML that is specific to a given XSD revision. | 
| static java.lang.String | URL_GOOGLE_SDK_SITEThe URL of the official Google sdk-repository site. | 
| Constructor Summary | |
|---|---|
| SdkRepoConstants() | |
| Method Summary | |
|---|---|
| static java.lang.String | getSchemaUri(int version)Returns the URI of the SDK Repository schema for the given version number. | 
| static java.io.InputStream | getXsdStream(int version)Returns a stream to the requested sdk-repositoryXML Schema. | 
| static boolean | versionGreaterOrEqualThan(java.lang.String nsUri,
                          int minVersion)Checks whether the schema version is greater or equal to the specified one. | 
| Methods inherited from class com.android.sdklib.repository.RepoConstants | 
|---|
| getXsdStream | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final int NS_LATEST_VERSION
public static final int NS_SERVER_MIN_VERSION
NS_LATEST_VERSION down to this revision.
 We only introduced the "repository-N.xml" pattern start with revision
 5, so we know that our server will never contain a repository
 XML with a schema version lower than this one.
public static final java.lang.String URL_GOOGLE_SDK_SITE
public static final java.lang.String URL_DEFAULT_FILENAME
SdkSource when trying to load an
 sdk-repository XML if the URL doesn't match an existing resource.
public static final java.lang.String URL_FILENAME_PATTERN
SdkSource when trying to load
 an sdk-repository XML that is specific to a given XSD revision.
 
 This must be used with String.format(String, Object...) with
 one integer parameter between 1 and NS_LATEST_VERSION.
public static final java.lang.String NS_PATTERN
public static final java.lang.String NS_URI
public static final java.lang.String NODE_SDK_REPOSITORY
public static final java.lang.String NODE_MAJOR_REV
public static final java.lang.String NODE_MINOR_REV
public static final java.lang.String NODE_MICRO_REV
public static final java.lang.String NODE_PREVIEW
public static final java.lang.String NODE_PLATFORM
public static final java.lang.String NODE_TOOL
public static final java.lang.String NODE_PLATFORM_TOOL
public static final java.lang.String NODE_BUILD_TOOL
public static final java.lang.String NODE_DOC
public static final java.lang.String NODE_SAMPLE
public static final java.lang.String NODE_SOURCE
public static final java.lang.String[] NODES
| Constructor Detail | 
|---|
public SdkRepoConstants()
| Method Detail | 
|---|
public static java.io.InputStream getXsdStream(int version)
sdk-repository XML Schema.
version - Between 1 and NS_LATEST_VERSION, included.
InputStream object for the local XSD file or
         null if there is no schema for the requested version.public static java.lang.String getSchemaUri(int version)
version - Between 1 and NS_LATEST_VERSION included.
public static boolean versionGreaterOrEqualThan(@NonNull
                                                java.lang.String nsUri,
                                                int minVersion)
nsUri - A non-null sdk-repository schema URI.minVersion - The minimum version accepted.
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||