jdk/src/share/classes/com/sun/pept/presentation/MessageStruct.java
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 * have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
/** Java interface "MessageStruct.java" generated from Poseidon for UML.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
 *  Poseidon for UML is developed by <A HREF="http://www.gentleware.com">Gentleware</A>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
 *  Generated with <A HREF="http://jakarta.apache.org/velocity/">velocity</A> template engine.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
package com.sun.pept.presentation;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.util.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import java.lang.reflect.Method;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * @author Dr. Harold Carr
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
public interface MessageStruct {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
  ///////////////////////////////////////
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
  //attributes
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * Represents ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
    public static final int NORMAL_RESPONSE = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * Represents ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
    public static final int CHECKED_EXCEPTION_RESPONSE = 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
 * Represents ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    public static final int UNCHECKED_EXCEPTION_RESPONSE = 2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
 * Represents ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
    public static final int REQUEST_RESPONSE_MEP = 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
 * Represents ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    public static final int ONE_WAY_MEP = 2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
 * Represents ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    public static final int ASYNC_POLL_MEP = 3;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
 * Represents ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    public static final int ASYNC_CALLBACK_MEP = 4;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
  ///////////////////////////////////////
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
  // operations
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
 * Does ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
 * @param data ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
    public void setData(Object[] data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
 * Does ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
 * @return a Object[] with ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    public Object[] getData();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
 * Does ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
 * @param name ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
 * @param value ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
    public void setMetaData(Object name, Object value);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
 * Does ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
 * @return a Object with ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
 * @param name ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
    public Object getMetaData(Object name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
 * Does ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
 * @param messageExchangePattern ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
    public void setMEP(int messageExchangePattern);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
 * Does ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
 * @return a int with ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
    public int getMEP();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
 * Does ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
 * @return a int with ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
    public int getResponseType();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
 * Does ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
 * @param responseType ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
    public void setResponseType(int responseType);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
 * Does ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
 * @return a Object with ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
    public Object getResponse();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
 * Does ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
 * @param response ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
    public void setResponse(Object response);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
 * Does ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
 * @param method ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
    public void setMethod(Method method);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
 * Does ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
 * </p><p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
 * @return a Method with ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
 * </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
    public Method getMethod();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
} // end MessageStruct