Packages

class LocalResourceFolder extends BaseResourceFolder with LocalFolder

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LocalResourceFolder
  2. LocalFolder
  3. LocalResource
  4. BaseResourceFolder
  5. ResourceFolder
  6. AbstractResource
  7. Resource
  8. AutoCloseable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new LocalResourceFolder(adapter: Path, listener: ResourceListener, parent: Option[ResourceFolder])
    Attributes
    protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def checkResourceName(name: String): Unit
    Attributes
    protected
    Definition Classes
    BaseResourceFolder
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. def close(): Unit
    Definition Classes
    BaseResourceFolder → AutoCloseable
  8. def createOnDisk(): Unit
    Definition Classes
    LocalResourceFolderLocalResource
  9. val entry: DefaultResourceEntry[LocalResourceFolder]
    Attributes
    protected
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def find[R <: Resource](name: String)(implicit arg0: ClassTag[R]): Option[R]

    Tries to retrieve an Resource with the same name and kind than the ones provided.

    Tries to retrieve an Resource with the same name and kind than the ones provided.

    R

    the kind of resource expected.

    name

    the name associated with the requested resource.

    returns

    Some instance if the resource was found AND have the same kind, or None instead

    Definition Classes
    BaseResourceFolderResourceFolder
  13. def get[R <: Resource](name: String)(implicit arg0: ClassTag[R]): R

    Retrieves an Resource of the name and it's representation type R.

    Retrieves an Resource of the name and it's representation type R.

    R

    the type of resource expected.

    name

    the name associated with the requested resource.

    returns

    the expected resource representation.

    Definition Classes
    BaseResourceFolderResourceFolder
    Annotations
    @throws("If no resource was found with the provided name") @throws("If a resource was found but with another type than R.")
    Exceptions thrown

    IncompatibleResourceTypeException if a resource is not the same type of R.

    NoSuchResourceException if no resource was found with the provided name.

  14. def getChecksum: Long

    returns

    The sum of every checksums of this folder. The checksum only integrate registered resources.

    Definition Classes
    BaseResourceFolderResourceFolderAbstractResourceResource
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  16. def getEntry: ResourceEntry[LocalResourceFolder]
  17. def getLastChecksum: Long

    returns

    The last known checksum of this resource.

    Definition Classes
    BaseResourceFolderAbstractResourceResource
  18. def getLastModified: Versions

    Each times a resource is modified from a LinkitApplication, its ResourceVersion must be updated by the modifier application.

    Each times a resource is modified from a LinkitApplication, its ResourceVersion must be updated by the modifier application. This can be useful to determine if a resource is obsolete depending on his utilisation (example: a file used by the core which have not the same Versions.engineVersion could be out of date)

    Definition Classes
    AbstractResourceResource
  19. def getLocation: String
    Definition Classes
    AbstractResourceResource
  20. def getMaintainer: ResourcesMaintainer

    The resources maintainer that handles this resources folder.

    The resources maintainer that handles this resources folder. The way that the maintainer handles its resources registration is implementation-specific.

    returns

    The resources maintainer that handles this resources folder.

    Definition Classes
    BaseResourceFolderResourceFolderAbstractResource
    See also

    ResourcesMaintainer

  21. def getOrOpen[R <: Resource](name: String)(implicit arg0: ClassTag[R], factory: ResourceFactory[R]): R

    Retrieves or creates an Resource of the name and it's representation type R.

    Retrieves or creates an Resource of the name and it's representation type R.

    R

    the type of resource expected.

    name

    the name associated with the requested resource.

    returns

    the expected resource representation.

    Definition Classes
    BaseResourceFolderResourceFolder
  22. def getParent: Option[ResourceFolder]

    returns

    the parent folder of this resource.

    Definition Classes
    AbstractResourceResource
  23. def getPath: Path

    returns

    The file adapter that represent this resource on the os's File System

    Definition Classes
    AbstractResourceResource
  24. def getRoot: ResourceFolder
    Definition Classes
    AbstractResourceResource
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. def isKnown(name: String): Boolean

    Definition Classes
    ResourceFolder
    See also

    ResourcesMaintainer.isKnown()

  28. def isPresentOnDrive(name: String): Boolean

    No matter if a file is registered by the maintainer or not, this method must return true if any file or folder with the provided name is stored into the handled folder.

    No matter if a file is registered by the maintainer or not, this method must return true if any file or folder with the provided name is stored into the handled folder.

    name

    the file/folder name to test.

    returns

    true
    Definition Classes
    BaseResourceFolderResourceFolder
  29. val maintainer: ResourceFolderMaintainer
    Attributes
    protected
    Definition Classes
    BaseResourceFolder
  30. val name: String
    Definition Classes
    AbstractResourceResource
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  34. def openResource[R <: Resource](name: String, factory: ResourceFactory[R])(implicit arg0: ClassTag[R]): R

    Opens a resource folder located under this folder's path.

    Opens a resource folder located under this folder's path.

    R

    the kind of resource that must be opened.

    name

    the relative path in which the resource will be stored.

    returns

    an instance of R, which is the resource file.

    Definition Classes
    BaseResourceFolderResourceFolder
    Annotations
    @throws("If the subPath targets a resource that is already registered or opened.") @throws("If the provided name contains invalid character")
    Exceptions thrown

    IllegalResourceException If the provided name contains invalid character.

    ResourceAlreadyPresentException if name is already registered for the resource folder.

  35. def register[R <: Resource](name: String, factory: ResourceFactory[R]): R

    Registers a resource folder.

    Registers a resource folder. Be aware that the resource MUST be already stored into the handled folder. No distant resource can be registered by a distant machine.

    name

    The name of the resource to register.

    Definition Classes
    BaseResourceFolderResourceFolder
    Annotations
    @throws("If the provided name contains invalid character")
    Exceptions thrown

    IllegalResourceException If the provided name contains invalid character.

  36. val resources: HashMap[String, Resource]
    Attributes
    protected
    Definition Classes
    BaseResourceFolder
  37. def scanFiles(scanAction: (String) => Unit): Unit

    Performs a non-recursive scan of all the content of this folder, excluding folders.

    Performs a non-recursive scan of all the content of this folder, excluding folders. Each times the scan hits a resource that is not yet registered, the scanAction gets called. scanAction may determine whether the hit resource must be registered or not, attached by any representation kind, or destroyed...

    The implementation can perform default operations before or after invoking the scanAction.

    scanAction

    the action to perform on each new resource.

    Definition Classes
    LocalResourceFolderLocalFolder
  38. def scanFolders(scanAction: (String) => Unit): Unit

    Performs a non-recursive scan of all the content of this folder, excluding files.

    Performs a non-recursive scan of all the content of this folder, excluding files. Each times the scan hits a resource that is not yet registered, the scanAction gets called. scanAction may determine whether the hit resource must be registered or not, attached by any representation kind, or destroyed...

    The implementation can perform default operations before or after invoking the scanAction.

    scanAction

    the action to perform on each new resource.

    Definition Classes
    LocalResourceFolderLocalFolder
  39. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  40. def toString(): String
    Definition Classes
    AnyRef → Any
  41. def unregister(name: String): Unit

    Unregisters a resource.

    Unregisters a resource. This method takes no effect if the provided resource's name is unknown.

    name

    the resource name to unregister.

    Definition Classes
    BaseResourceFolderResourceFolder
  42. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from LocalFolder

Inherited from LocalResource

Inherited from BaseResourceFolder

Inherited from ResourceFolder

Inherited from AbstractResource

Inherited from Resource

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped