Class AssetContextAdapter

java.lang.Object
com.orchestranetworks.addon.dpra.function.AssetContextAdapter

public final class AssetContextAdapter extends Object
Adapter for representing asset contexts in the add-on.

Provides static factory methods to create an adapter for dataspace, dataset, table, field, or workflow contexts. Each context type is represented by an AssetType and associated EBX® objects:

Provides getters for each context type.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the asset type of this adapter.
    com.onwbp.adaptation.Adaptation
    Gets the dataset represented by this adapter.
    com.onwbp.adaptation.AdaptationHome
    Gets the dataspace represented by this adapter.
    com.orchestranetworks.schema.SchemaNode
    Gets the field represented by this adapter.
    com.onwbp.adaptation.AdaptationTable
    Gets the table represented by this adapter.
    com.orchestranetworks.workflow.PublishedProcess
    Gets the workflow represented by this adapter.
    onDataset(com.onwbp.adaptation.Adaptation dataset)
    Creates an adapter for dataset contexts.
    onDataspace(com.onwbp.adaptation.AdaptationHome dataspace)
    Creates an adapter for dataspace contexts.
    onField(com.onwbp.adaptation.AdaptationTable table, com.orchestranetworks.schema.SchemaNode field)
    Creates an adapter for field contexts.
    onTable(com.onwbp.adaptation.AdaptationTable table)
    Creates an adapter for table contexts.
    onWorkflow(com.orchestranetworks.workflow.PublishedProcess workflow)
    Creates an adapter for workflow contexts.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AssetContextAdapter

      public AssetContextAdapter()
  • Method Details

    • onDataspace

      public static AssetContextAdapter onDataspace(com.onwbp.adaptation.AdaptationHome dataspace)
      Creates an adapter for dataspace contexts.
      Parameters:
      dataspace - the dataspace to represent
      Returns:
      an AssetContextAdapter for a dataspace context
    • onDataset

      public static AssetContextAdapter onDataset(com.onwbp.adaptation.Adaptation dataset)
      Creates an adapter for dataset contexts.
      Parameters:
      dataset - the dataset to represent
      Returns:
      an AssetContextAdapter for a dataset context
    • onTable

      public static AssetContextAdapter onTable(com.onwbp.adaptation.AdaptationTable table)
      Creates an adapter for table contexts.
      Parameters:
      table - the table to represent
      Returns:
      an AssetContextAdapter for a table context
    • onField

      public static AssetContextAdapter onField(com.onwbp.adaptation.AdaptationTable table, com.orchestranetworks.schema.SchemaNode field)
      Creates an adapter for field contexts.
      Parameters:
      table - the table containing the field
      field - the field to represent
      Returns:
      an AssetContextAdapter for a field context
    • onWorkflow

      public static AssetContextAdapter onWorkflow(com.orchestranetworks.workflow.PublishedProcess workflow)
      Creates an adapter for workflow contexts.
      Parameters:
      workflow - the workflow to represent
      Returns:
      an AssetContextAdapter for a workflow context
    • getAssetType

      public AssetType getAssetType()
      Gets the asset type of this adapter.
      Returns:
      the asset type
    • getDataspace

      public com.onwbp.adaptation.AdaptationHome getDataspace()
      Gets the dataspace represented by this adapter.
      Returns:
      the dataspace, or null if not applicable
    • getDataset

      public com.onwbp.adaptation.Adaptation getDataset()
      Gets the dataset represented by this adapter.
      Returns:
      the dataset, or null if not applicable
    • getTable

      public com.onwbp.adaptation.AdaptationTable getTable()
      Gets the table represented by this adapter.
      Returns:
      the table, or null if not applicable
    • getField

      public com.orchestranetworks.schema.SchemaNode getField()
      Gets the field represented by this adapter.
      Returns:
      the field, or null if not applicable
    • getWorkflow

      public com.orchestranetworks.workflow.PublishedProcess getWorkflow()
      Gets the workflow represented by this adapter.
      Returns:
      the workflow, or null if not applicable