Java tutorial
/** * The Clican-Pluto software suit is Copyright 2009, Clican Company and individual contributors, and is licensed under the GNU LGPL. * * @author clican * */ package com.clican.pluto.dataprocess.dpl.parser.object; import java.util.HashMap; import java.util.Map; import java.util.UUID; import org.apache.commons.lang.StringUtils; import com.clican.pluto.dataprocess.dpl.parser.ParserObject; /** * ? * * @author clican * */ public class SubDpl implements ParserObject { /** * ?dpl?? */ private Map<String, String> subDplStrAliasMap = new HashMap<String, String>(); /** * ???? */ private Map<String, Object> aliasResultMap = new HashMap<String, Object>(); public Map<String, String> getSubDplStrAliasMap() { return subDplStrAliasMap; } public Map<String, Object> getAliasResultMap() { return aliasResultMap; } /** * ????? * * @param subDplStr * ?dpl * @param alias * ?? * @param result * ? */ public void addSubDpl(String subDplStr, String alias, Object result) { if (StringUtils.isEmpty(alias)) { alias = "dual." + "s" + UUID.randomUUID().toString().replaceAll("\\-", ""); } aliasResultMap.put(alias, result); subDplStrAliasMap.put(subDplStr, alias); } } // $Id$