Packages

abstract class BaseResourceFolder extends AbstractResource with ResourceFolder

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BaseResourceFolder
  2. ResourceFolder
  3. AbstractResource
  4. Resource
  5. AutoCloseable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

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

Abstract Value Members

  1. abstract def getEntry: ResourceEntry[ResourceFolder]
    Definition Classes
    ResourceFolderResource

Concrete 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
  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. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. 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
  11. 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.

  12. def getChecksum: Long

    returns

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

    Definition Classes
    BaseResourceFolderResourceFolderAbstractResourceResource
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  14. def getLastChecksum: Long

    returns

    The last known checksum of this resource.

    Definition Classes
    BaseResourceFolderAbstractResourceResource
  15. 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
  16. def getLocation: String
    Definition Classes
    AbstractResourceResource
  17. 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

  18. 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
  19. def getParent: Option[ResourceFolder]

    returns

    the parent folder of this resource.

    Definition Classes
    AbstractResourceResource
  20. def getPath: Path

    returns

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

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

    Definition Classes
    ResourceFolder
    See also

    ResourcesMaintainer.isKnown()

  25. 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
  26. val maintainer: ResourceFolderMaintainer
    Attributes
    protected
  27. val name: String
    Definition Classes
    AbstractResourceResource
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  31. 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.

  32. 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.

  33. val resources: HashMap[String, Resource]
    Attributes
    protected
  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. 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
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. 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 ResourceFolder

Inherited from AbstractResource

Inherited from Resource

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped