⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jco$functiontemplate.java

📁 SAP这个系统的一个转换器
💻 JAVA
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   JCO.java

package com.sap.mw.jco;

import java.util.Vector;

// Referenced classes of package com.sap.mw.jco:
//            IFunctionTemplate, JCO, IMetaData

public static class JCO$FunctionTemplate
    implements IFunctionTemplate
{

    public Object clone()
    {
        try
        {
            return (IFunctionTemplate)super.clone();
        }
        catch(CloneNotSupportedException ex)
        {
            return null;
        }
    }

    public String getName()
    {
        return name;
    }

    public IMetaData getImportParameterList()
    {
        return import_parameters;
    }

    public IMetaData getExportParameterList()
    {
        return export_parameters;
    }

    public IMetaData getTableParameterList()
    {
        return table_parameters;
    }

    public table_parameters[] getExceptionList()
    {
        return exception_list;
    }

    public JCO$AbapException getException(String key)
    {
        if(exception_list == null)
            return null;
        for(int i = 0; i < exception_list.length; i++)
            if(exception_list[i].getKey().equalsIgnoreCase(key))
            {
                JCO$AbapException ex = exception_list[i];
                return new it>(ex.getKey(), ex.getMessage() != null ? ex.getMessage() : ex.getKey());
            }

        return null;
    }

    public it> getFunction()
    {
        return new it>(this);
    }

    public JCO$Request getRequest()
    {
        a request_meta_data = null;
        a response_meta_data = null;
        if(import_parameters != null)
        {
            request_meta_data = new JCO$MetaData(import_parameters);
            request_meta_data. = name;
        } else
        {
            request_meta_data = new JCO$MetaData(name);
        }
        if(table_parameters != null)
        {
            int num_tables = table_parameters == null ? 0 : table_parameters.getFieldCount();
            for(int i = 0; i < num_tables; i++)
                request_meta_data.addInfo(table_parameters.getName(i), table_parameters.getType(i), table_parameters.getLength(i), table_parameters.getInternalLength(i), -1, table_parameters.getDecimals(i), table_parameters.getDefault(i), table_parameters.getDescription(i), ((JCO$MetaData)table_parameters).(i) | 0x40, table_parameters.getMetaData(i), table_parameters.getExtendedFieldMetaData(i));

        }
        if(export_parameters != null)
        {
            response_meta_data = new export_parameters(export_parameters);
            response_meta_data. = name;
        } else
        {
            response_meta_data = new name(name);
        }
        if(table_parameters != null)
        {
            int num_tables = table_parameters == null ? 0 : table_parameters.getFieldCount();
            for(int i = 0; i < num_tables; i++)
                response_meta_data.addInfo(table_parameters.getName(i), table_parameters.getType(i), table_parameters.getLength(i), table_parameters.getInternalLength(i), -1, table_parameters.getDecimals(i), table_parameters.getDefault(i), table_parameters.getDescription(i), ((ion)table_parameters).(i) | 0x40, table_parameters.getMetaData(i), table_parameters.getExtendedFieldMetaData(i));

        }
        return new FieldMetaData(request_meta_data, response_meta_data, getExceptionList());
    }

    public String toString()
    {
        StringBuffer sb = new StringBuffer();
        sb.append("Function:  " + JCO.CRLF + name + JCO.CRLF);
        sb.append("Input:     " + JCO.CRLF + import_parameters);
        sb.append("Output:    " + JCO.CRLF + export_parameters);
        sb.append("Tables:    " + JCO.CRLF + table_parameters);
        sb.append("Exceptions:");
        if(exception_list != null)
        {
            for(int i = 0; i < exception_list.length; i++)
                sb.append(exception_list[i].getKey() + "  (" + exception_list[i].getMessage() + ")" + JCO.CRLF);

        }
        return sb.toString();
    }

    private String name;
    private IMetaData import_parameters;
    private IMetaData export_parameters;
    private IMetaData table_parameters;
    private exception_list exception_list[];

    public JCO$FunctionTemplate(String name, IMetaData input, IMetaData output, IMetaData tables, Vector exceptions)
    {
        this.name = name;
        import_parameters = input;
        export_parameters = output;
        table_parameters = tables;
        if(exceptions != null && exceptions.size() > 0)
        {
            exception_list = new JCO$AbapException[exceptions.size()];
            exceptions.copyInto(exception_list);
        }
    }

    public JCO$FunctionTemplate(String name, IMetaData input, IMetaData output, IMetaData tables, JCO$AbapException exceptions[])
    {
        this.name = name;
        import_parameters = input;
        export_parameters = output;
        table_parameters = tables;
        exception_list = exceptions;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -