Class MParameter


  • public class MParameter
    extends MProperty
    A parameter model element.
    • Field Detail

      • DIRECTION_IN

        public static final java.lang.String DIRECTION_IN
        The constant for direction in.
        See Also:
        Constant Field Values
      • DIRECTION_OUT

        public static final java.lang.String DIRECTION_OUT
        The constant for direction out.
        See Also:
        Constant Field Values
      • DIRECTION_INOUT

        public static final java.lang.String DIRECTION_INOUT
        The constant for direction inout.
        See Also:
        Constant Field Values
      • direction

        protected java.lang.String direction
        The direction.
    • Constructor Detail

      • MParameter

        public MParameter()
        Create a new parameter.
      • MParameter

        public MParameter​(java.lang.String direction,
                          ClassInfo clazz,
                          java.lang.String name,
                          UnparsedExpression initialval)
        Create a new parameter.
    • Method Detail

      • getDirection

        public java.lang.String getDirection()
        Get the direction.
        Returns:
        The direction.
      • setDirection

        public void setDirection​(java.lang.String direction)
        Set the direction.
        Parameters:
        direction - The direction to set.
      • isOut

        public boolean isOut()
        Test if parameter is out (i.e. out or inout).
        Returns:
        True, if is a out parameter.
      • isIn

        public boolean isIn()
        Test if parameter is in (i.e. in or inout).
        Returns:
        True, if is a in parameter.
      • setClazz

        public void setClazz​(ClassInfo clazz)
        Set the clazz.
        Overrides:
        setClazz in class MProperty
        Parameters:
        clazz - The clazz to set.
      • getName

        public java.lang.String getName()
        Get the name.
        Overrides:
        getName in class MProperty
        Returns:
        The name.
      • setName

        public void setName​(java.lang.String name)
        Set the name.
        Overrides:
        setName in class MProperty
        Parameters:
        name - The name to set.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class MProperty
        Returns:
        The string representation.