hudson.plugins.android_emulator
Class AndroidEmulator.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<hudson.tasks.BuildWrapper>
      extended by hudson.tasks.BuildWrapperDescriptor
          extended by hudson.plugins.android_emulator.AndroidEmulator.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable, java.io.Serializable
Enclosing class:
AndroidEmulator

@Extension(ordinal=-100.0)
public static final class AndroidEmulator.DescriptorImpl
extends hudson.tasks.BuildWrapperDescriptor
implements java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType
 
Field Summary
 java.lang.String androidHome
          The Android SDK home directory.
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
AndroidEmulator.DescriptorImpl()
           
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
           
 hudson.util.FormValidation doCheckAndroidHome(java.io.File value)
           
 hudson.util.FormValidation doCheckAvdName(java.lang.String value)
           
 hudson.util.FormValidation doCheckDeviceLocale(java.lang.String value)
           
 hudson.util.FormValidation doCheckOsVersion(java.lang.String value)
           
 hudson.util.FormValidation doCheckScreenDensity(java.lang.String value)
           
 hudson.util.FormValidation doCheckScreenResolution(java.lang.String value, java.lang.String density)
           
 hudson.plugins.android_emulator.AndroidPlatform[] getAndroidVersions()
          Used in config.jelly: Lists the OS versions available.
 hudson.plugins.android_emulator.ScreenDensity[] getDeviceDensities()
          Used in config.jelly: Lists the screen densities available.
 hudson.plugins.android_emulator.ScreenResolution[] getDeviceResolutions()
          Used in config.jelly: Lists the screen resolutions available.
 java.lang.String getDisplayName()
           
 java.lang.String[] getEmulatorLocales()
          Used in config.jelly: Lists the locales available.
 java.lang.String getHelpFile()
           
 boolean isApplicable(hudson.model.AbstractProject<?,?> item)
           
 hudson.tasks.BuildWrapper newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 
Methods inherited from class hudson.model.Descriptor
configure, configure, convert, doHelp, find, find, getCheckUrl, getConfigPage, getGlobalConfigPage, getHelpFile, getJsonSafeClassName, getPropertyType, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, save, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

androidHome

public java.lang.String androidHome
The Android SDK home directory. Can include variables, e.g. ${ANDROID_HOME}.

If null, we will just assume the required commands are on the PATH.

Constructor Detail

AndroidEmulator.DescriptorImpl

public AndroidEmulator.DescriptorImpl()
Method Detail

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.tasks.BuildWrapper>

configure

public boolean configure(org.kohsuke.stapler.StaplerRequest req,
                         net.sf.json.JSONObject json)
                  throws hudson.model.Descriptor.FormException
Overrides:
configure in class hudson.model.Descriptor<hudson.tasks.BuildWrapper>
Throws:
hudson.model.Descriptor.FormException

newInstance

public hudson.tasks.BuildWrapper newInstance(org.kohsuke.stapler.StaplerRequest req,
                                             net.sf.json.JSONObject formData)
                                      throws hudson.model.Descriptor.FormException
Overrides:
newInstance in class hudson.model.Descriptor<hudson.tasks.BuildWrapper>
Throws:
hudson.model.Descriptor.FormException

getHelpFile

public java.lang.String getHelpFile()
Overrides:
getHelpFile in class hudson.model.Descriptor<hudson.tasks.BuildWrapper>

isApplicable

public boolean isApplicable(hudson.model.AbstractProject<?,?> item)
Specified by:
isApplicable in class hudson.tasks.BuildWrapperDescriptor

getAndroidVersions

public hudson.plugins.android_emulator.AndroidPlatform[] getAndroidVersions()
Used in config.jelly: Lists the OS versions available.


getDeviceDensities

public hudson.plugins.android_emulator.ScreenDensity[] getDeviceDensities()
Used in config.jelly: Lists the screen densities available.


getDeviceResolutions

public hudson.plugins.android_emulator.ScreenResolution[] getDeviceResolutions()
Used in config.jelly: Lists the screen resolutions available.


getEmulatorLocales

public java.lang.String[] getEmulatorLocales()
Used in config.jelly: Lists the locales available.


doCheckAvdName

public hudson.util.FormValidation doCheckAvdName(@QueryParameter
                                                 java.lang.String value)

doCheckOsVersion

public hudson.util.FormValidation doCheckOsVersion(@QueryParameter
                                                   java.lang.String value)

doCheckScreenDensity

public hudson.util.FormValidation doCheckScreenDensity(@QueryParameter
                                                       java.lang.String value)

doCheckScreenResolution

public hudson.util.FormValidation doCheckScreenResolution(@QueryParameter
                                                          java.lang.String value,
                                                          @QueryParameter
                                                          java.lang.String density)

doCheckDeviceLocale

public hudson.util.FormValidation doCheckDeviceLocale(@QueryParameter
                                                      java.lang.String value)

doCheckAndroidHome

public hudson.util.FormValidation doCheckAndroidHome(@QueryParameter
                                                     java.io.File value)


Copyright © 2010. All Rights Reserved.