Spring Hateoas

org.springframework.hateoas.core
Class EvoInflectorRelProvider

java.lang.Object
  extended by org.springframework.hateoas.core.DefaultRelProvider
      extended by org.springframework.hateoas.core.EvoInflectorRelProvider
All Implemented Interfaces:
RelProvider, org.springframework.plugin.core.Plugin<Class<?>>

public class EvoInflectorRelProvider
extends DefaultRelProvider

RelProvider implementation using the Evo Inflector implementation of an algorithmic approach to English plurals.

Author:
Oliver Gierke
See Also:
http://www.csse.monash.edu.au/~damian/papers/HTML/Plurals.html

Constructor Summary
EvoInflectorRelProvider()
           
 
Method Summary
 String getCollectionResourceRelFor(Class<?> type)
          Returns the relation type to be used to point to a collection resource of the given type.
 
Methods inherited from class org.springframework.hateoas.core.DefaultRelProvider
getItemResourceRelFor, supports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvoInflectorRelProvider

public EvoInflectorRelProvider()
Method Detail

getCollectionResourceRelFor

public String getCollectionResourceRelFor(Class<?> type)
Description copied from interface: RelProvider
Returns the relation type to be used to point to a collection resource of the given type.

Specified by:
getCollectionResourceRelFor in interface RelProvider
Overrides:
getCollectionResourceRelFor in class DefaultRelProvider
Parameters:
type - must not be null.
Returns:

Spring Hateoas

Copyright © 2012-2014-2014 Pivotal, Inc.. All Rights Reserved.