Class StringValueOfProducer

java.lang.Object
org.exoplatform.services.rest.impl.method.BaseTypeProducer
org.exoplatform.services.rest.impl.method.StringValueOfProducer
All Implemented Interfaces:
TypeProducer

public final class StringValueOfProducer extends BaseTypeProducer
Version:
$Id: $
Author:
Andrey Parfonov
  • Method Details

    • createValue

      protected Object createValue(String value) throws Exception
      Create object from given string. In all extends for this class this method must be specified to produce object of required type. String will be used as parameter for constructor of object or static valueOf method.
      Specified by:
      createValue in class BaseTypeProducer
      Parameters:
      value - string value
      Returns:
      newly created object
      Throws:
      Exception - if any error occurs