Package org.exolab.castor.xml.schema.simpletypes.factory

Examples of org.exolab.castor.xml.schema.simpletypes.factory.TypeList


            unmarshaller.setMapping(mapping);
            //-- turn off validation
            unmarshaller.setValidation(false);

                is = this.getClass().getResourceAsStream(TYPE_DEFINITIONS);
            TypeList typeList = (TypeList)unmarshaller.unmarshal( new org.xml.sax.InputSource(is) );

                //print what we just read (only in debug mode and if we have a logWriter)
            // TODO: Joachim 2007-09-04 remove me
                // LocalConfiguration config = LocalConfiguration.getInstance();
                if (LOG.isDebugEnabled()) {
                    LOG.debug(typeList.toString());
                }
            //if (config.debug() && getLogWriter()!= null) {
                //    typeList.Print(getLogWriter());
                //}

                //Store the types by name in the typesByName and typesByCode hashtables
                //and create for each its associated SimpleType instance.
                Vector types= typeList.getTypes();
                _typesByName= new Hashtable();
                _typesByCode= new Hashtable();
            for( int index= 0; index < types.size(); index++)
            {
                    Type type= (Type)(types.elementAt(index));
View Full Code Here

TOP

Related Classes of org.exolab.castor.xml.schema.simpletypes.factory.TypeList

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.