本文整理了Java中org.jbundle.model.util.Util.parseArgs()
方法的一些代码示例,展示了Util.parseArgs()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.parseArgs()
方法的具体详情如下:
包路径:org.jbundle.model.util.Util
类名称:Util
方法名:parseArgs
暂无
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Parse the command string into properties.
* @param strCommand
* @param properties
* @return
*/
public String getProperties(String strCommand, Map<String,Object> properties)
{
int iIndex = strCommand.indexOf('=');
if (iIndex != -1)
{
if (this.getParentScreen().getTask() != null)
Util.parseArgs(properties, strCommand);
if (properties.get(DBParams.COMMAND) != null)
strCommand = (String)properties.get(DBParams.COMMAND);
}
return strCommand;
}
/**
代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.model
/**
* Parse the command string into properties.
* @param strCommand
* @param properties
* @return
*/
public String getProperties(String strCommand, Map<String,Object> properties)
{
int iIndex = strCommand.indexOf('=');
if (iIndex != -1)
{
if (this.getParentScreen().getTask() != null)
Util.parseArgs(properties, strCommand);
if (properties.get(DBParams.COMMAND) != null)
strCommand = (String)properties.get(DBParams.COMMAND);
}
return strCommand;
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Set the default application.
* @param application The default application.
*/
public void setDefaultApplication(Application application)
{
m_applicationDefault = application;
if (m_applicationDefault != null)
{
if (m_args != null)
Util.parseArgs(m_properties, m_args);
if (this.getProperty(DBParams.LOCAL) == null)
m_properties.put(DBParams.LOCAL, DEFAULT_LOCAL_DB);
if (this.getProperty(DBParams.REMOTE) == null)
m_properties.put(DBParams.REMOTE, DEFAULT_REMOTE_DB);
if (this.getProperty(DBParams.TABLE) == null)
m_properties.put(DBParams.TABLE, DEFAULT_TABLE_DB);
}
}
/**
代码示例来源:origin: org.jbundle.thin.base/org.jbundle.thin.base.thread
/**
* Constructor.
* @param application The parent application.
* @param strParams The task properties.
*/
public void init(App application, String strParams, Map<String, Object> properties)
{
m_application = (App)application;
if (m_application != null)
m_application.addTask(this, null); // Add this task to the list
if (properties != null)
{
if (m_properties != null)
m_properties.putAll(properties);
else
m_properties = properties;
}
if (strParams != null)
{
if (m_properties == null)
m_properties = new HashMap<String,Object>();
Util.parseArgs(m_properties, strParams);
}
m_recordOwnerCollection = new RecordOwnerCollection(this);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
*
* @param args
*/
public static void main(String[] args)
{
BaseApplet.main(args); // This says I'm stand-alone
Map<String,Object> properties = null;
if (args != null)
{
properties = new Hashtable<String,Object>();
Util.parseArgs(properties, args);
}
properties.put(DBParams.TABLE, DBParams.JDBC);
properties.put(DBParams.LOCAL, DBParams.JDBC);
properties.put(DBParams.REMOTE, DBParams.JDBC);
StandaloneProcessRunnerProcess process = new StandaloneProcessRunnerProcess(null, null, properties);
process.run();
process.free();
System.exit(0);
}
}
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
Util.parseArgs(propertiesTemp, args);
if (propertiesTemp.get(DBParams.FREEIFDONE) == null)
Util.parseArgs(properties, args);
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
*
* @param args
*/
public static void main(String[] args)
{
Map<String,Object> properties = null;
if (args != null)
{
properties = new Hashtable<String,Object>();
Util.parseArgs(properties, args);
}
properties.put(DBParams.TABLE, DBParams.JDBC);
properties.put(DBParams.LOCAL, DBParams.JDBC);
properties.put(DBParams.REMOTE, DBParams.JDBC);
App app = new Application(null, properties, null);
ProcessRunnerTask task = new ProcessRunnerTask(app, null, null);
StandaloneProcessRunnerProcess process = new StandaloneProcessRunnerProcess(task, null, properties);
process.run();
process.free();
System.exit(0);
}
}
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Set the default application.
* @param application The default application.
*/
public void setDefaultApplication(App application)
{
m_applicationDefault = application;
if (application != null)
if ((!(m_applicationDefault instanceof MainApplication)) || (application == m_applicationDefault))
{ // Move db access properties down
if (m_args != null)
Util.parseArgs(m_properties, m_args);
if (m_properties.get(DBParams.LOCAL) == null)
m_properties.put(DBParams.LOCAL, (application.getProperty(DBParams.LOCAL) != null) ? application.getProperty(DBParams.LOCAL) : DEFAULT_LOCAL_DB);
if (m_properties.get(DBParams.REMOTE) == null)
m_properties.put(DBParams.REMOTE, (application.getProperty(DBParams.REMOTE) != null) ? application.getProperty(DBParams.REMOTE) : DEFAULT_REMOTE_DB);
if (m_properties.get(DBParams.TABLE) == null)
m_properties.put(DBParams.TABLE, (application.getProperty(DBParams.TABLE) != null) ? application.getProperty(DBParams.TABLE) :DEFAULT_TABLE_DB);
}
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Run this stand-alone.
*/
public static void main(String args[])
{
Map<String,Object> properties = null;
if (args != null)
{
properties = new Hashtable<String,Object>();
Util.parseArgs(properties, args);
}
BaseApplication app = new MainApplication(null, properties, null);
app.getTaskScheduler().addTask(new MessageReceivingPopClient());
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
args = argsDefault;
Map<String,Object> properties = new Hashtable<String,Object>();
Util.parseArgs(properties, args);
if (properties.get(DBParams.LOCAL) == null)
properties.put(DBParams.LOCAL, DBParams.JDBC);
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
Util.parseArgs(map, strParam);
return map;
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
args = argsDefault;
Map<String,Object> properties = new Hashtable<String,Object>();
Util.parseArgs(properties, args);
if (properties.get(DBParams.LOCAL) == null)
properties.put(DBParams.LOCAL, DBParams.JDBC);
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Save the current value of this field to the registration database.
* and change the URL on the push-down stack to take this into consideration.
*/
public void saveValue(BasePanel recordOwner)
{
if (recordOwner != null)
{
BaseField field = this.getOwner();
String strCommand = ((BasePanel)recordOwner).getParentScreen().popHistory(1, false);
if (m_recordOwnerCache != null)
if (strCommand != null)
if (strCommand.indexOf(m_recordOwnerCache.getClass().getName()) != -1)
{ // Yes this is the command to open this window
Map<String,Object> properties = new Hashtable<String,Object>();
Util.parseArgs(properties, strCommand);
properties.put(field.getFieldName(), field.toString());
strCommand = Utility.propertiesToURL(null, properties);
}
((BasePanel)recordOwner).getParentScreen().pushHistory(strCommand, false);
}
}
}
代码示例来源:origin: org.jbundle.base/org.jbundle.base
args = argsDefault;
Map<String,Object> properties = new Hashtable<String,Object>();
Util.parseArgs(properties, args);
if (properties.get(DBParams.LOCAL) == null)
properties.put(DBParams.LOCAL, DBParams.JDBC);
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Save the current value of this field to the registration database.
* and change the URL on the push-down stack to take this into consideration.
*/
public void saveValue(ComponentParent recordOwner)
{
if (recordOwner != null)
{
BaseField field = this.getOwner();
String strCommand = ((ComponentParent)recordOwner).getParentScreen().popHistory(1, false);
if (m_recordOwnerCache != null)
if (strCommand != null)
if (strCommand.indexOf(m_recordOwnerCache.getClass().getName()) != -1)
{ // Yes this is the command to open this window
Map<String,Object> properties = new Hashtable<String,Object>();
Util.parseArgs(properties, strCommand);
properties.put(field.getFieldName(), field.toString());
strCommand = Utility.propertiesToURL(null, properties);
}
((ComponentParent)recordOwner).getParentScreen().pushHistory(strCommand, false);
}
}
}
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* Save the current value of this field to the registration database.
* and change the URL on the push-down stack to take this into consideration.
*/
public void saveValue(BasePanel recordOwner)
{
if (recordOwner != null)
{
BaseField field = this.getOwner();
String strCommand = ((BasePanel)recordOwner).getParentScreen().popHistory(1, false);
if (m_recordOwnerCache != null)
if (strCommand != null)
if (strCommand.indexOf(m_recordOwnerCache.getClass().getName()) != -1)
{ // Yes this is the command to open this window
Map<String,Object> properties = new Hashtable<String,Object>();
Util.parseArgs(properties, strCommand);
properties.put(field.getFieldName(), field.toString());
strCommand = Utility.propertiesToURL(null, properties);
}
((BasePanel)recordOwner).getParentScreen().pushHistory(strCommand, false);
}
}
}
代码示例来源:origin: org.jbundle.thin.base/org.jbundle.thin.base.thread
Util.parseArgs(properties, strJobDef);
代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.model
task.setProperties(null);
Map<String,Object> properties = new Hashtable<String,Object>();
Util.parseArgs(properties, strCommand); // Set these properties
task.setProperties(properties);
BaseScreen.makeScreenFromParams(task, itsLocation, parentScreen, iCommandOptions, properties);
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
task.setProperties(null);
Map<String,Object> properties = new Hashtable<String,Object>();
Util.parseArgs(properties, strCommand); // Set these properties
task.setProperties(properties);
BaseScreen.makeScreenFromParams(task, itsLocation, parentScreen, iCommandOptions, properties);
代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.view.html
String strLink = ((MenusModel)recMenu).getLink();
Map<String,Object> properties = new Hashtable<String,Object>();
Util.parseArgs(properties, strLink);
strCommand = (String)properties.get(DBParams.JOB);
if (strCommand != null)
内容来源于网络,如有侵权,请联系作者删除!