Package org.codehaus.xfire.aegis.type

Examples of org.codehaus.xfire.aegis.type.Type


        TypeMapping tm = (TypeMapping) context.getService().getProperty(AegisBindingProvider.TYPE_MAPPING_KEY);
        if (tm == null)
        {
            tm = getTypeMapping();
        }
        Type type = tm.getType( clazz );

        if (null != type)
        {
            return type;
        }
View Full Code Here


     * Get the type class for the field with the specified QName.
     */
    public Type getType(QName name)
    {
        // 1. Try a prexisting mapped type
        Type type = (Type) mappedName2type.get(name);

        // 2. Try to get the type by its name, if there is one
        if (type == null)
        {
            QName typeName = getMappedTypeName(name);
View Full Code Here

     * @param name
     * @return
     */
    public boolean isNillable(QName name)
    {
        Type type = getType(name);
        if (!type.isNillable())
            return false;
        return nillable;
    }
View Full Code Here

    protected Type createHolderType(TypeClassInfo info)
    {
        Class heldCls = getComponentType(info.getGenericType(), 0);
       
        info.setTypeClass(heldCls);
        Type delegate = createTypeForClass(info);

        HolderType type = new HolderType(delegate);
        return type;
    }
View Full Code Here

            if (processOutput)
            {
                Service service = context.getService();
                AegisBindingProvider provider = (AegisBindingProvider) service.getBindingProvider();
               
                Type type = provider.getType(service, outputClass);
               
                Object in = type.readObject(new ElementReader(message.getXMLStreamReader()), context);
               
                List<Object> parameters = new ArrayList<Object>();
               
                for (Iterator itr = outputPDs.iterator(); itr.hasNext();)
                {
                    PropertyDescriptor pd = (PropertyDescriptor) itr.next();
                   
                    try
                    {
                        Object val = getReadMethod(outputClass, pd).invoke(in, new Object[] {});
                        parameters.add(val);
                    }
                    catch (Exception e)
                    {
                        throw new XFireRuntimeException("Couldn't read property " + pd.getName(), e);
                    }
                }
                message.setBody(parameters);
            } else {
                delegate.readMessage(message, context);
            }
        } else {
            if (processInput)
            {
                Service service = context.getService();
                AegisBindingProvider provider = (AegisBindingProvider) service.getBindingProvider();
               
                Type type = provider.getType(service, inputClass);
   
                Object in = type.readObject(new ElementReader(message.getXMLStreamReader()), context);
               
                List<Object> parameters = new ArrayList<Object>();
               
                for (Iterator itr = inputPDs.iterator(); itr.hasNext();)
                {
View Full Code Here

          Object[] params = (Object[]) message.getBody();
           
            Service service = context.getService();
            AegisBindingProvider provider = (AegisBindingProvider) service.getBindingProvider();
           
            Type type = provider.getType(service, outputClass);

            Object out;
            try
            {
                out = outputClass.newInstance();
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.aegis.type.Type

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.