Java Code Examples for org.omg.CORBA.ParameterMode

The following are top voted examples for showing how to use org.omg.CORBA.ParameterMode. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: OpenJSharp   File: RequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * Internal utility method to convert an NVList into a PI Parameter[]
 */
protected Parameter[] nvListToParameterArray( NVList parNVList ) {

    // _REVISIT_ This utility method should probably be doing a deep
    // copy so interceptor can't accidentally change the arguments.

    int count = parNVList.count();
    Parameter[] plist = new Parameter[count];
    try {
        for( int i = 0; i < count; i++ ) {
            Parameter p = new Parameter();
            plist[i] = p;
            NamedValue nv = parNVList.item( i );
            plist[i].argument = nv.value();
            // ParameterMode spec can be found in 99-10-07.pdf
            // Section:10.5.22
            // nv.flags spec can be found in 99-10-07.pdf
            // Section 7.1.1
            // nv.flags has ARG_IN as 1, ARG_OUT as 2 and ARG_INOUT as 3
            // To convert this into enum PARAM_IN, PARAM_OUT and
            // PARAM_INOUT the value is subtracted by 1.
            plist[i].mode = ParameterMode.from_int( nv.flags() - 1 );
        }
    } catch ( Exception e ) {
        throw wrapper.exceptionInArguments( e ) ;
    }

    return plist;
}
 
Example 2
Project: openjdk-jdk10   File: RequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * Internal utility method to convert an NVList into a PI Parameter[]
 */
protected Parameter[] nvListToParameterArray( NVList parNVList ) {

    // _REVISIT_ This utility method should probably be doing a deep
    // copy so interceptor can't accidentally change the arguments.

    int count = parNVList.count();
    Parameter[] plist = new Parameter[count];
    try {
        for( int i = 0; i < count; i++ ) {
            Parameter p = new Parameter();
            plist[i] = p;
            NamedValue nv = parNVList.item( i );
            plist[i].argument = nv.value();
            // ParameterMode spec can be found in 99-10-07.pdf
            // Section:10.5.22
            // nv.flags spec can be found in 99-10-07.pdf
            // Section 7.1.1
            // nv.flags has ARG_IN as 1, ARG_OUT as 2 and ARG_INOUT as 3
            // To convert this into enum PARAM_IN, PARAM_OUT and
            // PARAM_INOUT the value is subtracted by 1.
            plist[i].mode = ParameterMode.from_int( nv.flags() - 1 );
        }
    } catch ( Exception e ) {
        throw wrapper.exceptionInArguments( e ) ;
    }

    return plist;
}
 
Example 3
Project: openjdk9   File: RequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * Internal utility method to convert an NVList into a PI Parameter[]
 */
protected Parameter[] nvListToParameterArray( NVList parNVList ) {

    // _REVISIT_ This utility method should probably be doing a deep
    // copy so interceptor can't accidentally change the arguments.

    int count = parNVList.count();
    Parameter[] plist = new Parameter[count];
    try {
        for( int i = 0; i < count; i++ ) {
            Parameter p = new Parameter();
            plist[i] = p;
            NamedValue nv = parNVList.item( i );
            plist[i].argument = nv.value();
            // ParameterMode spec can be found in 99-10-07.pdf
            // Section:10.5.22
            // nv.flags spec can be found in 99-10-07.pdf
            // Section 7.1.1
            // nv.flags has ARG_IN as 1, ARG_OUT as 2 and ARG_INOUT as 3
            // To convert this into enum PARAM_IN, PARAM_OUT and
            // PARAM_INOUT the value is subtracted by 1.
            plist[i].mode = ParameterMode.from_int( nv.flags() - 1 );
        }
    } catch ( Exception e ) {
        throw wrapper.exceptionInArguments( e ) ;
    }

    return plist;
}
 
Example 4
Project: lookaside_java-1.8.0-openjdk   File: RequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * Internal utility method to convert an NVList into a PI Parameter[]
 */
protected Parameter[] nvListToParameterArray( NVList parNVList ) {

    // _REVISIT_ This utility method should probably be doing a deep
    // copy so interceptor can't accidentally change the arguments.

    int count = parNVList.count();
    Parameter[] plist = new Parameter[count];
    try {
        for( int i = 0; i < count; i++ ) {
            Parameter p = new Parameter();
            plist[i] = p;
            NamedValue nv = parNVList.item( i );
            plist[i].argument = nv.value();
            // ParameterMode spec can be found in 99-10-07.pdf
            // Section:10.5.22
            // nv.flags spec can be found in 99-10-07.pdf
            // Section 7.1.1
            // nv.flags has ARG_IN as 1, ARG_OUT as 2 and ARG_INOUT as 3
            // To convert this into enum PARAM_IN, PARAM_OUT and
            // PARAM_INOUT the value is subtracted by 1.
            plist[i].mode = ParameterMode.from_int( nv.flags() - 1 );
        }
    } catch ( Exception e ) {
        throw wrapper.exceptionInArguments( e ) ;
    }

    return plist;
}
 
Example 5
Project: jdk8u_corba   File: RequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * Internal utility method to convert an NVList into a PI Parameter[]
 */
protected Parameter[] nvListToParameterArray( NVList parNVList ) {

    // _REVISIT_ This utility method should probably be doing a deep
    // copy so interceptor can't accidentally change the arguments.

    int count = parNVList.count();
    Parameter[] plist = new Parameter[count];
    try {
        for( int i = 0; i < count; i++ ) {
            Parameter p = new Parameter();
            plist[i] = p;
            NamedValue nv = parNVList.item( i );
            plist[i].argument = nv.value();
            // ParameterMode spec can be found in 99-10-07.pdf
            // Section:10.5.22
            // nv.flags spec can be found in 99-10-07.pdf
            // Section 7.1.1
            // nv.flags has ARG_IN as 1, ARG_OUT as 2 and ARG_INOUT as 3
            // To convert this into enum PARAM_IN, PARAM_OUT and
            // PARAM_INOUT the value is subtracted by 1.
            plist[i].mode = ParameterMode.from_int( nv.flags() - 1 );
        }
    } catch ( Exception e ) {
        throw wrapper.exceptionInArguments( e ) ;
    }

    return plist;
}
 
Example 6
Project: javify   File: gnuClientRequestInfo.java   View source code 5 votes vote down vote up
/** @inheritDoc */
public Parameter[] arguments()
{
  request.checkDii();

  NVList args = request.arguments();
  Parameter[] p = new Parameter[ args.count() ];
  try
    {
      for (int i = 0; i < p.length; i++)
        {
          ParameterMode mode;

          switch (args.item(i).flags())
            {
              case ARG_IN.value :
                mode = ParameterMode.PARAM_IN;
                break;

              case ARG_OUT.value :
                mode = ParameterMode.PARAM_OUT;
                break;

              case ARG_INOUT.value :
                mode = ParameterMode.PARAM_INOUT;
                break;

              default :
                throw new Unexpected();
            }

          p [ i ] = new Parameter(args.item(i).value(), mode);
        }
    }
  catch (Bounds e)
    {
      throw new Unexpected(e);
    }
  return p;
}
 
Example 7
Project: jvm-stm   File: gnuClientRequestInfo.java   View source code 5 votes vote down vote up
/** @inheritDoc */
public Parameter[] arguments()
{
  request.checkDii();

  NVList args = request.arguments();
  Parameter[] p = new Parameter[ args.count() ];
  try
    {
      for (int i = 0; i < p.length; i++)
        {
          ParameterMode mode;

          switch (args.item(i).flags())
            {
              case ARG_IN.value :
                mode = ParameterMode.PARAM_IN;
                break;

              case ARG_OUT.value :
                mode = ParameterMode.PARAM_OUT;
                break;

              case ARG_INOUT.value :
                mode = ParameterMode.PARAM_INOUT;
                break;

              default :
                throw new Unexpected();
            }

          p [ i ] = new Parameter(args.item(i).value(), mode);
        }
    }
  catch (Bounds e)
    {
      throw new Unexpected(e);
    }
  return p;
}
 
Example 8
Project: infobip-open-jdk-8   File: RequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * Internal utility method to convert an NVList into a PI Parameter[]
 */
protected Parameter[] nvListToParameterArray( NVList parNVList ) {

    // _REVISIT_ This utility method should probably be doing a deep
    // copy so interceptor can't accidentally change the arguments.

    int count = parNVList.count();
    Parameter[] plist = new Parameter[count];
    try {
        for( int i = 0; i < count; i++ ) {
            Parameter p = new Parameter();
            plist[i] = p;
            NamedValue nv = parNVList.item( i );
            plist[i].argument = nv.value();
            // ParameterMode spec can be found in 99-10-07.pdf
            // Section:10.5.22
            // nv.flags spec can be found in 99-10-07.pdf
            // Section 7.1.1
            // nv.flags has ARG_IN as 1, ARG_OUT as 2 and ARG_INOUT as 3
            // To convert this into enum PARAM_IN, PARAM_OUT and
            // PARAM_INOUT the value is subtracted by 1.
            plist[i].mode = ParameterMode.from_int( nv.flags() - 1 );
        }
    } catch ( Exception e ) {
        throw wrapper.exceptionInArguments( e ) ;
    }

    return plist;
}
 
Example 9
Project: openjdk-source-code-learn   File: RequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * Internal utility method to convert an NVList into a PI Parameter[]
 */
protected Parameter[] nvListToParameterArray( NVList parNVList ) {

    // _REVISIT_ This utility method should probably be doing a deep
    // copy so interceptor can't accidentally change the arguments.

    int count = parNVList.count();
    Parameter[] plist = new Parameter[count];
    try {
        for( int i = 0; i < count; i++ ) {
            Parameter p = new Parameter();
            plist[i] = p;
            NamedValue nv = parNVList.item( i );
            plist[i].argument = nv.value();
            // ParameterMode spec can be found in 99-10-07.pdf
            // Section:10.5.22
            // nv.flags spec can be found in 99-10-07.pdf
            // Section 7.1.1
            // nv.flags has ARG_IN as 1, ARG_OUT as 2 and ARG_INOUT as 3
            // To convert this into enum PARAM_IN, PARAM_OUT and
            // PARAM_INOUT the value is subtracted by 1.
            plist[i].mode = ParameterMode.from_int( nv.flags() - 1 );
        }
    } catch ( Exception e ) {
        throw wrapper.exceptionInArguments( e ) ;
    }

    return plist;
}
 
Example 10
Project: OLD-OpenJDK8   File: RequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * Internal utility method to convert an NVList into a PI Parameter[]
 */
protected Parameter[] nvListToParameterArray( NVList parNVList ) {

    // _REVISIT_ This utility method should probably be doing a deep
    // copy so interceptor can't accidentally change the arguments.

    int count = parNVList.count();
    Parameter[] plist = new Parameter[count];
    try {
        for( int i = 0; i < count; i++ ) {
            Parameter p = new Parameter();
            plist[i] = p;
            NamedValue nv = parNVList.item( i );
            plist[i].argument = nv.value();
            // ParameterMode spec can be found in 99-10-07.pdf
            // Section:10.5.22
            // nv.flags spec can be found in 99-10-07.pdf
            // Section 7.1.1
            // nv.flags has ARG_IN as 1, ARG_OUT as 2 and ARG_INOUT as 3
            // To convert this into enum PARAM_IN, PARAM_OUT and
            // PARAM_INOUT the value is subtracted by 1.
            plist[i].mode = ParameterMode.from_int( nv.flags() - 1 );
        }
    } catch ( Exception e ) {
        throw wrapper.exceptionInArguments( e ) ;
    }

    return plist;
}
 
Example 11
Project: JamVM-PH   File: gnuClientRequestInfo.java   View source code 5 votes vote down vote up
/** @inheritDoc */
public Parameter[] arguments()
{
  request.checkDii();

  NVList args = request.arguments();
  Parameter[] p = new Parameter[ args.count() ];
  try
    {
      for (int i = 0; i < p.length; i++)
        {
          ParameterMode mode;

          switch (args.item(i).flags())
            {
              case ARG_IN.value :
                mode = ParameterMode.PARAM_IN;
                break;

              case ARG_OUT.value :
                mode = ParameterMode.PARAM_OUT;
                break;

              case ARG_INOUT.value :
                mode = ParameterMode.PARAM_INOUT;
                break;

              default :
                throw new Unexpected();
            }

          p [ i ] = new Parameter(args.item(i).value(), mode);
        }
    }
  catch (Bounds e)
    {
      throw new Unexpected(e);
    }
  return p;
}
 
Example 12
Project: openjdk-orb   File: RequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * Internal utility method to convert an NVList into a PI Parameter[]
 */
protected Parameter[] nvListToParameterArray( NVList parNVList ) {

    // _REVISIT_ This utility method should probably be doing a deep
    // copy so interceptor can't accidentally change the arguments.

    int count = parNVList.count();
    Parameter[] plist = new Parameter[count];
    try {
        for( int i = 0; i < count; i++ ) {
            Parameter p = new Parameter();
            plist[i] = p;
            NamedValue nv = parNVList.item( i );
            plist[i].argument = nv.value();
            // ParameterMode spec can be found in 99-10-07.pdf
            // Section:10.5.22
            // nv.flags spec can be found in 99-10-07.pdf
            // Section 7.1.1
            // nv.flags has ARG_IN as 1, ARG_OUT as 2 and ARG_INOUT as 3
            // To convert this into enum PARAM_IN, PARAM_OUT and
            // PARAM_INOUT the value is subtracted by 1.
            plist[i].mode = ParameterMode.from_int( nv.flags() - 1 );
        }
    } catch ( Exception e ) {
        throw wrapper.exceptionInArguments( e ) ;
    }

    return plist;
}
 
Example 13
Project: classpath   File: gnuClientRequestInfo.java   View source code 5 votes vote down vote up
/** @inheritDoc */
public Parameter[] arguments()
{
  request.checkDii();

  NVList args = request.arguments();
  Parameter[] p = new Parameter[ args.count() ];
  try
    {
      for (int i = 0; i < p.length; i++)
        {
          ParameterMode mode;

          switch (args.item(i).flags())
            {
              case ARG_IN.value :
                mode = ParameterMode.PARAM_IN;
                break;

              case ARG_OUT.value :
                mode = ParameterMode.PARAM_OUT;
                break;

              case ARG_INOUT.value :
                mode = ParameterMode.PARAM_INOUT;
                break;

              default :
                throw new Unexpected();
            }

          p [ i ] = new Parameter(args.item(i).value(), mode);
        }
    }
  catch (Bounds e)
    {
      throw new Unexpected(e);
    }
  return p;
}
 
Example 14
Project: openjdk-icedtea7   File: RequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * Internal utility method to convert an NVList into a PI Parameter[]
 */
protected Parameter[] nvListToParameterArray( NVList parNVList ) {

    // _REVISIT_ This utility method should probably be doing a deep
    // copy so interceptor can't accidentally change the arguments.

    int count = parNVList.count();
    Parameter[] plist = new Parameter[count];
    try {
        for( int i = 0; i < count; i++ ) {
            Parameter p = new Parameter();
            plist[i] = p;
            NamedValue nv = parNVList.item( i );
            plist[i].argument = nv.value();
            // ParameterMode spec can be found in 99-10-07.pdf
            // Section:10.5.22
            // nv.flags spec can be found in 99-10-07.pdf
            // Section 7.1.1
            // nv.flags has ARG_IN as 1, ARG_OUT as 2 and ARG_INOUT as 3
            // To convert this into enum PARAM_IN, PARAM_OUT and
            // PARAM_INOUT the value is subtracted by 1.
            plist[i].mode = ParameterMode.from_int( nv.flags() - 1 );
        }
    } catch ( Exception e ) {
        throw wrapper.exceptionInArguments( e ) ;
    }

    return plist;
}
 
Example 15
Project: javify   File: Parameter.java   View source code 4 votes vote down vote up
/**
 * Create an instance, initialising field to the passed values.
 */
public Parameter(Any an_argument, ParameterMode a_mode)
{
  argument = an_argument;
  mode = a_mode;
}
 
Example 16
Project: javify   File: gnuServerRequestInfo.java   View source code 4 votes vote down vote up
/** @inheritDoc */
public Parameter[] arguments()
{
  if (m_request == null)
    {
      throw new NO_RESOURCES(not_available);
    }

  m_request.checkDii();

  NVList args = m_request.arguments();
  Parameter[] p = new Parameter[ args.count() ];
  try
    {
      for (int i = 0; i < p.length; i++)
        {
          ParameterMode mode;

          switch (args.item(i).flags())
            {
              case ARG_IN.value :
                mode = ParameterMode.PARAM_IN;
                break;

              case ARG_OUT.value :
                mode = ParameterMode.PARAM_OUT;
                break;

              case ARG_INOUT.value :
                mode = ParameterMode.PARAM_INOUT;
                break;

              default :
                throw new Unexpected();
            }

          p [ i ] = new Parameter(args.item(i).value(), mode);
        }
    }
  catch (Bounds e)
    {
      throw new Unexpected(e);
    }
  return p;
}
 
Example 17
Project: jvm-stm   File: Parameter.java   View source code 4 votes vote down vote up
/**
 * Create an instance, initialising field to the passed values.
 */
public Parameter(Any an_argument, ParameterMode a_mode)
{
  argument = an_argument;
  mode = a_mode;
}
 
Example 18
Project: jvm-stm   File: gnuServerRequestInfo.java   View source code 4 votes vote down vote up
/** @inheritDoc */
public Parameter[] arguments()
{
  if (m_request == null)
    {
      throw new NO_RESOURCES(not_available);
    }

  m_request.checkDii();

  NVList args = m_request.arguments();
  Parameter[] p = new Parameter[ args.count() ];
  try
    {
      for (int i = 0; i < p.length; i++)
        {
          ParameterMode mode;

          switch (args.item(i).flags())
            {
              case ARG_IN.value :
                mode = ParameterMode.PARAM_IN;
                break;

              case ARG_OUT.value :
                mode = ParameterMode.PARAM_OUT;
                break;

              case ARG_INOUT.value :
                mode = ParameterMode.PARAM_INOUT;
                break;

              default :
                throw new Unexpected();
            }

          p [ i ] = new Parameter(args.item(i).value(), mode);
        }
    }
  catch (Bounds e)
    {
      throw new Unexpected(e);
    }
  return p;
}
 
Example 19
Project: JamVM-PH   File: Parameter.java   View source code 4 votes vote down vote up
/**
 * Create an instance, initialising field to the passed values.
 */
public Parameter(Any an_argument, ParameterMode a_mode)
{
  argument = an_argument;
  mode = a_mode;
}
 
Example 20
Project: JamVM-PH   File: gnuServerRequestInfo.java   View source code 4 votes vote down vote up
/** @inheritDoc */
public Parameter[] arguments()
{
  if (m_request == null)
    {
      throw new NO_RESOURCES(not_available);
    }

  m_request.checkDii();

  NVList args = m_request.arguments();
  Parameter[] p = new Parameter[ args.count() ];
  try
    {
      for (int i = 0; i < p.length; i++)
        {
          ParameterMode mode;

          switch (args.item(i).flags())
            {
              case ARG_IN.value :
                mode = ParameterMode.PARAM_IN;
                break;

              case ARG_OUT.value :
                mode = ParameterMode.PARAM_OUT;
                break;

              case ARG_INOUT.value :
                mode = ParameterMode.PARAM_INOUT;
                break;

              default :
                throw new Unexpected();
            }

          p [ i ] = new Parameter(args.item(i).value(), mode);
        }
    }
  catch (Bounds e)
    {
      throw new Unexpected(e);
    }
  return p;
}
 
Example 21
Project: classpath   File: Parameter.java   View source code 4 votes vote down vote up
/**
 * Create an instance, initialising field to the passed values.
 */
public Parameter(Any an_argument, ParameterMode a_mode)
{
  argument = an_argument;
  mode = a_mode;
}
 
Example 22
Project: classpath   File: gnuServerRequestInfo.java   View source code 4 votes vote down vote up
/** @inheritDoc */
public Parameter[] arguments()
{
  if (m_request == null)
    {
      throw new NO_RESOURCES(not_available);
    }

  m_request.checkDii();

  NVList args = m_request.arguments();
  Parameter[] p = new Parameter[ args.count() ];
  try
    {
      for (int i = 0; i < p.length; i++)
        {
          ParameterMode mode;

          switch (args.item(i).flags())
            {
              case ARG_IN.value :
                mode = ParameterMode.PARAM_IN;
                break;

              case ARG_OUT.value :
                mode = ParameterMode.PARAM_OUT;
                break;

              case ARG_INOUT.value :
                mode = ParameterMode.PARAM_INOUT;
                break;

              default :
                throw new Unexpected();
            }

          p [ i ] = new Parameter(args.item(i).value(), mode);
        }
    }
  catch (Bounds e)
    {
      throw new Unexpected(e);
    }
  return p;
}