Package de.dfki.util.xmlrpc.common

Examples of de.dfki.util.xmlrpc.common.ApiParameter


//        if (toConvert == null)
//        {
//            throw( new TypeConversionException( "Object to convert must not be null" ) );
//        }
       
        ApiParameter p = ApiParameter.createFrom( userPrepresentationType );
        return( getTypeConverter().convertToXmlRpcRepresentation( p, toConvert ) );
    }
View Full Code Here


        if (xmlRpcRepresentation == null)
        {
            throw( new TypeConversionException( "Object to convert must not be null" ) );
        }

        ApiParameter p = ApiParameter.createFrom( targetClass );
        Object result = getTypeConverter().convertToUserRepresentation( p, xmlRpcRepresentation );
       
        //Note: a Class.cast( Object ) call will not manage to convert, e.g. an Integer to primitive int
        return( (T)result  );
    }
View Full Code Here

//            throw( new MethodCallParameterException( "Parameter must not be null" ) );
//        }
       
        try
        {
            ApiParameter parameter = getMethodSignature().getParameterAt( getParameterCount() );
            Object toAdd = XmlRpc.getTypeConverter().convertToXmlRpcRepresentation( parameter, param );
           
            getParameters().add( getParameterCount(), toAdd );
            incParameterCount();
        }
View Full Code Here

  
    public Object convertReturnValueToUserRepresentation( Object xmlReturnValue )
        throws TypeConversionException
    {
        final ApiParameter returnParam = getMethodSignature().getReturnParameter();
       
        Object result = XmlRpc.getTypeConverter().convertToUserRepresentation( returnParam, xmlReturnValue );
       
        return( result );
    }
View Full Code Here

TOP

Related Classes of de.dfki.util.xmlrpc.common.ApiParameter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.