/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.apache.aries.samples.blueprint.idverifier.client;
/**
* @author forrestxm
*
*/
public class BankInfo {
private String bankname;
private String bankaddress;
private String banklegalpersonname;
private String bankregistrationnumber;
/**
* @return the bankname
*/
public String getBankname() {
return bankname;
}
/**
* @param bankname the bankname to set
*/
public void setBankname(String bankname) {
this.bankname = bankname;
}
/**
* @return the bandaddress
*/
public String getBankaddress() {
return bankaddress;
}
/**
* @param bandaddress the bandaddress to set
*/
public void setBankaddress(String bankaddress) {
this.bankaddress = bankaddress;
}
/**
* @return the banklegalpersonname
*/
public String getBanklegalpersonname() {
return banklegalpersonname;
}
/**
* @param banklegalpersonname the banklegalpersonname to set
*/
public void setBanklegalpersonname(String banklegalpersonname) {
this.banklegalpersonname = banklegalpersonname;
}
/**
* @return the bankregistrationnumber
*/
public String getBankregistrationnumber() {
return bankregistrationnumber;
}
/**
* @param bankregistrationnumber the bankregistrationnumber to set
*/
public void setBankregistrationnumber(String bankregistrationnumber) {
this.bankregistrationnumber = bankregistrationnumber;
}
@Override
public String toString(){
System.out.println("********Start of Printing Bank Info**********");
System.out.println("Bank Name: " + this.getBankname());
System.out.println("Bank Address: " + this.getBankaddress());
System.out.println("Bank Legal Person: "+ this.getBanklegalpersonname());
System.out.println("Bank Reg. Number: "+ this.getBankregistrationnumber());
System.out.println("********End of Printing Bank Info**********");
String delimiter = ",";
StringBuffer sb = new StringBuffer();
sb.append("[");
sb.append("bankname=" + this.getBankname()+ delimiter);
sb.append("bankaddress=" + this.getBankaddress() + delimiter);
sb.append("banklegalpersonname="+ this.getBanklegalpersonname() + delimiter);
sb.append("bankregistrationnumber="+ this.getBankregistrationnumber());
sb.append("]");
return sb.toString();
}
}