Class ActualParametersImpl

    • Field Detail

      • NODE_ACTUAL_PARAMETERS

        protected static final java.lang.String NODE_ACTUAL_PARAMETERS
        Since:
        MicroStrategy Web 9.0.0
        See Also:
        Constant Field Values
    • Constructor Detail

      • ActualParametersImpl

        public ActualParametersImpl()
        Since:
        MicroStrategy Web 9.0.0
    • Method Detail

      • hasActualParameter

        public boolean hasActualParameter​(FormalParameter formalParameter)
        Description copied from interface: ActualParameters
        Determines whether an actual parameter exists for a given formal parameter.
        Specified by:
        hasActualParameter in interface ActualParameters
        Parameters:
        formalParameter - The FormalParameter who's actual you are looking for.
        Returns:
        True if an actual value exists for this formal parameter; false, otherwise.
      • getActualParameter

        public ActualParameter getActualParameter​(int index)
                                           throws java.lang.IndexOutOfBoundsException
        Description copied from interface: ActualParameters
        Retrieves a specific actual parameter at a given index in the collection.
        Specified by:
        getActualParameter in interface ActualParameters
        Parameters:
        index - of the object in collection.
        Returns:
        the ActualParameter object in the collection with the given index.
        Throws:
        java.lang.IndexOutOfBoundsException - thrown if the index is invalid.
      • getActualParameter

        public ActualParameter getActualParameter​(java.lang.String name)
                                           throws java.lang.IllegalArgumentException
        Description copied from interface: ActualParameters
        Retrieves the actual parameter with the given name.
        Specified by:
        getActualParameter in interface ActualParameters
        Parameters:
        name - the name of the actual parameter.
        Returns:
        the ActualParameter object with the given name.
        Throws:
        java.lang.IllegalArgumentException - thrown if no actual parameter has the given name.
      • getActualParameter

        public ActualParameter getActualParameter​(FormalParameter formalParam)
                                           throws java.lang.IllegalArgumentException
        Description copied from interface: ActualParameters
        Retrieves the actual parameter associated with the given formal parameter.
        Specified by:
        getActualParameter in interface ActualParameters
        Parameters:
        formalParam - the FormalParameter associated with the actual parameter.
        Returns:
        the ActualParameter object associated with the given formal parameter.
        Throws:
        java.lang.IllegalArgumentException - thrown if no actual parameter is associated with the given formal parameter object.
      • getNumMismatchedParams

        public int getNumMismatchedParams()
        Description copied from interface: ActualParameters
        Returns the number of actual parameters, whose name doesn't match a formal parameter.
        Specified by:
        getNumMismatchedParams in interface ActualParameters
        Returns:
        number of mismatched parameters in the collection.
      • remove

        public void remove​(FormalParameter formalParam)
                    throws java.lang.IllegalArgumentException
        Description copied from interface: ActualParameters
        Removes the ActualParameter object associated with the given formal parameter.
        Specified by:
        remove in interface ActualParameters
        Parameters:
        formalParam - the FormalParameter associated with the actual parameter.
        Throws:
        java.lang.IllegalArgumentException - thrown if no actual parameter is associated with the given formal parameter object.
      • newActualParameter

        public ActualParameter newActualParameter​(java.lang.String name)
                                           throws java.lang.IllegalArgumentException
        Description copied from interface: ActualParameters
        Creates a new ActualParameter object with the given name, and it adds it to the collection.
        Specified by:
        newActualParameter in interface ActualParameters
        Parameters:
        name - the name of the new ActualParameter object.
        Returns:
        the ActualParameter object created.
        Throws:
        java.lang.IllegalArgumentException - thrown if the name is null.
      • getActualParameters

        public java.util.Enumeration getActualParameters​(java.lang.String name)
                                                  throws java.lang.IllegalArgumentException
        Deprecated.
        The name of the actual parameter is now used as the key therefore this enumeration will return at most one value, the same as getActualParameter(String).
        Returns an enumeration with the list of actual parameters associated with the given name.
        Specified by:
        getActualParameters in interface ActualParameters
        Parameters:
        name - the actual parameter name
        Returns:
        an enumeration over the ActualParameter objects with the specified name
        Throws:
        java.lang.IllegalArgumentException - thrown if the name does not exist
        Since:
        MicroStrategy Web 8.0.0
      • getActualParameters

        public java.util.Enumeration getActualParameters​(FormalParameter formalParam)
                                                  throws java.lang.IllegalArgumentException
        Deprecated.
        The name of the actual parameter is now used as the key therefore this enumeration will return at most one value, the same as getActualParameter(String).
        Returns an enumeration with the list of actual parameters associated with the given FormalParameter.
        Specified by:
        getActualParameters in interface ActualParameters
        Parameters:
        formalParam - a FormalParameter
        Returns:
        an enumeration over the ActualParameter objects matching the specified FormalParameter.
        Throws:
        java.lang.IllegalArgumentException - if there is no such an ActualParameter matching the specified FormalParameter.
        Since:
        MicroStrategy Web 8.0.0
      • getListClass

        protected java.lang.Class getListClass()
        Description copied from class: AbstractElementList
        Returns the Class items beloging to this list will be instance of.
        Specified by:
        getListClass in class AbstractElementList
        Since:
        MicroStrategy Web 9.0.0
      • getListNodeName

        protected java.lang.String getListNodeName()
        Description copied from class: AbstractElementList
        Returns the name of the node representing children of this list.
        Specified by:
        getListNodeName in class AbstractElementList
        Since:
        MicroStrategy Web 9.0.0