package com.vci.client.omd.btm.toOutside;
|
|
import java.util.ArrayList;
|
import java.util.List;
|
|
public class InterBtmManager {
|
|
private static InterBtmManager interBtmManager= null;
|
private List<InterBtm> interBtmList = new ArrayList<InterBtm>();
|
|
private InterBtmManager(){
|
|
}
|
|
public static InterBtmManager getInstance(){
|
if(interBtmManager == null){
|
interBtmManager = new InterBtmManager();
|
}
|
return interBtmManager;
|
}
|
|
public void registerInter(InterBtm interBtm){
|
interBtmList.add(interBtm);
|
}
|
|
public List<InterBtm> getInterAPList(){
|
return interBtmList;
|
}
|
|
public List<String> getUsedNameList(String btmName){
|
if(interBtmList == null || interBtmList.size() < 1){
|
return null;
|
}
|
List<String> nameList = new ArrayList<String>();
|
for(int i = 0; i < interBtmList.size(); i++){
|
InterBtm interBtm = interBtmList.get(i);
|
List<String> usedNameList = interBtm.getUsedNameList(btmName);
|
if(usedNameList != null && usedNameList.size() > 0){
|
nameList.addAll(usedNameList);
|
}
|
}
|
return nameList;
|
}
|
}
|