protected String dbmsConnectionUrl() { if (StringUtils.isNotBlank(dbmsConnectionUrl)) { return dbmsConnectionUrl; } else return null; }
private Stream<? extends Document> locate(Project project) throws MojoExecutionException { if (StringUtils.isNotBlank(what)) { final Class<? extends Document> docClass; switch (what.toLowerCase()) { case "p": case "project": case "projects": return Stream.of(project); case "d": case "dbms": case "dbmses": docClass = Dbms.class; break; case "s": case "schema": case "schemas": docClass = Schema.class; break; case "t": case "table": case "tables": docClass = Table.class; break; case "c": case "column": case "columns": docClass = Column.class; break; case "pk": case "primarykey": case "primarykeys": case "pkc": case "primarykeycolumn": case "primarykeycolumns": docClass = PrimaryKeyColumn.class; break; case "i": case "index": case "indexes": docClass = Index.class; break; case "ic": case "indexcolumn": case "indexcolumns": docClass = IndexColumn.class; break; case "fk": case "foreignkey": case "foreignkeys": docClass = ForeignKey.class; break; case "fkc": case "foreignkeycolumn": case "foreignkeycolumns": docClass = ForeignKeyColumn.class; break; default: throw whatNotValid(); } return DocumentDbUtil.traverseOver(project, docClass).filter(this::matches); } else return DocumentDbUtil.traverseOver(project, Document.class).filter(this::matches); }
if (StringUtils.isNotBlank(pEnc)) { projectEncoding = pEnc; if (StringUtils.isNotBlank(openapiFilePath)) { Path openapiPath = Paths.get(openapiFilePath); if (openapiPath.toFile().exists() && openapiPath.toFile().isFile()) { String openapiFileContent = new String(Files.readAllBytes(openapiPath), encoding); if (StringUtils.isNotBlank(openapiFileContent)) { try { openAPIInput = Json.mapper().readValue(openapiFileContent, OpenAPI.class); GenericOpenApiContextBuilder builder = new JaxrsOpenApiContextBuilder() .openApiConfiguration(config); if (StringUtils.isNotBlank(contextId)) { builder.ctxId(contextId);
@Override public Boolean get() { final String online = onlineVersion.getText(); final String installed = installedVersion.getText(); if (StringUtils.isNotBlank(online)) { return new Version(online).compareTo(new Version(installed)) > 0; } return false; } });
public void checkRequiredMavenVersion( PluginDescriptor pluginDescriptor ) throws PluginIncompatibleException { String requiredMavenVersion = pluginDescriptor.getRequiredMavenVersion(); if ( StringUtils.isNotBlank( requiredMavenVersion ) ) { try { if ( !runtimeInformation.isMavenVersion( requiredMavenVersion ) ) { throw new PluginIncompatibleException( pluginDescriptor.getPlugin(), "The plugin " + pluginDescriptor.getId() + " requires Maven version " + requiredMavenVersion ); } } catch ( RuntimeException e ) { logger.warn( "Could not verify plugin's Maven prerequisite: " + e.getMessage() ); } } }
public boolean isHasDefinition() { return StringUtils.isNotBlank(myDefinition); }
public boolean isHasDisplay() { return StringUtils.isNotBlank(myDisplay); }
if (StringUtils.isNotBlank(dbmsHost())) { result.withIpAddress(dbmsHost()); getLog().info("Custom database host '" + dbmsHost() + "'."); if (StringUtils.isNotBlank(dbmsUsername())) { result.withUsername(dbmsUsername()); getLog().info("Custom database username '" + dbmsUsername() + "'."); if (StringUtils.isNotBlank(dbmsPassword())) { result.withPassword(dbmsPassword()); getLog().info("Custom database password '********'."); if (StringUtils.isNotBlank(dbmsConnectionUrl())) { result.withConnectionUrl(dbmsConnectionUrl()); getLog().info("Custom connection URL '" + dbmsConnectionUrl() + "'.");
private void updateOpenInBrowserButton() { openInBrowser.setEnabled(false); final Module module = moduleInfoBinding.get(); if (module == null) { return; } final String moduleOrigin = getOriginModuleUrl(moduleManager.getRegistry().getLatestModuleVersion(module.getMetadata().getId())); if (StringUtils.isNotBlank(moduleOrigin)) { openInBrowser.setEnabled(true); openInBrowser.setUrl(moduleOrigin) .setNuiManager(getManager()) .setTranslationSystem(translationSystem); } }
String text = commandLine.getText(); if (StringUtils.isNotBlank(text)) { String command = "say"; List<String> params = Collections.singletonList(text);
commandLine.subscribe(widget -> { String text = commandLine.getText(); if (StringUtils.isNotBlank(text)) { console.execute(text, localPlayer.getClientEntity());
retVal = myCode; if (Character.isDigit(myCode.charAt(0))) { if (StringUtils.isNotBlank(myDefinition)) { if (myDefinition.length() < 100) { String newValue = myDefinition;
if (StringUtils.isNotBlank(universeWrapper.getGameName())) { gameManifest.setTitle(universeWrapper.getGameName()); } else {
@Override public String toString() { return "ArtifactDTO(" + groupId + "/" + artifactId + "/" + version + (StringUtils.isNotBlank(packaging) ? "/" + packaging : "") + (StringUtils.isNotBlank(classifier) ? "/" + classifier : "") + ")"; }
protected final void addProperty(final Properties properties, final String name, final String value) { if (StringUtils.isBlank(name)) { throw new IllegalArgumentException("name must be defined"); } if (StringUtils.isNotBlank(value)) { properties.setProperty(name, value); } } }
/** * {@inheritDoc} * * @see org.apache.maven.reporting.MavenReport#getDescription(java.util.Locale) */ public String getDescription(final Locale locale) { initMessages(locale); return StringUtils.isNotBlank(description) ? description : messages .getLabel("report.description." + outputName); }
/** * {@inheritDoc} * * @see org.apache.maven.reporting.MavenReport#getDescription(java.util.Locale) */ public String getDescription(final Locale locale) { initMessages(locale); return StringUtils.isNotBlank(description) ? description : messages .getLabel("report.description." + outputName); }
/** * {@inheritDoc} * * @see org.apache.maven.reporting.MavenReport#getName(java.util.Locale) */ public String getName(final Locale locale) { initMessages(locale); return StringUtils.isNotBlank(name) ? name : messages .getLabel("report.name." + outputName); }
private WebDriver createHtmlUnitWebDriver() throws Exception { DesiredCapabilities capabilities = DesiredCapabilities.htmlUnitWithJs(); if (StringUtils.isNotBlank(capabilities.getVersion())) { capabilities.setVersion(browserVersion.replaceAll("(\\D+)_(\\d.*)?", "$1-$2").replaceAll("_", " ").toLowerCase()); } customizeCapabilities(capabilities); return new QuietHtmlUnitDriver(capabilities, debug); }
private void writeType(final Type type) throws XMLStreamException { final String packageName = type.getPackageName(); if (StringUtils.isNotBlank(packageName)) { writeElement("package", packageName); } writeElement("type", type.getTypeName()); }