Packages

class DefaultResourceEntry[E <: Resource] extends ResourceEntry[E]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultResourceEntry
  2. ResourceEntry
  3. Closeable
  4. AutoCloseable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DefaultResourceEntry(resource: E)

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 attachRepresentation[R <: ResourceRepresentation](tag: String = null)(implicit arg0: ClassTag[R], factory: ResourceRepresentationFactory[R, E]): R

    Links a resource with a resource class and a String tag which represent it.

    Links a resource with a resource class and a String tag which represent it.

    R

    the type of the resource representation.

    tag

    the tag used to refer the representation.

    factory

    the factory which will create a representation instance of type R.

    Definition Classes
    DefaultResourceEntryResourceEntry
    Exceptions thrown

    IncompatibleResourceTypeException If the requested resource type is incompatible with the name it targets. For example, if an ResourceFolder type is requested, but the name targets a resource file, as the resource can't be handled as a folder, the implementation may throw this exception.

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. def close(): Unit
    Definition Classes
    DefaultResourceEntry → Closeable → AutoCloseable
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def findRepresentation[R <: ResourceRepresentation](tag: String = null)(implicit arg0: ClassTag[R]): Option[R]

    Tries to Retrieves the wanted representation of the resource.

    Tries to Retrieves the wanted representation of the resource. The representation must extends R

    R

    the kind of resource expected.

    returns

    Some if a representation of type R was found, or None instead

    Definition Classes
    DefaultResourceEntryResourceEntry
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  12. def getOrAttachRepresentation[R <: ResourceRepresentation](tag: String = null)(implicit arg0: ClassTag[R], factory: ResourceRepresentationFactory[R, E]): R

    Retrieves the wanted representation of the resource.

    Retrieves the wanted representation of the resource. If no resource is found, create one.

    R

    the type of resource expected.

    returns

    the expected resource representation.

    Definition Classes
    ResourceEntry
    Annotations
    @throws("If a resource was found but with another type than R.") @NotNull()
    Exceptions thrown

    NoSuchRepresentationException if the resource haven't any attached representation of type R.

  13. def getRepresentation[R <: ResourceRepresentation](tag: String = null)(implicit arg0: ClassTag[R]): R

    Retrieves the wanted representation of the resource.

    Retrieves the wanted representation of the resource.

    R

    the type of resource expected.

    returns

    the expected resource representation.

    Definition Classes
    DefaultResourceEntryResourceEntry
    Annotations
    @throws("If a resource was found but with another type than R.") @NotNull()
    Exceptions thrown

    NoSuchRepresentationException if the resource haven't any attached representation of type R.

  14. def getResource: Resource

    A representation of the folder that contains this resource.

    A representation of the folder that contains this resource.

    Definition Classes
    DefaultResourceEntryResourceEntry
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def name: String

    This resource name

    This resource name

    Definition Classes
    DefaultResourceEntryResourceEntry
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  21. val resource: E
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. 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 ResourceEntry[E]

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped