Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright [2013] [www.rapidpm.org / Sven Ruppert (sven.ruppert@rapidpm.org)]
   *
   *    Licensed under the Apache License, Version 2.0 (the "License");
   *    you may not use this file except in compliance with the License.
   *    You may obtain a copy of the License at
   *
   *        http://www.apache.org/licenses/LICENSE-2.0
   *
  *    Unless required by applicable law or agreed to in writing, software
  *    distributed under the License is distributed on an "AS IS" BASIS,
  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  *    See the License for the specific language governing permissions and
  *    limitations under the License.
  */
 
 package org.rapidpm.data.soaptable;

Sven Ruppert User: svenruppert Date: 09.02.11 Time: 12:42 This is part of the PrometaJava project please contact chef@sven-ruppert.de
 
 
 import java.util.List;
 
 
 public class SoapTable {
     private static final Logger logger = Logger.getLogger(SoapTable.class);
 
     private List<Rowrowlist = new ArrayList<>();
     private List<ColInfocolinfolist = new ArrayList<>();
 
 
     public List<RowgetRowlist() {
         return ;
     }
 
     public void setRowlist(final List<Rowrowlist) {
         this. = rowlist;
     }
 
     public List<ColInfogetColinfolist() {
         return ;
     }
 
     public void setColinfolist(final List<ColInfocolinfolist) {
         this. = colinfolist;
     }
 
     @Override
     public String toString() {
         final StringBuilder sb = new StringBuilder();
         sb.append("SoapTable");
         sb.append("{colEntryList=").append();
         sb.append(", colinfolist=").append();
         sb.append('}');
         return sb.toString();
     }
 
     public static class ColInfo {
         private int colNr;
         private String colname;
         private ColInfoType coltype = .;
 
         public ColInfo() {
         }
 
         @Override public int hashCode() {
             return Objects.hash();
         }
 
         @Override public boolean equals(Object obj) {
             if (this == obj) {
                 return true;
             }
             if (obj == null || getClass() != obj.getClass()) {
                 return false;
             }
             final ColInfo other = (ColInfoobj;
             return Objects.equals(this.other.colNr) && Objects.equals(this.other.colname) && Objects.equals(this.other.coltype);
         }
 
 //        @Override
 //        public int hashCode() {
 //            int result = colNr;
 //            result = 31 * result + colname.hashCode();
 //            result = 31 * result + coltype.hashCode();
 //            return result;
 //        }
 //
 //        @Override
 //        public String toString() {
 //            final StringBuilder sb = new StringBuilder();
//            sb.append("ColInfo");
//            sb.append("{colNr=").append(colNr);
//            sb.append(", colname='").append(colname).append('\'');
//            sb.append(", coltype=").append(coltype);
//            sb.append('}');
//            return sb.toString();
//        }
        public int getColNr() {
            return ;
        }
        public void setColNr(final int colNr) {
            this. = colNr;
        }
        public String getColname() {
            return ;
        }
        public void setColname(final String colname) {
            this. = colname;
        }
        public ColInfoType getColtype() {
            return ;
        }
//        public void setColtype(final ColInfoType coltype){
//            this.coltype = coltype;
//        }
    }
    public static enum ColInfoType {
        STRING,
        //        NUMBER,
        URL,
//        OBJREF
    }
    public static class Row {
        public static class ColEntry {
            private int colEntryNr;
            private String value;
            public ColEntry(final int colEntryNrfinal String value) {
                this. = colEntryNr;
                this. = value;
            }
            public ColEntry() {
            }
            @Override public int hashCode() {
                return Objects.hash();
            }
            @Override public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (obj == null || getClass() != obj.getClass()) {
                    return false;
                }
                final ColEntry other = (ColEntryobj;
                return Objects.equals(this.other.colEntryNr) && Objects.equals(this.other.value);
            }
//            @Override
//            public int hashCode() {
//                int result = colEntryNr;
//                result = 31 * result + value.hashCode();
//                return result;
//            }
//
//            @Override
//            public String toString() {
//                final StringBuilder sb = new StringBuilder();
//                sb.append("ColEntry");
//                sb.append("{colEntryNr=").append(colEntryNr);
//                sb.append(", value='").append(value).append('\'');
//                sb.append('}');
//                return sb.toString();
//            }
            public int getColEntryNr() {
                return ;
            }
            public void setColEntryNr(final int colEntryNr) {
                this. = colEntryNr;
            }
            public String getValue() {
                return ;
            }
            public void setValue(final String value) {
                this. = value;
            }
        }
        private List<ColEntrycolEntryList;
        private int rowNr;
        public Row() {
            this. = new ArrayList<>();
            this. = -1;
        }
        public Row(final int rowNr) {
            this. = new ArrayList<>();
            this. = rowNr;
        }
        @Override public int hashCode() {
            return Objects.hash();
        }
        @Override public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (obj == null || getClass() != obj.getClass()) {
                return false;
            }
            final Row other = (Rowobj;
            return Objects.equals(this.other.colEntryList) && Objects.equals(this.other.rowNr);
        }
//        @Override
//        public int hashCode() {
//            return colEntryList.hashCode();
//        }
//
//        @Override
//        public String toString() {
//            final StringBuilder sb = new StringBuilder();
//            sb.append("Row");
//            sb.append("{colEntryList=").append(colEntryList);
//            sb.append('}');
//            return sb.toString();
//        }
        public List<ColEntrygetColEntryList() {
            return ;
        }
        public void setColEntryList(final List<ColEntrycolEntryList) {
            this. = colEntryList;
        }
    }
New to GrepCode? Check out our FAQ X