public interface
Prompter
{
+
/**
* <p>
* Input user selection.
/**
- * Batch process for user interaction
+ * Batch process for user interaction with option
*
- * @param userFields
- * @return
+ * @param userFields user interaction specifications
+ * @param options options for prompter
*/
- Map<String, Object> batch( Collection<UserField> userFields );
+ void batch( Collection<UserField> userFields, Map<String, Object> options );
}
--- /dev/null
+/*\r
+ * Common\r
+ *\r
+ * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
+ *\r
+ * Contact: \r
+ * BonYong Lee <bonyong.lee@samsung.com>\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ *\r
+ * Contributors:\r
+ * - S-Core Co., Ltd\r
+ *\r
+ */\r
+package org.tizen.common.core.command;\r
+\r
+public class PrompterConstants\r
+{\r
+ public static final String SUPPORT_CONSOLE = "console";\r
+ \r
+ public static final String SUPPORT_IDE = "eclipse";\r
+\r
+}\r
*/\r
package org.tizen.common.core.command;\r
\r
+import java.util.ArrayList;\r
import java.util.Arrays;\r
import java.util.Collection;\r
\r
return bModify;\r
}\r
\r
+ public void setModify( boolean bModify )\r
+ {\r
+ this.bModify = bModify;\r
+ }\r
+ \r
public Object getValue()\r
{\r
return this.value;\r
\r
public void addChild( final UserField... children )\r
{\r
+ if ( null == this.children )\r
+ {\r
+ this.children = new ArrayList<UserField>();\r
+ }\r
this.children.addAll( Arrays.asList( children ) );\r
}\r
\r
return getClass().getSimpleName() + "@" + Integer.toHexString( hashCode() ).substring( 0, 4 );
}
+ /* (non-Javadoc)
+ * @see org.tizen.common.core.command.Prompter#batch(java.util.Collection)
+ */
@Override
- public Map<String, Object> batch(Collection<UserField> userFields)
+ public
+ void
+ batch(
+ final Collection<UserField> userFields,
+ final Map<String, Object> options
+ )
{
// TODO implement
- return null;
}
}
this.password = password;
}
+ /* (non-Javadoc)
+ * @see org.tizen.common.core.command.Prompter#batch(java.util.Collection)
+ */
@Override
- public Map<String, Object> batch(Collection<UserField> userFields)
+ public
+ void
+ batch(
+ final Collection<UserField> userFields,
+ final Map<String, Object> options
+ )
{
// TODO implement
- return null;
}
}
}
+ /* (non-Javadoc)
+ * @see org.tizen.common.core.command.Prompter#batch(java.util.Collection)
+ */
@Override
- public Map<String, Object> batch(Collection<UserField> userFields)
+ public
+ void
+ batch(
+ final Collection<UserField> userFields,
+ final Map<String, Object> options
+ )
{
// TODO implement
- return null;
}
}