Package org.exolab.castor.mapping.xml

Examples of org.exolab.castor.mapping.xml.MappingRoot


   Mapping mappings[] = _database.getMapping();

  for ( int i = 0 ; i < mappings.length ; ++i ) {
      try {
    URL mappingURL = new URL(new URL(databaseURL), mappings[i].getHref());
    MappingRoot mr = (MappingRoot) munm.unmarshal(new InputSource((mappingURL).openStream()));
    ClassMapping[] classMaps = mr.getClassMapping();

    for (int j = 0; j < classMaps.length; j++) {
        _classMappings.put(classMaps[j].getName(), classMaps[j]);
        if (_logWriter != null) {
      _logWriter.println("Got class: " + classMaps[j].getName());
View Full Code Here


        LOG.info( "Test complete" );

        // --------------------------------------------------------------------
        LOG.info( "Begin: Walking the mapping descriptor via objects" );

        MappingRoot mappingRoot = _mapping.getRoot();
        ClassMapping classMap;
        FieldMapping fieldMap;
        FieldMapping[] fieldMaps;

        int mappingCount = mappingRoot.getClassMappingCount();

        // loop over the classes
        for ( int i = 0; i < mappingCount; ++i )
        {
            classMap = mappingRoot.getClassMapping( i );
            LOG.debug( "Class name: " + classMap.getName() );

            int fieldCount = classMap.getClassChoice().getFieldMappingCount();
            fieldMaps = classMap.getClassChoice().getFieldMapping();
View Full Code Here

TOP

Related Classes of org.exolab.castor.mapping.xml.MappingRoot

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.