Class MapScriptObject<T>

  • Type Parameters:
    T - the type of object stored in the underlying map.
    All Implemented Interfaces:
    com.redwood.scheduler.api.scripting.ScriptObject

    public class MapScriptObject<T>
    extends Object
    implements com.redwood.scheduler.api.scripting.ScriptObject
    REDWOOD INTERNAL USE ONLY. NOT FOR CUSTOMER USE.
    • Constructor Detail

      • MapScriptObject

        public MapScriptObject​(Map<String,​T> initMembers)
    • Method Detail

      • getMember

        public T getMember​(String name)
                    throws com.redwood.scheduler.api.scripting.NoSuchIdentifierException
        Description copied from interface: com.redwood.scheduler.api.scripting.ScriptObject
        Get the member named name, or throw an exception, when the member does not exist. When calling ScriptObject.getMember(String) via scripting it is required that this implementation returns this when the argument name is null. ModuleScriptingObject makes it then possible to call <@link #getMember(String)} directly in REL e.g. columns.getMember('Area Code') or parameters.getMember('Company')
        Specified by:
        getMember in interface com.redwood.scheduler.api.scripting.ScriptObject
        Parameters:
        name - the name of the member, or nul
        Returns:
        the member value.
        Throws:
        com.redwood.scheduler.api.scripting.NoSuchIdentifierException - if the member does not exist.