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;
 
 import java.util.List;
 
 
 
 
     private static final String ANY_TYPE_PREFIX = "anytypens";
 
     private CorbaAnyHandler handler;
 
     private List<Attributeattributes;
     private List<Namespacenamespaces;
 
     private CorbaObjectHandler containedType;
 
     public CorbaAnyEventProducer(CorbaObjectHandler hServiceInfo infoORB orbRef) {
          = (CorbaAnyHandler)h;
          = .getName();
          = orbRef;
          = info;
 
 
         if ( != null) {
             QName containedSchemaType = convertIdlToSchemaType();
 
             XMLEventFactory factory = XMLEventFactory.newInstance();
 
              = new ArrayList<Attribute>();
             .add(factory.createAttribute(new QName(."type"), 
                                                     + ":" 
                                                    + containedSchemaType.getLocalPart())); 
              = new ArrayList<Namespace>();
             .add(factory.createNamespace(,
                                                    containedSchemaType.getNamespaceURI()));
         }
 
         CorbaTypeEventProducer containedProducer = 
             CorbaHandlerUtils.getTypeEventProducer();
         if (containedProducer instanceof AbstractStartEndEventProducer) {
              = ((AbstractStartEndEventProducer)containedProducer).getNestedTypes();
         } else {
             List<CorbaTypeEventProducerprods = new ArrayList<CorbaTypeEventProducer>();
             CorbaSimpleAnyContainedTypeEventProducer simpleProducer = 
                 new CorbaSimpleAnyContainedTypeEventProducer(containedProducer.getText());
             prods.add(simpleProducer);
              = prods.iterator();
         }
     }
 
     public List<AttributegetAttributes() {
         // We should only add attributes if we are asked for the any types attributes.  This will be
         // the case when the current event producer is null.  Otherwise, we are handling the
         // contained type and we CAN'T have the anys attributes used (It causes big problems)
         if ( == null) {
             return ;
         } else {
             return null;
         }
    }
    public List<NamespacegetNamespaces() {
        return ;
    }
        CorbaObjectHandler result = null;
        TypeCode tc = a.type();
        QName containedName = new QName("AnyContainedType");
        QName idlType = null;
        if (CorbaUtils.isPrimitiveTypeCode(tc)) {
            idlType = CorbaAnyHelper.getPrimitiveIdlTypeFromTypeCode(tc);
            result = new CorbaPrimitiveHandler(containedNameidlTypetcnull);
        } else if (tc.kind().value() == .) {
            idlType = .;
            result = new CorbaAnyHandler(containedNameidlTypetcnull);
            ((CorbaAnyHandler)result).setTypeMap(.getTypeMap());
        } else {
            idlType = .getTypeMap().getIdlType(tc);
            result = CorbaHandlerUtils.initializeObjectHandler(containedNameidlType,
                                                               .getTypeMap(), );
        }
        InputStream is = a.create_input_stream();
        CorbaObjectReader reader = new CorbaObjectReader(is);
        reader.read(result);
        return result;
    }
        QName idlType = obj.getIdlType();
        QName result = null;
        if (CorbaAnyHelper.isPrimitiveIdlType(idlType)) {
            result = CorbaAnyHelper.convertPrimitiveIdlToSchemaType(obj.getIdlType());
        } else {
            CorbaType impl = obj.getType();
            result = impl.getType();
        }
        return result;
    }
        int state;
        int[] states = {.};
        String value;
        public CorbaSimpleAnyContainedTypeEventProducer(String text) {
             = text;
             = 0;
        }
        public String getLocalName() {
            return null;
        }
        public String getText() {
            return ;
        }
        public int next() {
            return [++];
        }
        public QName getName() {
            return null;
        }
        public boolean hasNext() {
            return  < .;
        }
        public List<AttributegetAttributes() {
            return null;
        }
        public List<NamespacegetNamespaces() {
            return null;
        }
    }
New to GrepCode? Check out our FAQ X