Class PnLStartIndexTranslator

  • All Implemented Interfaces:
    ISpringEnvAware, com.quartetfs.biz.pivot.context.IContextValueTranslator<IPnLStartIndex>, com.quartetfs.fwk.types.IPluginValue, Serializable

    @QuartetPluginValue(intf=com.quartetfs.biz.pivot.context.IContextValueTranslator.class)
    public class PnLStartIndexTranslator
    extends com.quartetfs.biz.pivot.context.impl.IntegerContextValueTranslator<IPnLStartIndex>
    implements ISpringEnvAware
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String KEY  
      • Fields inherited from class com.quartetfs.fwk.types.impl.PluginValue

        name, plugin
      • Fields inherited from interface com.quartetfs.biz.pivot.context.IContextValueTranslator

        ALL_VALUE, BOOL_VALUE, DOUBLE_VALUE, ENUM_VALUE, INT_VALUE, LONG_VALUE, RANGE
    • Constructor Detail

      • PnLStartIndexTranslator

        public PnLStartIndexTranslator()
    • Method Detail

      • setEnv

        public void setEnv​(org.springframework.core.env.Environment env)
        Description copied from interface: ISpringEnvAware
        Set the implementation of Environment
        Specified by:
        setEnv in interface ISpringEnvAware
        Parameters:
        env - the implementation of Environment
      • getContextInterface

        public Class<IPnLStartIndex> getContextInterface()
        Specified by:
        getContextInterface in interface com.quartetfs.biz.pivot.context.IContextValueTranslator<IPnLStartIndex>
      • key

        public String key()
        Specified by:
        key in interface com.quartetfs.biz.pivot.context.IContextValueTranslator<IPnLStartIndex>
        Specified by:
        key in interface com.quartetfs.fwk.types.IPluginValue
      • createInstance

        protected IPnLStartIndex createInstance​(Integer content)
        Specified by:
        createInstance in class com.quartetfs.biz.pivot.context.impl.SimpleContextValueTranslator<Integer,​IPnLStartIndex>
      • getAvailableProperties

        public Map<String,​String> getAvailableProperties()
        Specified by:
        getAvailableProperties in interface com.quartetfs.biz.pivot.context.IContextValueTranslator<IPnLStartIndex>
        Overrides:
        getAvailableProperties in class com.quartetfs.biz.pivot.context.impl.IntegerContextValueTranslator<IPnLStartIndex>
      • parse

        protected Integer parse​(String property)
                         throws com.quartetfs.biz.pivot.context.ContextValueTranslationException
        Overrides:
        parse in class com.quartetfs.biz.pivot.context.impl.IntegerContextValueTranslator<IPnLStartIndex>
        Throws:
        com.quartetfs.biz.pivot.context.ContextValueTranslationException