Class ExternalDataType

java.lang.Object
hec.externalplugin.ExternalDataType
All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable

public class ExternalDataType extends Object implements AsciiSerializable
ExternalDataType holds the plugin name, source type, and the data type The plugin name is the plugin that can search for data of this ExternalDataType The source type is generally the file type that the data comes from, but could be anything else represented as a string The data type is a string representing the type of data supported within the source Example: Plugin to provide a range of cells from an Excel spreadsheet source type = "Excel" data type = "Range"
See Also:
  • Constructor Details

    • ExternalDataType

      public ExternalDataType()
  • Method Details

    • setPluginName

      public void setPluginName(String pluginName)
      Sets the name of the plugin that supports this ExternalDataType
      Parameters:
      pluginName -
    • getPluginName

      public String getPluginName()
      gets the name of the plugin that supports this ExternalDataType
      Returns:
    • setSourceType

      public void setSourceType(String sourceType)
      sets the name of the source type
      Parameters:
      sourceType -
    • getSourceType

      public String getSourceType()
      gets the name of the source type
      Returns:
    • getDataType

      public String getDataType()
      gets the type of data within the source
      Returns:
    • setDataType

      public void setDataType(String dataType)
      sets the type of data within the source
      Parameters:
      dataType -
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getFieldObject

      public Object getFieldObject(Field fld)
      Description copied from interface: FieldAccessor
      This method allows access to java.lang.reflect.Field objects within the implementing class.
      Specified by:
      getFieldObject in interface FieldAccessor
      Parameters:
      fld - The field to get.
      Returns:
      The data object that is stored in the given field
    • setFieldObject

      public boolean setFieldObject(Field fld, Object fobj)
      Description copied from interface: FieldAccessor
      This allows access to fields withing the implementing object to set there data.
      Specified by:
      setFieldObject in interface FieldAccessor
      Parameters:
      fld - The java field object representing the member field to be set
      fobj - The data to set in that field
      Returns:
      returns true if successful
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object