Examples of Flags


Examples of org.apache.commons.validator.util.Flags

     * those are the only valid card types.
     */
    public CreditCardValidator(int options) {
        super();

        Flags f = new Flags(options);
        if (f.isOn(VISA)) {
            this.cardTypes.add(new Visa());
        }

        if (f.isOn(AMEX)) {
            this.cardTypes.add(new Amex());
        }

        if (f.isOn(MASTERCARD)) {
            this.cardTypes.add(new Mastercard());
        }

        if (f.isOn(DISCOVER)) {
            this.cardTypes.add(new Discover());
        }
    }
View Full Code Here

Examples of org.apache.hadoop.hdfs.tools.offlineEditsViewer.OfflineEditsViewer.Flags

      boolean recovery) throws IOException {

    LOG.info("Running oev [" + inFilename + "] [" + outFilename + "]");

    OfflineEditsViewer oev = new OfflineEditsViewer();
    Flags flags = new Flags();
    flags.setPrintToScreen();
    if (recovery) {
      flags.setRecoveryMode();
    }
    return oev.go(inFilename, outFilename, processor, flags, null);
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.tools.offlineEditsViewer.OfflineEditsViewer.Flags

  private boolean hasAllOpCodes(String inFilename) throws IOException {
    String outFilename = inFilename + ".stats";
    FileOutputStream fout = new FileOutputStream(outFilename);
    StatisticsEditsVisitor visitor = new StatisticsEditsVisitor(fout);
    OfflineEditsViewer oev = new OfflineEditsViewer();
    if (oev.go(inFilename, outFilename, "stats", new Flags(), visitor) != 0)
      return false;
    LOG.info("Statistics for " + inFilename + "\n"
        + visitor.getStatisticsString());

    boolean hasAllOpCodes = true;
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.MappingTool.Flags

     * with the useTriggersForAutoAssign db option enabled.
     */
    private void recreateOracleArtifacts(OracleDictionary dict,
        JDBCConfiguration conf) throws IOException, SQLException {
        dict.useTriggersForAutoAssign = true;
        Flags flags = new MappingTool.Flags();
        flags.dropTables = true;
        flags.schemaAction = "drop,add";
        flags.sequences = true;
        flags.ignoreErrors = true;
        flags.dropSequences = true;
View Full Code Here

Examples of org.codehaus.plexus.formica.validation.util.Flags

     * this class.  To set multiple options you simply add them together.  For example,
     * ALLOW_2_SLASHES + NO_FRAGMENTS enables both of those options.
     */
    public UrlValidator( String[] schemes, int options )
    {
        this.options = new Flags( options );

        if ( this.options.isOn( ALLOW_ALL_SCHEMES ) )
        {
            return;
        }
View Full Code Here

Examples of org.tmatesoft.hg.repo.HgManifest.Flags

    } catch (HgRuntimeException ex) {
      checkResult = new Outcome(Outcome.Kind.Failure, phaseMsg, ex);
      return checkResult;
    }
    if (toExtract != null) {
      Flags extractRevFlags = cachedManifest.flags(dataFile.getPath());
      fileRevision = new HgFileRevision(repo, toExtract, extractRevFlags, dataFile.getPath());
      checkResult = new Outcome(Outcome.Kind.Success, String.format("File %s, revision %s found at changeset %s", dataFile.getPath(), toExtract.shortNotation(), cset.shortNotation()));
      return checkResult;
    }
    checkResult = new Outcome(Outcome.Kind.Success, String.format("File %s nor its origins were known at revision %s", file, cset.shortNotation()));
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.