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.types;
 
 
 
                                     ServiceInfo service,
                                     ORB orbRef) {
         CorbaStructHandler handler = (CorbaStructHandlerh;
          = handler.getName();
          = handler.members.iterator();
          = service;
          = orbRef;
         if (handler.members.isEmpty() 
             && handler.getSimpleName().equals(handler.getIdlType().getLocalPart() + "_f")) {
              = .;
         }
 
     }
 
     public int next() { 
         int event = [];
         if (event != 0) {
             ++;
         } else if ( != null && .hasNext()) {
             event = .next();
         } else if (.hasNext()) {
             CorbaObjectHandler obj = .next();
             //Special case for wrapped/unwrapped arrays or sequences
             boolean primitiveSequence = obj instanceof CorbaSequenceHandler
                         && (!CorbaHandlerUtils.isOctets(obj.getType()));
             boolean primitivearray = obj instanceof CorbaArrayHandler
                         && (!CorbaHandlerUtils.isOctets(obj.getType()));
             if (primitiveSequence || primitivearray) {
                 boolean wrapped = true;
                 if (obj.getType() instanceof Abstractanonsequence) {
                     wrapped = ((Abstractanonsequence)obj.getType()).isWrapped();
                 } else if (obj.getType() instanceof Abstractsequence) {
                     wrapped = ((Abstractsequence)obj.getType()).isWrapped();
                 }
                 if (obj instanceof CorbaSequenceHandler) {
                     if (wrapped) {
                          = new CorbaSequenceEventProducer(obj);
                     } else {
                          = new CorbaPrimitiveSequenceEventProducer(obj);
                     }
                 } else {
                     if (wrapped) {
                          = new CorbaArrayEventProducer(obj);
                     } else {
                          = new CorbaPrimitiveArrayEventProducer(obj);
                     }
                 }
             } else if (obj.getSimpleName().equals(obj.getIdlType().getLocalPart() + "_f")) { 
                 //some "special cases" we need to make sure are mapped correctly
 
                  =
                     CorbaHandlerUtils.getTypeEventProducer(obj);
                 
             } else {
                  =
                     CorbaHandlerUtils.getTypeEventProducer(obj);
             }
             if (.hasNext()) {
                 event = .next();
             } else {
                  = null;
                 return next();
             }
         } else {
             // all done with content, move past state 0
             event = [++];
             ++;
              = null;
         }
         return event;
     }
New to GrepCode? Check out our FAQ X