Module platform

Class ProjectFileObjectItem

All Implemented Interfaces:
Manageable, PersistenceCapable, Shareable, SharedObjectProvider, RegistryContext, UserFields, XObject, Described, Map, Serializable

public class ProjectFileObjectItem extends FileObjectItem
This class add an additional wrapping around FileObjectItem. FileObjectItem are files that are added to a project and most of the time loaded when the explorer are loaded (to get description). FileObjectItem also have the mimeType of the File they load. ProjectFileObjectItem has mimetype another type of object managed by groimp. The fileMimeType still represent the mimeType of the file to be loaded.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getNTypeImpl

      protected Node.NType getNTypeImpl()
      Description copied from class: Node
      This method returns the Node.NType which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      getNTypeImpl in class FileObjectItem
      Returns:
      type describing the managed fields of the class of this node
    • newInstance

      protected Node newInstance()
      Description copied from class: Node
      This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      newInstance in class FileObjectItem
      Returns:
      new instance of class of this node
    • getFileMimeType

      public MimeType getFileMimeType()
    • fetchBaseObject

      protected Object fetchBaseObject()
      Overrides:
      fetchBaseObject in class FileObjectItem
    • activateImpl

      protected void activateImpl()
      If the file do not exist. Raise an error when the project is loaded. (the object is not loaded at this point). This troubleshoot most fileobject error whithin the project loading. The check is perform when the project is loaded because the actual object fetching is only done when the object is used - thus could happen after many executions.
      Overrides:
      activateImpl in class FileObjectItem
    • getDerivedDescription

      protected Object getDerivedDescription(String type)
      Change the way description are loaded so the object do NOT get loaded before use
      Overrides:
      getDerivedDescription in class ObjectItem