Package com.dnanexus
Class DXDataObject.Describe
- java.lang.Object
-
- com.dnanexus.DXDataObject.Describe
-
- Direct Known Subclasses:
DXApplet.Describe,DXFile.Describe,DXRecord.Describe,DXWorkflow.Describe
- Enclosing class:
- DXDataObject
public static class DXDataObject.Describe extends Object
Contains metadata for a data object (fields common to all data objects). All accessors reflect the state of the data object at the time that this object was created.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDescribe()Creates aDescribeobject with all empty metadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetCreationDate()Returns the creation date of the object.<T> TgetDetails(Class<T> valueType)Returns the details of the object.StringgetFolder()Returns the folder that contains the object.DategetModificationDate()Returns the last modification date of the object.StringgetName()Returns the name of the object.DXContainergetProject()Returns the project or container from which user-provided metadata was retrieved.Map<String,String>getProperties()Returns the properties associated with the object.DataObjectStategetState()Returns the state of the object.List<String>getTags()Returns a list of tags associated with the object.List<String>getTypes()Returns a list of types associated with the object.booleanisVisible()Returns whether the object is visible.
-
-
-
Method Detail
-
getCreationDate
public Date getCreationDate()
Returns the creation date of the object.- Returns:
- creation date
-
getDetails
public <T> T getDetails(Class<T> valueType)
Returns the details of the object. This field may not be available unlessDXDataObject.describe(DescribeOptions)(orDXSearch.FindDataObjectsRequestBuilder.includeDescribeOutput(DXDataObject.DescribeOptions)) was called withDXDataObject.DescribeOptions.withDetails()set.- Parameters:
valueType- class to deserialize as- Returns:
- the object's details
- Throws:
IllegalStateException- if details were not retrieved with the describe call
-
getFolder
public String getFolder()
Returns the folder that contains the object.- Returns:
- full path to the containing folder (a String starting with
"/")
-
getModificationDate
public Date getModificationDate()
Returns the last modification date of the object.- Returns:
- modification date
-
getName
public String getName()
Returns the name of the object.- Returns:
- the object's name
-
getProject
public DXContainer getProject()
Returns the project or container from which user-provided metadata was retrieved.- Returns:
DXProjectorDXContainer
-
getProperties
public Map<String,String> getProperties()
Returns the properties associated with the object. This field may not be available unlessDXDataObject.describe(DescribeOptions)(orDXSearch.FindDataObjectsRequestBuilder.includeDescribeOutput(DXDataObject.DescribeOptions)) was called withDXDataObject.DescribeOptions.withProperties()set.- Returns:
- Map of property keys to property values
- Throws:
IllegalStateException- if properties were not retrieved with the describe call
-
getState
public DataObjectState getState()
Returns the state of the object.- Returns:
- a
DXObjectStateindicating the current state
-
getTags
public List<String> getTags()
Returns a list of tags associated with the object.- Returns:
- List of tags
-
getTypes
public List<String> getTypes()
Returns a list of types associated with the object.- Returns:
- List of types
-
isVisible
public boolean isVisible()
Returns whether the object is visible.- Returns:
- true if the object is visible
-
-