All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xsom.20100725.source-code.include.rng Maven / Gradle / Ivy

Go to download

XML Schema Object Model (XSOM) is a Java library that allows applications to easily parse XML Schema documents and inspect information in them. It is expected to be useful for applications that need to take XML Schema as an input.

There is a newer version: 20140925
Show newest version


	


  
  
  
  
  
  
    
      
      
        
      
      
      
        (null,AnnotationContext.SCHEMA);
      
    
    
   	$runtime.includeSchema( schemaLocation );
  
  
  
  
  
    
      
      
        
          
        
      
      
        
          
        
      
      
      
        (null,AnnotationContext.SCHEMA);
      
    
    
		
			if(ns==null)    ns="";
    	$runtime.importSchema( ns,schemaLocation );
		
  
  
  
  
  
    
      
      
        schemaLocation = 
		   	$runtime.includeSchema( schemaLocation );
      

      
      
        
          (null,AnnotationContext.SCHEMA);
          
          	newSt = 
          	XSSimpleType oldSt = $runtime.currentSchema.getSimpleType(newSt.getName());
            if(oldSt==null) {
              $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_SIMPLETYPE,newSt.getName()) );
            } else {
              newSt.redefine((SimpleTypeImpl)oldSt);
              $runtime.currentSchema.addSimpleType(newSt,true);
            }
         	
         	
	          newCt = 
	          XSComplexType oldCt = $runtime.currentSchema.getComplexType(newCt.getName());
            if(oldCt==null) {
              $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_COMPLEXTYPE,newCt.getName()) );
            } else {
              newCt.redefine((ComplexTypeImpl)oldCt);
              $runtime.currentSchema.addComplexType(newCt,true);
            }
         	
         	
	          newGrp = 
	          XSModelGroupDecl oldGrp = $runtime.currentSchema.getModelGroupDecl(newGrp.getName());
            if(oldGrp==null) {
              $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_MODELGROUP,newGrp.getName()) );
            } else {
              newGrp.redefine((ModelGroupDeclImpl)oldGrp);
              $runtime.currentSchema.addModelGroupDecl(newGrp,true);
            }
         	
          
          	newAg = 
          	XSAttGroupDecl oldAg = $runtime.currentSchema.getAttGroupDecl(newAg.getName());
            if(oldAg==null) {
              $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_ATTRIBUTEGROUP,newAg.getName()) );
            } else {
              newAg.redefine((AttGroupDeclImpl)oldAg);
              $runtime.currentSchema.addAttGroupDecl(newAg,true);
            }
          
        
      
    
  






© 2015 - 2024 Weber Informatics LLC | Privacy Policy