Resource (cayenne-doc: Cayenne Documentation 5.0-M2 API)
Description: declaration: package: org.apache.cayenne.resource, interface: Resource

# Interface Resource

All Superinterfaces:
  `Serializable`

All Known Implementing Classes:
  `URLResource`

public interface Resource extends Serializable
An abstraction of a resource whose data can be accessed via a URL.

Since:
  3.1

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Resource`
  `getRelativeResource(String relativePath)`
  Returns a resource resolved relatively to the current resource.
  `URL`
  `getURL()`
  Returns a resource URL to read (and possibly write) the resource data.

- ## Method Details

  - ### getURL

    URL getURL()
    Returns a resource URL to read (and possibly write) the resource data.

  - ### getRelativeResource

    Resource getRelativeResource(String relativePath)
    Returns a resource resolved relatively to the current resource. E.g. DataMap files can be resolved relatively to cayenne.xml.