com.android.sdklib.repository
Class SdkAddonConstants

java.lang.Object
  extended by com.android.sdklib.repository.RepoConstants
      extended by com.android.sdklib.repository.SdkAddonConstants

public class SdkAddonConstants
extends RepoConstants

Public constants for the sdk-addon XML Schema.


Field Summary
static java.lang.String NODE_ADD_ON
          An add-on package.
static java.lang.String NODE_EXTRA
          An extra package.
static java.lang.String NODE_SDK_ADDON
          The root sdk-addon element
static java.lang.String[] NODES
          List of possible nodes in a repository XML.
static int NS_LATEST_VERSION
          The latest version of the sdk-addon XML Schema.
static java.lang.String NS_PATTERN
          The pattern of our sdk-addon XML namespace.
static java.lang.String NS_URI
          The XML namespace of the latest sdk-addon XML.
static java.lang.String URL_DEFAULT_FILENAME
          The default name looked for by SdkSource when trying to load an sdk-addon XML if the URL doesn't match an existing resource.
 
Fields inherited from class com.android.sdklib.repository.RepoConstants
ATTR_ARCH, ATTR_ID, ATTR_OS, ATTR_REF, ATTR_TYPE, FD_TEMP, NODE_ABI, NODE_ABI_INCLUDED, NODE_API, NODE_API_LEVEL, NODE_ARCHIVE, NODE_ARCHIVES, NODE_CHECKSUM, NODE_CODENAME, NODE_DESC_URL, NODE_DESCRIPTION, NODE_LAYOUT_LIB, NODE_LIB, NODE_LIBS, NODE_LICENSE, NODE_MIN_API_LEVEL, NODE_MIN_PLATFORM_TOOLS_REV, NODE_MIN_TOOLS_REV, NODE_NAME, NODE_NAME_DISPLAY, NODE_NAME_ID, NODE_OBSOLETE, NODE_OLD_PATHS, NODE_PATH, NODE_PROJECT_FILES, NODE_RELEASE_NOTE, NODE_RELEASE_URL, NODE_REVISION, NODE_SIZE, NODE_SYSTEM_IMAGE, NODE_URL, NODE_USES_LICENSE, NODE_VENDOR, NODE_VENDOR_DISPLAY, NODE_VENDOR_ID, NODE_VERSION, SHA1_CHECKSUM_LEN, SHA1_TYPE
 
Constructor Summary
SdkAddonConstants()
           
 
Method Summary
static java.lang.String getSchemaUri(int version)
          Returns the URI of the sdk-addon schema for the given version number.
static java.io.InputStream getXsdStream(int version)
          Returns a stream to the requested sdk-addon XML Schema.
 
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

NS_LATEST_VERSION

public static final int NS_LATEST_VERSION
The latest version of the sdk-addon XML Schema. Valid version numbers are between 1 and this number, included.

See Also:
Constant Field Values

URL_DEFAULT_FILENAME

public static final java.lang.String URL_DEFAULT_FILENAME
The default name looked for by SdkSource when trying to load an sdk-addon XML if the URL doesn't match an existing resource.

See Also:
Constant Field Values

NS_PATTERN

public static final java.lang.String NS_PATTERN
The pattern of our sdk-addon XML namespace. Matcher's group(1) is the schema version (integer).

See Also:
Constant Field Values

NS_URI

public static final java.lang.String NS_URI
The XML namespace of the latest sdk-addon XML.


NODE_SDK_ADDON

public static final java.lang.String NODE_SDK_ADDON
The root sdk-addon element

See Also:
Constant Field Values

NODE_ADD_ON

public static final java.lang.String NODE_ADD_ON
An add-on package.

See Also:
Constant Field Values

NODE_EXTRA

public static final java.lang.String NODE_EXTRA
An extra package.

See Also:
Constant Field Values

NODES

public static final java.lang.String[] NODES
List of possible nodes in a repository XML. Used to populate options automatically in the no-GUI mode.

Constructor Detail

SdkAddonConstants

public SdkAddonConstants()
Method Detail

getXsdStream

public static java.io.InputStream getXsdStream(int version)
Returns a stream to the requested sdk-addon XML Schema.

Parameters:
version - Between 1 and NS_LATEST_VERSION, included.
Returns:
An InputStream object for the local XSD file or null if there is no schema for the requested version.

getSchemaUri

public static java.lang.String getSchemaUri(int version)
Returns the URI of the sdk-addon schema for the given version number.

Parameters:
version - Between 1 and NS_LATEST_VERSION included.