Package org.jibx.schema.elements

Examples of org.jibx.schema.elements.SimpleExtensionElement


                    case SchemaBase.EXTENSION_TYPE:
                    {
                        if (childcomp instanceof SimpleExtensionElement) {
                           
                            // replace empty simple type extension with base type
                            SimpleExtensionElement extend = (SimpleExtensionElement)childcomp;
                            if (extend.getAttributeList().size() == 0 && extend.getAnyAttribute() == null) {
                                modified = substituteTypeDerivation(lead, topcomp, childcomp, extend);
                            }
                           
                        } else {
                           
                            // replace empty complex type extension with base type
                            ComplexExtensionElement extend = (ComplexExtensionElement)child;
                            if (extend.getContentDefinition() == null && extend.getAttributeList().size() == 0 &&
                                extend.getAnyAttribute() == null) {
                                modified = substituteTypeDerivation(lead, topcomp, childcomp, extend);
                            }
                           
                        }
                        break;
View Full Code Here


                type.setContentType(cont);
               
            } else {
               
                // simple extension with simple content
                SimpleExtensionElement ext = new SimpleExtensionElement();
                setSimpleExtensionBase(basedet.getTypeName(), ext, hold);
                fillAttributes(mapping, 0, ext.getAttributeList(), hold);
                SimpleContentElement cont = new SimpleContentElement();
                cont.setDerivation(ext);
                type.setContentType(cont);
               
            }
View Full Code Here

TOP

Related Classes of org.jibx.schema.elements.SimpleExtensionElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.