org.appng.core.domain

## Class TemplateResource

- java.lang.Object
- - org.appng.core.domain.TemplateResource

- All Implemented Interfaces:
    Serializable, Identifiable<Integer>, Nameable, Named<Integer>, Resource

      @Entity
      public class TemplateResource
      extends Object
      implements Resource

  Representats a `Resource` of an appNG template.
  Author:
    Matthias Müller
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TemplateResource()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `calculateChecksum()`
    `boolean` | `equals(Object o)`
    `byte[]` | `getBytes()` Returns the byte data of the `Resource`.
    `File` | `getCachedFile()` Returns a cached version of the `Resource`s file.
    `String` | `getCheckSum()` Returns the checksum of the byte data
    `String` | `getDescription()` Returns the description.
    `Date` | `getFileVersion()`
    `Integer` | `getId()` Returns the id.
    `String` | `getName()` Returns the name.
    `ResourceType` | `getResourceType()` Returns the type of this `Resource`.
    `int` | `getSize()` Returns the size (in bytes) of this `Resource`.
    `Template` | `getTemplate()`
    `Date` | `getVersion()`
    `int` | `hashCode()`
    `void` | `setBytes(byte[] bytes)`
    `void` | `setCachedFile(File cachedFile)` Sets the cached version of the `Resource`s file.
    `void` | `setCheckSum(String checkSum)`
    `void` | `setDescription(String description)`
    `void` | `setFileVersion(Date fileVersion)`
    `void` | `setId(Integer id)`
    `void` | `setName(String name)`
    `void` | `setResourceType(ResourceType type)`
    `void` | `setTemplate(Template template)`
    `void` | `setVersion(Date version)`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TemplateResource

          public TemplateResource()

  - ### Method Detail

    - #### getId

          public Integer getId()

      Description copied from interface: `Identifiable`
      Returns the id.
      Specified by:
        `getId` in interface `Identifiable<Integer>`
      Returns:
        the id

    - #### setId

          public void setId(Integer id)

    - #### getName

          public String getName()

      Description copied from interface: `Nameable`
      Returns the name.
      Specified by:
        `getName` in interface `Nameable`
      Returns:
        the name

    - #### setName

          public void setName(String name)

    - #### getDescription

          public String getDescription()

      Description copied from interface: `Nameable`
      Returns the description.
      Specified by:
        `getDescription` in interface `Nameable`
      Returns:
        the description

    - #### setDescription

          public void setDescription(String description)

    - #### getFileVersion

          public Date getFileVersion()

    - #### setFileVersion

          public void setFileVersion(Date fileVersion)

    - #### getVersion

          public Date getVersion()

    - #### setVersion

          public void setVersion(Date version)

    - #### getTemplate

          public Template getTemplate()

    - #### setTemplate

          public void setTemplate(Template template)

    - #### getResourceType

          public ResourceType getResourceType()

      Description copied from interface: `Resource`
      Returns the type of this `Resource`.
      Specified by:
        `getResourceType` in interface `Resource`
      Returns:
        the type

    - #### setResourceType

          public void setResourceType(ResourceType type)

    - #### getBytes

          public byte[] getBytes()

      Description copied from interface: `Resource`
      Returns the byte data of the `Resource`.
      Specified by:
        `getBytes` in interface `Resource`
      Returns:
        the byte data

    - #### setBytes

          public void setBytes(byte[] bytes)

    - #### getCachedFile

          public File getCachedFile()

      Description copied from interface: `Resource`
      Returns a cached version of the `Resource`s file.
      Specified by:
        `getCachedFile` in interface `Resource`
      Returns:
        the cached file

    - #### setCachedFile

          public void setCachedFile(File cachedFile)

      Description copied from interface: `Resource`
      Sets the cached version of the `Resource`s file.
      Specified by:
        `setCachedFile` in interface `Resource`
      Parameters:
        `cachedFile` - the cached file

    - #### getCheckSum

          public String getCheckSum()

      Description copied from interface: `Resource`
      Returns the checksum of the byte data
      Specified by:
        `getCheckSum` in interface `Resource`
      Returns:
        the checksum of the byte data

    - #### setCheckSum

          public void setCheckSum(String checkSum)

    - #### getSize

          public int getSize()

      Description copied from interface: `Resource`
      Returns the size (in bytes) of this `Resource`.
      Specified by:
        `getSize` in interface `Resource`
      Returns:
        the size (in bytes)

    - #### calculateChecksum

          public String calculateChecksum()

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

Copyright © 2011–2023 aiticon GmbH. All rights reserved.