Exemplo n.º 1
0
		public static string CommonAttributes(SchemaVariable var) {
	    	string returnString = "" ;
		    if (var.Description != null){
		       returnString = returnString + String.Format(" desc='{0}'", var.Description) ;  
		    }       
		    
		    if (var.RefPackage != null){
		       returnString = returnString + String.Format(" refPackage='{0}'", var.RefPackage) ;  
		    }  	    
		    	    
		    if (var.RefClass != null){
		       returnString = returnString + String.Format(" refClass='{0}'", var.RefClass) ;  
		    }  	
		    
		    if (var.Unit != null){
		       returnString = returnString + String.Format(" unit='{0}'", var.Unit) ;  
		    }  		    
		    
		    if (var.Min != null){
		       returnString = returnString + String.Format(" min='{0}'", var.Min) ;  
		    }	       
		    if (var.Max != null){
		       returnString = returnString + String.Format(" max='{0}'", var.Max) ;  
		    }	       
		    if (var.MaxLength != null){
		       returnString = returnString + String.Format(" maxLength='{0}'", var.MaxLength) ;  
		    }
		    
		    return returnString ;
	      }
Exemplo n.º 2
0
        public static string CommonAttributes(SchemaVariable var)
        {
            string returnString = "";

            if (var.Description != null)
            {
                returnString = returnString + String.Format(" desc='{0}'", var.Description);
            }

            if (var.RefPackage != null)
            {
                returnString = returnString + String.Format(" refPackage='{0}'", var.RefPackage);
            }

            if (var.RefClass != null)
            {
                returnString = returnString + String.Format(" refClass='{0}'", var.RefClass);
            }

            if (var.Unit != null)
            {
                returnString = returnString + String.Format(" unit='{0}'", var.Unit);
            }

            if (var.Min != null)
            {
                returnString = returnString + String.Format(" min='{0}'", var.Min);
            }
            if (var.Max != null)
            {
                returnString = returnString + String.Format(" max='{0}'", var.Max);
            }
            if (var.MaxLength != null)
            {
                returnString = returnString + String.Format(" maxLength='{0}'", var.MaxLength);
            }

            return(returnString);
        }