Class DXApplet
- java.lang.Object
-
- com.dnanexus.DXObject
-
- com.dnanexus.DXDataObject
-
- com.dnanexus.DXApplet
-
- All Implemented Interfaces:
DXExecutable<DXJob>
public class DXApplet extends DXDataObject implements DXExecutable<DXJob>
An applet (an executable data object).Although these bindings will allow you to create a simple applet from scratch, we encourage you to use the command-line tool
dx buildinstead. See the API documentation for applets.The
describe()method returns aRunSpecificationobject that does not have the "code" field populated; that is,RunSpecification.getCode()will returnnull.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDXApplet.BuilderBuilder class for creating a newDXAppletobject.static classDXApplet.DescribeContains metadata for an applet.-
Nested classes/interfaces inherited from class com.dnanexus.DXDataObject
DXDataObject.DescribeOptions
-
-
Field Summary
-
Fields inherited from class com.dnanexus.DXDataObject
cachedDescribe
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DXApplet.Describedescribe()Returns metadata about the data object.DXApplet.Describedescribe(DXDataObject.DescribeOptions options)Returns metadata about the data object, specifying which optional fields are to be returned and what project to obtain project-specific metadata from.DXApplet.DescribegetCachedDescribe()Returns metadata about the data object, likeDXDataObject.describe(), but without making an API call.static DXAppletgetInstance(String appletId)Returns aDXAppletassociated with an existing applet.static DXAppletgetInstance(String appletId, DXContainer project)Returns aDXAppletassociated with an existing applet in a particular project or container.static DXAppletgetInstanceWithEnvironment(String appletId, DXContainer project, DXEnvironment env)Returns aDXAppletassociated with an existing applet in a particular project using the specified environment.static DXAppletgetInstanceWithEnvironment(String appletId, DXEnvironment env)Returns aDXAppletassociated with an existing applet using the specified environment.static DXApplet.BuildernewApplet()Returns a Builder object for creating a newDXApplet.static DXApplet.BuildernewAppletWithEnvironment(DXEnvironment env)Returns a Builder object for creating a newDXAppletusing the specified environment.ExecutableRunner<DXJob>newRun()Returns an object for creating a new run of this executable.-
Methods inherited from class com.dnanexus.DXDataObject
addTags, addTypes, checkCachedDescribeAvailable, checkDXLinkFormat, close, closeAndWait, equals, getLinkAsJson, getProject, hashCode, listProjects, putAllProperties, putAllProperties, putProperty, removeProperty, removeTags, removeTypes, rename, setDetails, setVisibility
-
Methods inherited from class com.dnanexus.DXObject
apiCallOnObject, apiCallOnObject, getId, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.dnanexus.DXExecutable
getId
-
-
-
-
Method Detail
-
getInstance
public static DXApplet getInstance(String appletId)
Returns aDXAppletassociated with an existing applet.- Throws:
NullPointerException- IfappletIdis null
-
getInstance
public static DXApplet getInstance(String appletId, DXContainer project)
Returns aDXAppletassociated with an existing applet in a particular project or container.- Throws:
NullPointerException- IfappletIdorcontaineris null
-
getInstanceWithEnvironment
public static DXApplet getInstanceWithEnvironment(String appletId, DXContainer project, DXEnvironment env)
Returns aDXAppletassociated with an existing applet in a particular project using the specified environment.- Throws:
NullPointerException- IfappletIdorcontaineris null
-
getInstanceWithEnvironment
public static DXApplet getInstanceWithEnvironment(String appletId, DXEnvironment env)
Returns aDXAppletassociated with an existing applet using the specified environment.- Throws:
NullPointerException- IfappletIdis null
-
newApplet
public static DXApplet.Builder newApplet()
Returns a Builder object for creating a newDXApplet.- Returns:
- Builder object
-
newAppletWithEnvironment
public static DXApplet.Builder newAppletWithEnvironment(DXEnvironment env)
Returns a Builder object for creating a newDXAppletusing the specified environment.- Parameters:
env- environment to be used for subsequent API calls- Returns:
- Builder object
-
describe
public DXApplet.Describe describe()
Description copied from class:DXDataObjectReturns metadata about the data object.The properties and details fields will not be returned, and any project-specific metadata fields will be selected from an arbitrary project in which the requesting user has access to this object. To change either of these aspects of this behavior, use
DXDataObject.describe(DescribeOptions)instead.- Overrides:
describein classDXDataObject- Returns:
- a
Describecontaining the data object's metadata.
-
describe
public DXApplet.Describe describe(DXDataObject.DescribeOptions options)
Description copied from class:DXDataObjectReturns metadata about the data object, specifying which optional fields are to be returned and what project to obtain project-specific metadata from.- Overrides:
describein classDXDataObject- Parameters:
options-DescribeOptionsobject specifying how thedescriberequest is to be made.- Returns:
- a
Describecontaining the data object's metadata.
-
getCachedDescribe
public DXApplet.Describe getCachedDescribe()
Description copied from class:DXDataObjectReturns metadata about the data object, likeDXDataObject.describe(), but without making an API call.This cached describe info is only available if this object appears in the result of a
DXSearch.findDataObjects()call that specifiedDXSearch.FindDataObjectsRequestBuilder.includeDescribeOutput(), and the describe info that is returned reflects the state of the object at the time that the search was performed.- Overrides:
getCachedDescribein classDXDataObject- Returns:
- a
Describecontaining the data object's metadata
-
newRun
public ExecutableRunner<DXJob> newRun()
Description copied from interface:DXExecutableReturns an object for creating a new run of this executable.- Specified by:
newRunin interfaceDXExecutable<DXJob>- Returns:
- executable runner
-
-