Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 
 package org.apache.cxf.binding.corba;
 
 import java.util.List;
 
 
 
 public class CorbaMessage extends AbstractWrappedMessage {
 
     private List<CorbaStreamablearguments;
     private CorbaStreamable returnParam;
     private CorbaStreamable except;
     private SystemException systemExcept;
     private CorbaTypeMap corbaTypeMap;
     
     private NVList list;
 
     public CorbaMessage(Message m) {
         super(m);
         if (m instanceof CorbaMessage) {
             CorbaMessage msg = (CorbaMessage)m;
             CorbaStreamable[] data = msg.getStreamableArguments();
             setStreamableArguments(data);            
              = msg.getStreamableReturn();
              = msg.getStreamableException();
              = msg.getSystemException();
              = msg.getList();
              = msg.getCorbaTypeMap();
         } else {
             this. = new ArrayList<CorbaStreamable>();    
         }        
     }
 
     
     public void setList(NVList lst) {
         this. = lst;
     }
     
     public NVList getList() {
         return this.;
     }
     
         return this.;
     }
 
     public CorbaStreamable getStreamableReturn() {
         return this.;
     }
     
     public SystemException getSystemException() {
         return this.;
     }
     
     public void setSystemException(SystemException sysEx) {
          = sysEx;
     }
 
     public final void addStreamableArgument(CorbaStreamable arg) {
         if (this. == null) {
             this. = new ArrayList<CorbaStreamable>(1);
         }
 
         this..add(arg);
     }
     
     public CorbaStreamable[] getStreamableArguments() {
         return this..toArray(new CorbaStreamable[this..size()]);
     }
 
 
     public final void setStreamableArguments(CorbaStreamable[] data) {
         if (this. == null) {
            this. = new ArrayList<CorbaStreamable>(data.length);
        }
        for (CorbaStreamable streamable : data) {         
            addStreamableArgument(streamable);
        }       
    }
    public void setStreamableArgumentValue(CorbaObjectHandler dataint idx) {
        if (idx >= this..size()) {
            throw new CorbaBindingException("setStreamableArgumentValue: Index out of range");
        }
        this..get(idx).setObject(data);
    }
    public void setStreamableArgumentValues(CorbaObjectHandler[] data) {
        for (int i = 0; i < data.length; ++i) {
            this..get(i).setObject(data[i]);
        }
    }
    public void setStreamableReturn(CorbaStreamable data) {
         = data;
    }
    public void setStreamableReturnValue(CorbaObjectHandler data) {
        // TODO: Handle case of the return parameter has not yet been initialized.
        .setObject(data);
    }
    
    public void setStreamableException(CorbaStreamable ex) {
         = ex;
    }
    
    public void setStreamableExceptionValue(CorbaObjectHandler exData) {
        // TODO: Handle case of the return parameter has not yet been initialized.
        .setObject(exData);
    }
        return new CorbaStreamableImpl(objelName);
    }
    public CorbaTypeMap getCorbaTypeMap() {
        return ;
    }
    public void setCorbaTypeMap(CorbaTypeMap typeMap) {
         = typeMap;
    }
New to GrepCode? Check out our FAQ X