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

ind.jaxb-xjc.3.0.0-M3.source-code.attribute.rng Maven / Gradle / Ivy

There is a newer version: 4.0.5
Show newest version




  
  
  
  
  
  
    
    
      private boolean form;
      private boolean formSpecified = false;
      
      private AttributeDeclImpl makeResult() {
        
        if(type==null)
          // type defaults to anySimpleType
          type = $runtime.parser.schemaSet.anySimpleType;
        
        if(!formSpecified) form = $runtime.attributeFormDefault;
          // global attributes are always qualified
          if(!isLocal)       form = true;
        
        String tns;
        if(form==true)  tns = $runtime.currentSchema.getTargetNamespace();
        else            tns = "";
        
        // proper handling of anonymous types
        return new AttributeDeclImpl( $runtime.document, tns, name,
          annotation, locator, fa, isLocal,
          $runtime.createXmlString(defaultValue),
          $runtime.createXmlString(fixedValue),
          type );
      }
      private Ref.SimpleType type;
    
    
    
      
        
        formSpecified = true;
      
    
    
    
      
    
    fa = (fa);
    
      (null,AnnotationContext.ATTRIBUTE_DECL);
    
    
       
      
        
        
          type = new DelayedRef.SimpleType(
            $runtime, locator, $runtime.currentSchema, typeName );
        
      
      
    
  
  
  
  
  
  
    
    
      private AttGroupDeclImpl result;
      private Locator locator;
    
    
      locator=$runtime.copyLocator();
      
        
      
      
        
          
        
      
      fa = (fa);
      
        (null,AnnotationContext.ATTRIBUTE_GROUP);
      
      
        result = new AttGroupDeclImpl(
          $runtime.document, annotation, locator, fa, name );
      
      
    
  
  
  
  
  
    
      private Ref.Attribute decl;
      private Locator wloc; // locator for wildcards
      private Locator locator;
    
    
    
      
        
        
          
            locator=$runtime.copyLocator();
            use=null;
            defaultValue=null;
            fixedValue=null;
            decl=null;
            annotation=null;
          
          
            
              
              
            
          
          
            
          
          
            
          
          
            
              
              
                decl = anonymousDecl;
                attDeclName = new UName(
                  anonymousDecl.getTargetNamespace(),
                  anonymousDecl.getName());
                defaultValue = null;
                fixedValue = null;
              
            
            
              
                
                
                
                  decl = new DelayedRef.Attribute(
                    $runtime, locator, $runtime.currentSchema, attDeclName );
                
              
              
                (null,AnnotationContext.ATTRIBUTE_USE);
              
              fa = (null);
            
          
          
            if("prohibited".equals(use))
              owner.addProhibitedAttribute(attDeclName);
            else
              owner.addAttributeUse(attDeclName,
                new AttributeUseImpl( $runtime.document, annotation,locator,fa,decl,
                  $runtime.createXmlString(defaultValue),
                  $runtime.createXmlString(fixedValue),
                  "required".equals(use)));
          
        
        
        
          locator=$runtime.copyLocator();
          
            
          
          
            (null,AnnotationContext.ATTRIBUTE_USE);
          
          
            owner.addAttGroup(new DelayedRef.AttGroup(
              $runtime, locator, $runtime.currentSchema, groupName ));
          
        
      
    
    
      
        wloc = $runtime.copyLocator();
        
        
          owner.setWildcard(wildcard);
        
      
    
  







© 2015 - 2024 Weber Informatics LLC | Privacy Policy