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

# Interface ConfigurationNameMapper

All Known Implementing Classes:
  `DefaultConfigurationNameMapper`

public interface ConfigurationNameMapper
A service that maps the names of configuration objects to the resource names.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `configurationLocation(Class<? extends ConfigurationNode> type, String nodeName)`
  Returns the name of a configuration resource based on a naming convention for a given node type.
  `String`
  `configurationLocation(ConfigurationNode node)`
  Returns the name of a configuration resource based on a naming convention for a given node type.
  `String`
  `configurationNodeName(Class<? extends ConfigurationNode> type, Resource resource)`
  Returns a node name for a given configuration type and a configuration resource.

- ## Method Details

  - ### configurationLocation

    String configurationLocation(ConfigurationNode node)
    Returns the name of a configuration resource based on a naming convention for a given node type.

  - ### configurationLocation

    String configurationLocation(Class<? extends ConfigurationNode> type, String nodeName)
    Returns the name of a configuration resource based on a naming convention for a given node type.

  - ### configurationNodeName

    String configurationNodeName(Class<? extends ConfigurationNode> type, Resource resource)
    Returns a node name for a given configuration type and a configuration resource. This operation is the opposite of the `configurationLocation(Class, String)` . May return null if the resource name is not following the expected naming format.