Interface ValueFactory.IValueCreator

Enclosing class:
ValueFactory

private static interface ValueFactory.IValueCreator
Private interface for calling the constructor of the right value type.
Author:
El-Sharkawy
  • Method Summary

    Modifier and Type
    Method
    Description
    createValue(IDatatype type, Object... value)
    Part of this Factory, should call the constructor of a value.
  • Method Details

    • createValue

      Value createValue(IDatatype type, Object... value) throws ValueDoesNotMatchTypeException
      Part of this Factory, should call the constructor of a value.
      Parameters:
      type - The concrete datype for which this value should be created. This is needed for StructuredDatatypes.
      value - The unparsed value(s) which should be stored in the newly created value object-
      Returns:
      A value object storing the parsed information of the parameter.
      Throws:
      ValueDoesNotMatchTypeException - If the given value does not match the specified type.