com.android.sdklib.repository
Class RepoConstants

java.lang.Object
  extended by com.android.sdklib.repository.RepoConstants
Direct Known Subclasses:
SdkAddonConstants, SdkRepoConstants, SdkSysImgConstants

public class RepoConstants
extends java.lang.Object

Public constants common to the sdk-repository and sdk-addon XML Schemas.


Field Summary
static java.lang.String ATTR_ID
          A license definition ID.
static java.lang.String ATTR_REF
          A license reference.
static java.lang.String ATTR_TYPE
          An archive checksum type, mandatory.
static java.lang.String FD_TEMP
          Temporary folder used to hold downloads and extract archives during installation.
static java.lang.String LEGACY_ATTR_ARCH
          An optional archive Architecture attribute.
static java.lang.String LEGACY_ATTR_OS
          An archive OS attribute, mandatory.
static java.lang.String NODE_ABI
           
static java.lang.String NODE_ABI_INCLUDED
           
static java.lang.String NODE_API
          The API integer for a layoutlib element.
static java.lang.String NODE_API_LEVEL
          The api-level, an int > 0, for platform, add-on and doc packages.
static java.lang.String NODE_ARCHIVE
          An archive element, for the archives container.
static java.lang.String NODE_ARCHIVES
          The archives container, for all packages.
static java.lang.String NODE_CHECKSUM
          A sha1 archive checksum, as a 40-char hex.
static java.lang.String NODE_CODENAME
          The codename, a string, for platform packages.
static java.lang.String NODE_DESC_URL
          The optional description URL for all packages.
static java.lang.String NODE_DESCRIPTION
          The optional description for all packages or for a lib.
static java.lang.String NODE_HOST_BITS
          Optional element to indicate an archive is only suitable for the specified host bit size.
Values: 32 | 64.
static java.lang.String NODE_HOST_OS
          Optional element to indicate an archive is only suitable for the specified OS.
static java.lang.String NODE_JVM_BITS
          Optional element to indicate an archive is only suitable for the specified JVM bit size.
Values: 32 | 64.
static java.lang.String NODE_LAYOUT_LIB
          A layoutlib package.
static java.lang.String NODE_LIB
          A lib element in a libs container.
static java.lang.String NODE_LIBS
          The libs container, optional for an add-on.
static java.lang.String NODE_LICENSE
          The license definition.
static java.lang.String NODE_LIST_DISPLAY
          The optional string used to display a package in a list view.
static java.lang.String NODE_MIN_API_LEVEL
          The optional minimal API level required by extra packages.
static java.lang.String NODE_MIN_JVM_VERSION
          Optional element to indicate an archive is only suitable for a JVM equal or greater than the specified value.
static java.lang.String NODE_MIN_PLATFORM_TOOLS_REV
          The optional minimal platform-tools revision required by tool packages.
static java.lang.String NODE_MIN_TOOLS_REV
          The optional minimal tools revision required by platform & extra packages.
static java.lang.String NODE_NAME
          The name, a string, for add-on packages or for libraries.
static java.lang.String NODE_NAME_DISPLAY
          The name display string, for add-on packages or for libraries.
static java.lang.String NODE_NAME_ID
          The unique name id string, for add-on packages or for libraries.
static java.lang.String NODE_OBSOLETE
          The optional obsolete qualifier for all packages.
static java.lang.String NODE_OLD_PATHS
          The old_path segments, a string, for extra packages.
static java.lang.String NODE_PATH
          The path segment, a string, for extra packages.
static java.lang.String NODE_PROJECT_FILES
          The optional project-files provided by extra packages.
static java.lang.String NODE_RELEASE_NOTE
          The optional release note for all packages.
static java.lang.String NODE_RELEASE_URL
          The optional release note URL for all packages.
static java.lang.String NODE_REVISION
          The revision, an int > 0, for all packages.
static java.lang.String NODE_SIZE
          An archive size, an int > 0.
static java.lang.String NODE_SYSTEM_IMAGE
          A system-image package.
static java.lang.String NODE_URL
          A download archive URL, either absolute or relative to the repository xml.
static java.lang.String NODE_USES_LICENSE
          The optional uses-license for all packages or for a lib.
static java.lang.String NODE_VENDOR
          The *old* vendor, a string, for add-on and extra packages.
static java.lang.String NODE_VENDOR_DISPLAY
          The vendor display string, for add-on and extra packages.
static java.lang.String NODE_VENDOR_ID
          The unique vendor id string, for add-on and extra packages.
static java.lang.String NODE_VERSION
          The version, a string, for platform packages.
static int SHA1_CHECKSUM_LEN
          Length of a string representing a SHA1 checksum; always 40 characters long.
static java.lang.String SHA1_TYPE
          Type of a sha1 checksum.
 
Constructor Summary
RepoConstants()
           
 
Method Summary
protected static java.io.InputStream getXsdStream(java.lang.String rootElement, int version)
          Returns a stream to the requested XML Schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODE_LICENSE

public static final java.lang.String NODE_LICENSE
The license definition.

See Also:
Constant Field Values

NODE_USES_LICENSE

public static final java.lang.String NODE_USES_LICENSE
The optional uses-license for all packages or for a lib.

See Also:
Constant Field Values

NODE_REVISION

public static final java.lang.String NODE_REVISION
The revision, an int > 0, for all packages.

See Also:
Constant Field Values

NODE_DESCRIPTION

public static final java.lang.String NODE_DESCRIPTION
The optional description for all packages or for a lib.

See Also:
Constant Field Values

NODE_DESC_URL

public static final java.lang.String NODE_DESC_URL
The optional description URL for all packages.

See Also:
Constant Field Values

NODE_RELEASE_NOTE

public static final java.lang.String NODE_RELEASE_NOTE
The optional release note for all packages.

See Also:
Constant Field Values

NODE_RELEASE_URL

public static final java.lang.String NODE_RELEASE_URL
The optional release note URL for all packages.

See Also:
Constant Field Values

NODE_OBSOLETE

public static final java.lang.String NODE_OBSOLETE
The optional obsolete qualifier for all packages.

See Also:
Constant Field Values

NODE_PROJECT_FILES

public static final java.lang.String NODE_PROJECT_FILES
The optional project-files provided by extra packages.

See Also:
Constant Field Values

NODE_SYSTEM_IMAGE

public static final java.lang.String NODE_SYSTEM_IMAGE
A system-image package.

See Also:
Constant Field Values

NODE_ABI_INCLUDED

public static final java.lang.String NODE_ABI_INCLUDED
See Also:
Constant Field Values

NODE_ABI

public static final java.lang.String NODE_ABI
See Also:
Constant Field Values

NODE_MIN_TOOLS_REV

public static final java.lang.String NODE_MIN_TOOLS_REV
The optional minimal tools revision required by platform & extra packages.

See Also:
Constant Field Values

NODE_MIN_PLATFORM_TOOLS_REV

public static final java.lang.String NODE_MIN_PLATFORM_TOOLS_REV
The optional minimal platform-tools revision required by tool packages.

See Also:
Constant Field Values

NODE_MIN_API_LEVEL

public static final java.lang.String NODE_MIN_API_LEVEL
The optional minimal API level required by extra packages.

See Also:
Constant Field Values

NODE_VERSION

public static final java.lang.String NODE_VERSION
The version, a string, for platform packages.

See Also:
Constant Field Values

NODE_API_LEVEL

public static final java.lang.String NODE_API_LEVEL
The api-level, an int > 0, for platform, add-on and doc packages.

See Also:
Constant Field Values

NODE_CODENAME

public static final java.lang.String NODE_CODENAME
The codename, a string, for platform packages.

See Also:
Constant Field Values

NODE_VENDOR

public static final java.lang.String NODE_VENDOR
The *old* vendor, a string, for add-on and extra packages. Replaced by NODE_VENDOR_DISPLAY and NODE_VENDOR_ID in addon-v4.xsd.

See Also:
Constant Field Values

NODE_VENDOR_DISPLAY

public static final java.lang.String NODE_VENDOR_DISPLAY
The vendor display string, for add-on and extra packages.

See Also:
Constant Field Values

NODE_VENDOR_ID

public static final java.lang.String NODE_VENDOR_ID
The unique vendor id string, for add-on and extra packages.

See Also:
Constant Field Values

NODE_NAME

public static final java.lang.String NODE_NAME
The name, a string, for add-on packages or for libraries. Replaced by NODE_NAME_DISPLAY and NODE_NAME_ID in addon-v4.xsd.

See Also:
Constant Field Values

NODE_NAME_DISPLAY

public static final java.lang.String NODE_NAME_DISPLAY
The name display string, for add-on packages or for libraries.

See Also:
Constant Field Values

NODE_NAME_ID

public static final java.lang.String NODE_NAME_ID
The unique name id string, for add-on packages or for libraries.

See Also:
Constant Field Values

NODE_LIST_DISPLAY

public static final java.lang.String NODE_LIST_DISPLAY
The optional string used to display a package in a list view.

See Also:
Constant Field Values

NODE_LAYOUT_LIB

public static final java.lang.String NODE_LAYOUT_LIB
A layoutlib package.

See Also:
Constant Field Values

NODE_API

public static final java.lang.String NODE_API
The API integer for a layoutlib element.

See Also:
Constant Field Values

NODE_LIBS

public static final java.lang.String NODE_LIBS
The libs container, optional for an add-on.

See Also:
Constant Field Values

NODE_LIB

public static final java.lang.String NODE_LIB
A lib element in a libs container.

See Also:
Constant Field Values

NODE_PATH

public static final java.lang.String NODE_PATH
The path segment, a string, for extra packages.

See Also:
Constant Field Values

NODE_OLD_PATHS

public static final java.lang.String NODE_OLD_PATHS
The old_path segments, a string, for extra packages.

See Also:
Constant Field Values

NODE_ARCHIVES

public static final java.lang.String NODE_ARCHIVES
The archives container, for all packages.

See Also:
Constant Field Values

NODE_ARCHIVE

public static final java.lang.String NODE_ARCHIVE
An archive element, for the archives container.

See Also:
Constant Field Values

NODE_SIZE

public static final java.lang.String NODE_SIZE
An archive size, an int > 0.

See Also:
Constant Field Values

NODE_CHECKSUM

public static final java.lang.String NODE_CHECKSUM
A sha1 archive checksum, as a 40-char hex.

See Also:
Constant Field Values

NODE_URL

public static final java.lang.String NODE_URL
A download archive URL, either absolute or relative to the repository xml.

See Also:
Constant Field Values

NODE_HOST_OS

public static final java.lang.String NODE_HOST_OS
Optional element to indicate an archive is only suitable for the specified OS.
Values: windows | macosx | linux.

Since:
repo-10, addon-7 and sys-img-3.
See Also:
Constant Field Values

NODE_HOST_BITS

public static final java.lang.String NODE_HOST_BITS
Optional element to indicate an archive is only suitable for the specified host bit size.
Values: 32 | 64.

Since:
repo-10, addon-7 and sys-img-3.
See Also:
Constant Field Values

NODE_JVM_BITS

public static final java.lang.String NODE_JVM_BITS
Optional element to indicate an archive is only suitable for the specified JVM bit size.
Values: 32 | 64.

Since:
repo-10, addon-7 and sys-img-3.
See Also:
Constant Field Values

NODE_MIN_JVM_VERSION

public static final java.lang.String NODE_MIN_JVM_VERSION
Optional element to indicate an archive is only suitable for a JVM equal or greater than the specified value.
Value format: [1-9](\.[0-9]{1,2}){0,2}, e.g. "1.6", "1.7.0", "1.10" or "2"

Since:
repo-10, addon-7 and sys-img-3.
See Also:
Constant Field Values

ATTR_TYPE

public static final java.lang.String ATTR_TYPE
An archive checksum type, mandatory.

See Also:
Constant Field Values

LEGACY_ATTR_OS

public static final java.lang.String LEGACY_ATTR_OS
An archive OS attribute, mandatory.
Use NODE_HOST_OS instead in repo-10, addon-7 and sys-img-3.

See Also:
Constant Field Values

LEGACY_ATTR_ARCH

public static final java.lang.String LEGACY_ATTR_ARCH
An optional archive Architecture attribute.
Use NODE_JVM_BITS instead in repo-10, addon-7 and sys-img-3.

See Also:
Constant Field Values

ATTR_ID

public static final java.lang.String ATTR_ID
A license definition ID.

See Also:
Constant Field Values

ATTR_REF

public static final java.lang.String ATTR_REF
A license reference.

See Also:
Constant Field Values

SHA1_TYPE

public static final java.lang.String SHA1_TYPE
Type of a sha1 checksum.

See Also:
Constant Field Values

SHA1_CHECKSUM_LEN

public static final int SHA1_CHECKSUM_LEN
Length of a string representing a SHA1 checksum; always 40 characters long.

See Also:
Constant Field Values

FD_TEMP

public static final java.lang.String FD_TEMP
Temporary folder used to hold downloads and extract archives during installation. This folder will be located in the SDK.

See Also:
Constant Field Values
Constructor Detail

RepoConstants

public RepoConstants()
Method Detail

getXsdStream

protected static java.io.InputStream getXsdStream(java.lang.String rootElement,
                                                  int version)
Returns a stream to the requested XML Schema. This is an internal helper. Users of the library should call getXsdStream(String, int) or getXsdStream(String, int).

Parameters:
rootElement - The root of the filename of the XML schema. This is by convention the same as the root element declared by the schema.
version - The XML schema revision number, an integer >= 1.
Returns:
An InputStream object for the local XSD file or null if there is no schema for the requested version.
See Also:
SdkRepoConstants.getXsdStream(int), SdkAddonConstants.getXsdStream(int)