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

om.sun.xsom.xsom.2.5.2.source-code.modelGroup.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.

The newest version!





	
	
  
  
  
  
  
  
  
  
  
  
  	
  	
  		import java.util.Vector;
  	
  	
  		private ModelGroupImpl result;
  		
  		private final List particles = new ArrayList();
  	
    
    fa = (null);
    
      (null,AnnotationContext.MODELGROUP);
    
    
    
    
      
      
        particles.add(childParticle);
      
    
    
    
      XSModelGroup.Compositor compositor = null;
      if(compositorName.equals("all"))      compositor = XSModelGroup.ALL;
      if(compositorName.equals("sequence")) compositor = XSModelGroup.SEQUENCE;
      if(compositorName.equals("choice"))   compositor = XSModelGroup.CHOICE;
      if(compositor==null)
        throw new InternalError("unable to process "+compositorName);
      
      result = new ModelGroupImpl( $runtime.document, annotation, locator, fa, compositor,
            (ParticleImpl[])particles.toArray(new ParticleImpl[0]));
    
  
  
  
  
    
    
    	private Locator wloc;
    	private Locator loc;
      private ParticleImpl result;
      private String compositorName;
    
    
      
        
          compositorName = $localName;
          loc = $runtime.copyLocator();
        
        
          
            all
            choice
            sequence
          
          
          
          
            result = new ParticleImpl( $runtime.document, null, term, loc, occurs.max, occurs.min );
          
        
      
      
        loc = $runtime.copyLocator();
        
        
          
        
        
          (null,AnnotationContext.PARTICLE);
        
        
          result = new ParticleImpl( $runtime.document, annotation, new DelayedRef.ModelGroup(
              $runtime, loc, $runtime.currentSchema, groupName ),
            loc, occurs.max, occurs.min );
        
      
      
        loc = $runtime.copyLocator();
        
        
          
            
              
            
            
              (null,AnnotationContext.PARTICLE);
            
            
              result = new ParticleImpl( $runtime.document, annotation, new DelayedRef.Element(
                  $runtime, loc, $runtime.currentSchema, elementTypeName ),
                  loc, occurs.max, occurs.min );
            
          
          
            
            
              result = new ParticleImpl( $runtime.document, null,
                anonymousElementDecl,
                loc, occurs.max, occurs.min );
            
          
        
      
      
      	wloc = $runtime.copyLocator();
        
        
        
        
          result = new ParticleImpl( $runtime.document, null, wcBody, wloc, occurs.max, occurs.min );
        
      
    
  
  
  
  
  
  
  
  	
  	
  		private ModelGroupDeclImpl result;
  		private Locator loc,mloc;
  		private String compositorName;
  	
    
      loc = $runtime.copyLocator();
      
        
          
        
      
      
        
      
      
        (null,AnnotationContext.MODELGROUP_DECL);
      
      fa = (null);
      
        mloc = $runtime.copyLocator();
        compositorName = $localName;
      
      
        
          all
          choice
          sequence
        
        
      
    
    
    	result = new ModelGroupDeclImpl( $runtime.document,
    		annotation, loc, fa,
    		$runtime.currentSchema.getTargetNamespace(),
				name,
				term
			);
    
  
	
	






© 2015 - 2024 Weber Informatics LLC | Privacy Policy