Class NexusObjectWrapper<N extends NXobject>

java.lang.Object
org.eclipse.dawnsci.nexus.builder.AbstractNexusObjectProvider<N>
org.eclipse.dawnsci.nexus.builder.NexusObjectWrapper<N>
Type Parameters:
N - nexus base class type, a subinterface of NXobject
All Implemented Interfaces:
NexusEntryModification, NexusObjectProvider<N>

public class NexusObjectWrapper<N extends NXobject> extends AbstractNexusObjectProvider<N>
An implementation of AbstractNexusObjectProvider that wraps the nexus object that should be returned by AbstractNexusObjectProvider.getNexusObject().
  • Constructor Details

    • NexusObjectWrapper

      public NexusObjectWrapper(String name, NexusBaseClass nexusBaseClass)
      Creates a new AbstractNexusObjectProvider for given name, base class type and data node name.
      Parameters:
      name - name
      nexusBaseClass - base class type
    • NexusObjectWrapper

      public NexusObjectWrapper(String name, N nexusObject)
      Creates a new AbstractNexusObjectProvider for given name, base class type and data node name.
      Parameters:
      name - name
      nexusObject - nexusObject
    • NexusObjectWrapper

      public NexusObjectWrapper(String name, N nexusObject, String defaultDataFieldName, String... additionalDataFieldNames)
      Creates a new AbstractNexusObjectProvider for given name, base class type and data node name. The default data field will be used as the @signal for an NexusBaseClass.NX_DETECTOR when building an NXdata for this object, otherwise if this device is the default axis for a particular dimension of the @signal field of the device, this is the field that will be added to the @axes attribute of the NXdata group for that dimension.
      Parameters:
      name - name
      nexusObject - nexusObject to return
      defaultDataFieldName - default data field, the default signal field for a detector, the default axis field for any other type of nexus object
      additionalDataFieldNames - the names of any additional data fields
    • NexusObjectWrapper

      public NexusObjectWrapper(String name, NexusBaseClass nexusBaseClass, String defaultDataFieldName, String... additionalDataFieldNames)
      Creates a new AbstractNexusObjectProvider for given name, base class type and data node name. The default data field will be used as the @signal for an NexusBaseClass.NX_DETECTOR when building an NXdata for this object, otherwise if this device is the default axis for a particular dimension of the @signal field of the device, this is the field that will be added to the @axes attribute of the NXdata group for that dimension.
      Parameters:
      name - name
      nexusBaseClass - base class type
      defaultDataFieldName - default data field, the default signal field for a detector, the default axis field for any other type of nexus object
      additionalDataFieldNames - the names of any additional data fields
  • Method Details

    • setNexusObject

      public void setNexusObject(N nexusObject)
      Sets the nexus object to be returned by this wrapepr
      Parameters:
      nexusObject -
    • createNexusObject

      protected N createNexusObject()
      Specified by:
      createNexusObject in class AbstractNexusObjectProvider<N extends NXobject>