Java Code Examples for org.omg.Dynamic.Parameter

The following examples show how to use org.omg.Dynamic.Parameter. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
/**
 * See ServerRequestInfo for javadocs.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( !isDynamic ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        if( dsiArguments == null ) {
            throw stdWrapper.piOperationNotSupported8() ;
        }

        // If it is a DSI request then get the arguments from the DSI req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( dsiArguments );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 2
/**
 * See RequestInfoImpl for javadoc.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        // If it is DII request then get the arguments from the DII req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( request.arguments() );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 3
/**
 * See ServerRequestInfo for javadocs.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( !isDynamic ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        if( dsiArguments == null ) {
            throw stdWrapper.piOperationNotSupported8() ;
        }

        // If it is a DSI request then get the arguments from the DSI req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( dsiArguments );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 4
/**
 * See RequestInfoImpl for javadoc.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        // If it is DII request then get the arguments from the DII req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( request.arguments() );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 5
/**
 * See ServerRequestInfo for javadocs.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( !isDynamic ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        if( dsiArguments == null ) {
            throw stdWrapper.piOperationNotSupported8() ;
        }

        // If it is a DSI request then get the arguments from the DSI req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( dsiArguments );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 6
/**
 * See RequestInfoImpl for javadoc.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        // If it is DII request then get the arguments from the DII req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( request.arguments() );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 7
Source Project: JDKSourceCode1.8   Source File: ServerRequestInfoImpl.java    License: MIT License 6 votes vote down vote up
/**
 * See ServerRequestInfo for javadocs.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( !isDynamic ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        if( dsiArguments == null ) {
            throw stdWrapper.piOperationNotSupported8() ;
        }

        // If it is a DSI request then get the arguments from the DSI req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( dsiArguments );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 8
Source Project: JDKSourceCode1.8   Source File: ClientRequestInfoImpl.java    License: MIT License 6 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        // If it is DII request then get the arguments from the DII req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( request.arguments() );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 9
/**
 * See ServerRequestInfo for javadocs.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( !isDynamic ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        if( dsiArguments == null ) {
            throw stdWrapper.piOperationNotSupported8() ;
        }

        // If it is a DSI request then get the arguments from the DSI req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( dsiArguments );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 10
/**
 * See RequestInfoImpl for javadoc.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        // If it is DII request then get the arguments from the DII req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( request.arguments() );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 11
/**
 * See ServerRequestInfo for javadocs.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( !isDynamic ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        if( dsiArguments == null ) {
            throw stdWrapper.piOperationNotSupported8() ;
        }

        // If it is a DSI request then get the arguments from the DSI req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( dsiArguments );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 12
/**
 * See RequestInfoImpl for javadoc.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        // If it is DII request then get the arguments from the DII req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( request.arguments() );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 13
/**
 * See ServerRequestInfo for javadocs.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( !isDynamic ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        if( dsiArguments == null ) {
            throw stdWrapper.piOperationNotSupported8() ;
        }

        // If it is a DSI request then get the arguments from the DSI req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( dsiArguments );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 14
/**
 * See RequestInfoImpl for javadoc.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        // If it is DII request then get the arguments from the DII req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( request.arguments() );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 15
Source Project: hottub   Source File: ServerRequestInfoImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * See ServerRequestInfo for javadocs.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( !isDynamic ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        if( dsiArguments == null ) {
            throw stdWrapper.piOperationNotSupported8() ;
        }

        // If it is a DSI request then get the arguments from the DSI req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( dsiArguments );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 16
Source Project: hottub   Source File: ClientRequestInfoImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        // If it is DII request then get the arguments from the DII req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( request.arguments() );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 17
/**
 * See ServerRequestInfo for javadocs.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( !isDynamic ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        if( dsiArguments == null ) {
            throw stdWrapper.piOperationNotSupported8() ;
        }

        // If it is a DSI request then get the arguments from the DSI req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( dsiArguments );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 18
/**
 * See RequestInfoImpl for javadoc.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        // If it is DII request then get the arguments from the DII req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( request.arguments() );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 19
/**
 * See ServerRequestInfo for javadocs.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( !isDynamic ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        if( dsiArguments == null ) {
            throw stdWrapper.piOperationNotSupported8() ;
        }

        // If it is a DSI request then get the arguments from the DSI req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( dsiArguments );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 20
/**
 * See RequestInfoImpl for javadoc.
 */
public Parameter[] arguments (){
    checkAccess( MID_ARGUMENTS );

    if( cachedArguments == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported1() ;
        }

        // If it is DII request then get the arguments from the DII req
        // and convert that into parameters.
        cachedArguments = nvListToParameterArray( request.arguments() );
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the Parameter[] array.  We also assume
    // they will not change the values of the containing Anys.

    return cachedArguments;
}
 
Example 21
Source Project: jdk1.8-source-analysis   Source File: RequestInfoImpl.java    License: Apache License 2.0 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 22
/**
 * 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 23
Source Project: jdk8u60   Source File: RequestInfoImpl.java    License: GNU General Public License v2.0 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 24
Source Project: JDKSourceCode1.8   Source File: RequestInfoImpl.java    License: MIT License 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 25
/**
 * 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 26
/**
 * 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 27
Source Project: openjdk-jdk9   Source File: RequestInfoImpl.java    License: GNU General Public License v2.0 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 28
Source Project: hottub   Source File: RequestInfoImpl.java    License: GNU General Public License v2.0 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 29
/**
 * 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 30
Source Project: openjdk-8   Source File: RequestInfoImpl.java    License: GNU General Public License v2.0 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;
}