Codota Logo
ConfigurationProperty.getSwitchName
Code IndexAdd Codota to your IDE (free)

How to use
getSwitchName
method
in
org.chorusbdd.chorus.config.ConfigurationProperty

Best Java code snippets using org.chorusbdd.chorus.config.ConfigurationProperty.getSwitchName (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: Chorus-bdd/Chorus

public String getSwitchName() {
  return delegate.getSwitchName();
}
origin: Chorus-bdd/Chorus

private void addPropertyValues(Map<ConfigurationProperty, List<String>> propertyMap, StringTokenizer st, ConfigurationProperty property) throws InterpreterPropertyException {
  List<String> l = getOrCreatePropertyList(propertyMap, property);
  if ( ! st.hasMoreTokens() ) {
    if (isBooleanSwitchProperty(property)) {
      l.add("true");
    } else {
      throw new InterpreterPropertyException(
        String.format("No value was given for switch -%s (-%s), and Chorus cannot provide a default",
          property.getSwitchShortName(),
          property.getSwitchName()
        )
      );
    }
  } else {
    while(st.hasMoreTokens()) {
      l.add(st.nextToken());
    }
  }
}
origin: Chorus-bdd/Chorus

  private void checkIfMandatory(Map<ConfigurationProperty, List<String>> results, ConfigurationProperty p) throws InterpreterPropertyException {
    if ( p.isMandatory() && ! results.containsKey(p)) {
      throw new InterpreterPropertyException(
        "Mandatory property " + p + " was not set. " +
        "You can set this property with the -" + p.getSwitchName() + " switch, " +
        "the -" + p.getSwitchShortName() + " switch or the " +
        p.getSystemProperty() + " system property"
      );
    }
  }
}
org.chorusbdd.chorus.configConfigurationPropertygetSwitchName

Popular methods of ConfigurationProperty

  • getSystemProperty
  • getDefaults
  • getExample
  • getHyphenatedSwitch
  • getMaxValueCount
  • getMinValueCount
  • getPropertySourceMode
  • getSwitchShortName
  • getValidatingExpression
  • isMandatory
  • matchesSwitch
  • getDescription
  • matchesSwitch,
  • getDescription,
  • hasDefaults

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • findViewById (Activity)
  • putExtra (Intent)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • BoxLayout (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now