예제 #1
0
        private void WriteRow(DataTypeAnalyzer.Key key, Counter <String> value_ren, IList <Int32?> columns)
        {
            StringBuilder builder = new StringBuilder("| ");

            builder.Append(
                Ca.Infoway.Messagebuilder.StringUtils.RightPad(Escape(key.dataType), (columns[0]).Value))
            .Append(" | ");
            builder.Append(Ca.Infoway.Messagebuilder.StringUtils.RightPad(key.category, (columns[1]).Value));

            int index = 0;

            /* foreach */
            foreach (String version_0  in  this.version)
            {
                builder.Append(" | ");
                int   count = value_ren.Get(version_0);
                Int32?width = columns[index + 2];
                if (count > 0)
                {
                    builder.Append(Ca.Infoway.Messagebuilder.StringUtils.LeftPad("" + count, (width).Value));
                }
                else
                {
                    builder.Append(Ca.Infoway.Messagebuilder.StringUtils.Repeat(" ", (width).Value));
                }
                index++;
            }
            builder.Append(" |");
            System.Console.Out.WriteLine(builder.ToString());
        }
예제 #2
0
 private void Count(String version_0, String category_1, String type)
 {
     DataTypeAnalyzer.Key key = new DataTypeAnalyzer.Key(category_1, type);
     if (!this.records.ContainsKey(key))
     {
         ILOG.J2CsMapping.Collections.Generics.Collections.Put(this.records, (Ca.Infoway.Messagebuilder.Xml.DataTypeAnalyzer.Key)(key), (Ca.Infoway.Messagebuilder.J5goodies.Counter <String>)(new Counter <String>()));
     }
     ((Ca.Infoway.Messagebuilder.J5goodies.Counter <String>)ILOG.J2CsMapping.Collections.Generics.Collections.Get(this.records, key)).Increment(version_0);
 }
예제 #3
0
 public override bool Equals(Object obj)
 {
     if (obj == null)
     {
         return(false);
     }
     else if (obj == (Object)this)
     {
         return(true);
     }
     else if ((Object)obj.GetType() != (Object)GetType())
     {
         return(false);
     }
     else
     {
         DataTypeAnalyzer.Key that = (DataTypeAnalyzer.Key)obj;
         return(new EqualsBuilder().Append(this.dataType, that.dataType)
                .Append(this.category, that.category).IsEquals());
     }
 }
예제 #4
0
 public virtual int CompareTo(DataTypeAnalyzer.Key o)
 {
     return(new CompareToBuilder().Append(this.dataType, o.dataType)
            .Append(this.category, o.category).ToComparison());
 }