Examples of addParser()


Examples of net.sourceforge.argparse4j.inf.Subparsers.addParser()

    .help("offset to define where list begins");
  reviewsParser.addArgument("-n", "--number").type(Integer.class).required(false)
    .help("how many reviews will be listed");
 
  /* =================Recommendation Arguments============== */
  Subparser recommendationParser = subparsers.addParser("recommendations", true)
    .description("lists recommended apps of given application").setDefault("command", COMMAND.RECOMMENDATIONS);
  recommendationParser.addArgument("package").help("application whose recommendations to be listed");
  recommendationParser.addArgument("-t", "--type").choices(new ReleationChoice()).type(new RecommendationType())
    .required(false).help("releations type").setDefault(RECOMMENDATION_TYPE.ALSO_INSTALLED);
  recommendationParser.addArgument("-o", "--offset").type(Integer.class).required(false)
View Full Code Here

Examples of net.sourceforge.argparse4j.inf.Subparsers.addParser()

    .help("offset to define where list begins");
  recommendationParser.addArgument("-n", "--number").type(Integer.class).required(false)
    .help("how many recommendations will be listed");
 
  /* =================Register Arguments============== */
  subparsers.addParser("register", true).description("registers device so that can be seen from web!")
    .setDefault("command", COMMAND.REGISTER);
 
  /* =================UseGCM Arguments============== */
  subparsers.addParser("usegcm", true).description("listens GCM(GoogleCloudMessaging) for download notification and downloads them!")
    .setDefault("command", COMMAND.USEGCM);
View Full Code Here

Examples of net.sourceforge.argparse4j.inf.Subparsers.addParser()

  /* =================Register Arguments============== */
  subparsers.addParser("register", true).description("registers device so that can be seen from web!")
    .setDefault("command", COMMAND.REGISTER);
 
  /* =================UseGCM Arguments============== */
  subparsers.addParser("usegcm", true).description("listens GCM(GoogleCloudMessaging) for download notification and downloads them!")
    .setDefault("command", COMMAND.USEGCM);
    }

    public static void main(String[] args) throws Exception {

View Full Code Here

Examples of org.apache.hivemind.definition.ConfigurationPointDefinition.addParser()

                            unresolved.getExtension().getLocation(),
                            null);
                   
                }
               
                configurationPoint.addParser((ConfigurationParserDefinition) unresolved.getExtension());
            }
            iter.remove();
        }
    }
View Full Code Here

Examples of org.apache.hivemind.definition.ConfigurationPointDefinition.addParser()

                // Add parser constructor with direct reference to schema
                ConfigurationParserDefinition parserDef = new ConfigurationParserDefinitionImpl(
                        sourceModule, schemaAssignment.getLocation(), HiveMindSchemaParser.INPUT_FORMAT_NAME,
                        new HiveMindSchemaParserConstructor(schema));
               
                cpd.addParser(parserDef);
               
                // For backward compatibility change the configuration to Map if the schema uses a map too
                if (HashMap.class.getName().equals(schema.getRootElementClassName())
                        || UniqueHashMap.class.getName().equals(schema.getRootElementClassName())) {
                    // The schema assignments are mainly used for backward compatibility so we can
View Full Code Here

Examples of org.apache.hivemind.definition.impl.ConfigurationPointDefinitionImpl.addParser()

                // Add parser constructor with direct reference to schema
                ConfigurationParserDefinition parserDef = new ConfigurationParserDefinitionImpl(
                        module, cpd.getContributionsSchema().getLocation(), HiveMindSchemaParser.INPUT_FORMAT_NAME,
                        new HiveMindSchemaParserConstructor(cpd.getContributionsSchema()));
               
                configurationPoint.addParser(parserDef);
            } else if (cpd.getContributionsSchemaId() != null) {
                // Add schema assignment and resolve in post processing
                String qualifiedId = IdUtils.qualify(module.getId(), cpd.getId());
                SchemaAssignment schemaAssignment = new SchemaAssignment(qualifiedId,
                        cpd.getContributionsSchemaId(), cpd.getLocation());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.