Searched refs:ParamModel (Results 1 - 19 of 19) sorted by relevance

/glassfish-3.1.2/common/glassfish-api/src/main/java/org/glassfish/api/admin/
H A DCommandModel.java91 public abstract ParamModel getModelFor(String paramName);
126 public Collection<ParamModel> getParameters() {
127 ArrayList<ParamModel> copy = new ArrayList<ParamModel>();
165 public static abstract class ParamModel { class in class:CommandModel
/glassfish-3.1.2/admin/cli/src/main/java/com/sun/enterprise/admin/cli/
H A DParser.java46 import org.glassfish.api.admin.CommandModel.ParamModel;
64 private Collection<ParamModel> options;
88 Collection<ParamModel> options, boolean ignoreUnknown)
129 ParamModel opt = null;
272 * Get ParamModel for long option name.
274 private ParamModel lookupLongOption(String s) {
282 for (ParamModel od : options) {
294 * Get ParamModel for short option name.
296 private ParamModel lookupShortOption(char c) {
301 for (ParamModel o
[all...]
H A DMultimodeCommand.java49 import org.glassfish.api.admin.CommandModel.ParamModel;
105 protected Collection<ParamModel> usageOptions() {
106 Collection<ParamModel> opts = commandModel.getParameters();
107 Set<ParamModel> uopts = new LinkedHashSet<ParamModel>();
108 ParamModel p = new CommandModelData.ParamModelData("printprompt",
110 for (ParamModel pm : opts) {
H A DProgramOptions.java49 import org.glassfish.api.admin.CommandModel.ParamModel;
74 private static final Set<ParamModel> programOptions;
113 Set<ParamModel> opts = new HashSet<ParamModel>();
139 private static void addMetaOption(Set<ParamModel> opts, String name,
141 ParamModel opt = new ParamModelData(name, type, !req, def,
216 public static Collection<ParamModel> getValidOptions() {
H A DCLICommand.java54 import org.glassfish.api.admin.CommandModel.ParamModel;
331 for (ParamModel opt : usageOptions()) {
403 ParamModel operandParam = getOperandModel();
445 protected Collection<ParamModel> usageOptions() {
470 for (ParamModel opt : commandModel.getParameters()) {
593 Collection<ParamModel> programOptions =
598 // find the corresponding ParamModel
599 ParamModel opt = null;
600 for (ParamModel vo : programOptions) {
777 for (ParamModel op
[all...]
/glassfish-3.1.2/common/common-util/src/main/java/org/glassfish/common/util/admin/
H A DCommandModelImpl.java70 final private Map<String, CommandModel.ParamModel> params;
99 public static Map<String, ParamModel> init(Class commandType, I18n i18n, LocalStringManager localStrings) {
102 Map<String, ParamModel> results = new LinkedHashMap<String, ParamModel>();
147 public CommandModel.ParamModel getModelFor(String paramName) {
173 private static void add(Map<String, ParamModel> results, AnnotatedElement e, I18n parentI18n, LocalStringManager localStrings) {
192 ParamModel model = new ParamModelImpl(e, defaultValue, parentI18n, localStrings);
199 private static class ParamModelImpl extends ParamModel {
H A DGenericCommandModel.java61 final HashMap<String, ParamModel> params = new HashMap<String, ParamModel>();
125 for (Map.Entry<String, ParamModel> e : CommandModelImpl.init(extraType, i18n, localStrings).entrySet()) {
148 public ParamModel getModelFor(String paramName) {
166 private final class ParamBasedModel extends ParamModel {
204 private final class AttributeBasedModel extends ParamModel {
H A DMapInjectionResolver.java87 CommandModel.ParamModel param = model.getModelFor(name);
/glassfish-3.1.2/admin/util/src/main/java/com/sun/enterprise/admin/util/
H A DCommandModelData.java68 private final Map<String, CommandModel.ParamModel> params =
69 new LinkedHashMap<String, ParamModel>();
97 public CommandModel.ParamModel getModelFor(String paramName) {
125 * Add the ParamModel to this CommandModel.
127 public void add(ParamModel model) {
136 public static class ParamModelData extends ParamModel {
/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/resources/
H A DStatusGenerator.java368 Collection<CommandModel.ParamModel> params;
372 Iterator<CommandModel.ParamModel> iterator = params.iterator();
373 CommandModel.ParamModel paramModel;
393 public Collection<CommandModel.ParamModel> getParamMetaData(String commandName) {
396 Collection<CommandModel.ParamModel> params = cm.getParameters();
/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/
H A DResourceUtil.java245 Collection<CommandModel.ParamModel> params;
252 Iterator<CommandModel.ParamModel> iterator = params.iterator();
253 CommandModel.ParamModel paramModel;
454 public static Collection<CommandModel.ParamModel> getParamMetaData(
458 Collection<CommandModel.ParamModel> params = cm.getParameters();
473 public static Collection<CommandModel.ParamModel> getParamMetaData(
480 ArrayList<CommandModel.ParamModel> metaData = new ArrayList<CommandModel.ParamModel>();
481 CommandModel.ParamModel paramModel;
611 static ParameterMetaData getParameterMetaData(CommandModel.ParamModel paramMode
[all...]
/glassfish-3.1.2/admin/cli-optional/src/main/java/com/sun/enterprise/admin/cli/optional/
H A DCreateDomainCommand.java56 import org.glassfish.api.admin.CommandModel.ParamModel;
147 protected Collection<ParamModel> usageOptions() {
148 Collection<ParamModel> opts = commandModel.getParameters();
149 Set<ParamModel> uopts = new LinkedHashSet<ParamModel>();
150 ParamModel aPort = new ParamModelData(ADMIN_PORT, String.class, true,
152 ParamModel iPort = new ParamModelData(INSTANCE_PORT, String.class, true,
154 for (ParamModel pm : opts) {
737 public void validatePassword(String password, ParamModel pwdOpt)
/glassfish-3.1.2/admin/util/src/main/java/com/sun/enterprise/admin/remote/
H A DRemoteAdminCommand.java53 import org.glassfish.api.admin.CommandModel.ParamModel;
377 ParamModel operandParam = null;
378 for (ParamModel opt : commandModel.getParameters()) {
1325 ParamModel opt = commandModel.getModelFor(paramName);
1338 ParamModel operandParam = getOperandModel();
1403 * Get the ParamModel that corresponds to the operand
1406 private ParamModel getOperandModel() {
1407 for (ParamModel pm : commandModel.getParameters()) {
1425 ParamModel opt = commandModel.getModelFor(name);
/glassfish-3.1.2/core/kernel/src/main/java/com/sun/enterprise/v3/admin/
H A DCommandRunnerImpl.java254 CommandModel.ParamModel paramModel = null;
255 for (CommandModel.ParamModel pModel : model.getParameters()) {
431 for (CommandModel.ParamModel pModel : model.getParameters()) {
517 for (CommandModel.ParamModel param : model.getParameters()) {
548 CommandModel.ParamModel primary = null;
552 for (CommandModel.ParamModel p : model.getParameters()) {
612 private static String typeOf(CommandModel.ParamModel p) {
642 CommandModel.ParamModel model) {
706 for (CommandModel.ParamModel pModel : model.getParameters()) {
1322 CommandModel.ParamModel para
[all...]
/glassfish-3.1.2/admin/config-api/src/main/java/org/glassfish/config/support/
H A DGenericDeleteCommand.java96 CommandModel.ParamModel param = model.getModelFor(paramName);
H A DGenericListCommand.java93 CommandModel.ParamModel param = model.getModelFor(paramName);
H A DGenericCreateCommand.java99 CommandModel.ParamModel param = model.getModelFor(paramName);
/glassfish-3.1.2/admin/cli/src/main/java/com/sun/enterprise/admin/cli/embeddable/
H A DCommandExecutorImpl.java121 for (CommandModel.ParamModel opt : commandModel.getParameters()) {
/glassfish-3.1.2/admin/cli/src/main/java/com/sun/enterprise/admin/cli/remote/
H A DRemoteCommand.java54 import org.glassfish.api.admin.CommandModel.ParamModel;

Completed in 47 milliseconds