Tabnine Logo
StringUtils.isNullOrEmpty
Code IndexAdd Tabnine to your IDE (free)

How to use
isNullOrEmpty
method
in
com.axway.ats.core.utils.StringUtils

Best Java code snippets using com.axway.ats.core.utils.StringUtils.isNullOrEmpty (Showing top 20 results out of 315)

origin: com.axway.ats.framework/ats-core

public String getStatusCommandStdOutSearchToken() {
  if (StringUtils.isNullOrEmpty(statusCommandInfo.stdoutSearchToken)) {
    return null;
  } else {
    return statusCommandInfo.stdoutSearchToken;
  }
}
origin: com.axway.ats.framework/ats-core

public String getStopCommandStdOutSearchToken() {
  if (StringUtils.isNullOrEmpty(stopCommandInfo.stdoutSearchToken)) {
    return null;
  } else {
    return stopCommandInfo.stdoutSearchToken;
  }
}
origin: com.axway.ats.framework/ats-core

public String getJavaExecutableToken() {
  String javaExeToken = "";
  if (!StringUtils.isNullOrEmpty(javaExecutable)) {
    javaExeToken = " -java_exec \"" + javaExecutable + "\"";
  }
  return javaExeToken;
}
origin: com.axway.ats.framework/ats-core

public ShellCommand( String alias, String command ) {
  if (!StringUtils.isNullOrEmpty(alias)) {
    this.alias = alias;
  }
  this.command = command;
}
origin: com.axway.ats.framework/ats-core

public String getPortToken() {
  String portToken = "";
  if (!StringUtils.isNullOrEmpty(port)) {
    portToken = " -port " + port;
  }
  return portToken;
}
origin: com.axway.ats.framework/ats-core

public String getStatusCommand() {
  if (StringUtils.isNullOrEmpty(statusCommandInfo.command)) {
    return null;
  } else {
    return statusCommandInfo.command;
  }
}
origin: com.axway.ats.framework/ats-core

public String getStartCommandStdOutSearchToken() {
  if (StringUtils.isNullOrEmpty(startCommandInfo.stdoutSearchToken)) {
    return null;
  } else {
    return startCommandInfo.stdoutSearchToken;
  }
}
origin: com.axway.ats.framework/ats-core

public String getStatusCommandUrl() {
  if (StringUtils.isNullOrEmpty(statusCommandInfo.url)) {
    return null;
  } else {
    return statusCommandInfo.url;
  }
}
origin: com.axway.ats.framework/ats-uiengine

private void setProxyIfAvailable() {
  if (!StringUtils.isNullOrEmpty(AtsSystemProperties.SYSTEM_HTTP_PROXY_HOST)
    && !StringUtils.isNullOrEmpty(AtsSystemProperties.SYSTEM_HTTP_PROXY_PORT)) {
    webDriver.setProxy(AtsSystemProperties.SYSTEM_HTTP_PROXY_HOST,
              Integer.parseInt(AtsSystemProperties.SYSTEM_HTTP_PROXY_PORT));
  }
}
origin: com.axway.ats.framework/ats-uiengine

public String getMapSection() {
  if (sectionNode != null) {
    String mapSec = sectionNode.getAttributes().getNamedItem(ATT_ELEMENT_NAME).getNodeValue();
    if (!StringUtils.isNullOrEmpty(mapSec)) {
      return mapSec;
    }
  }
  log.error("No map section is set, no attribute of the current section can be get!");
  return null;
}
origin: com.axway.ats.framework/ats-actionlibrary

/**
 * Checks if request header with the given key/name has already been added
 * @param name the header key/name
 * @return true if header with that key/name was already added, false otherwise
*/
private boolean hasHeader( String name ) {
  if (StringUtils.isNullOrEmpty(name)) {
    throw new RestException("Error while adding request header. Header name/key is null or empty.");
  }
  return requestHeaders.containsKey(name);
}
origin: com.axway.ats.framework/ats-actionlibrary

/**
 * @return files extensions for files treated as Text files
 */
public String getTextFileExtensions() {
  String extensions = getOptionalProperty(FILE_SNAPSHOT_TEXT_FILE_EXTENSIONS);
  if (StringUtils.isNullOrEmpty(extensions)) {
    return "";
  } else {
    return extensions;
  }
}
origin: com.axway.ats.framework/ats-core

private String parseDirectoryAlias( String directoryAlias ) {
  if (StringUtils.isNullOrEmpty(directoryAlias)) {
    throw new FileSystemSnapshotException("Invalid directory alias '" + directoryAlias + "'");
  }
  return directoryAlias.trim();
}
origin: com.axway.ats.framework/ats-actionlibrary

/**
 * @return files extensions for files treated as Properties files
 */
public String getPropertiesFileExtensions() {
  String extensions = getOptionalProperty(FILE_SNAPSHOT_PROPERTIES_FILE_EXTENSIONS);
  if (StringUtils.isNullOrEmpty(extensions)) {
    return "";
  } else {
    return extensions;
  }
}
origin: com.axway.ats.framework/ats-uiengine

private void setFirefoxProxyIfAvailable(
                     DesiredCapabilities capabilities ) {
  if (!StringUtils.isNullOrEmpty(AtsSystemProperties.SYSTEM_HTTP_PROXY_HOST)
    && !StringUtils.isNullOrEmpty(AtsSystemProperties.SYSTEM_HTTP_PROXY_PORT)) {
    capabilities.setCapability(CapabilityType.PROXY,
                  new Proxy().setHttpProxy(AtsSystemProperties.SYSTEM_HTTP_PROXY_HOST
                              + ':'
                              + AtsSystemProperties.SYSTEM_HTTP_PROXY_PORT));
  }
}
origin: com.axway.ats.framework/ats-core

private String parseFilePath( String filePath ) {
  if (StringUtils.isNullOrEmpty(filePath)) {
    throw new FileSystemSnapshotException("Invalid file path '" + filePath + "'");
  }
  return IoUtils.normalizeUnixFile(filePath.trim());
}
origin: com.axway.ats.framework.agent.standalone/ats-agent-monitoring

private String getName(
            FullReadingBean reading,
            String jvmPort ) {
  String jvmName = reading.getName().substring( 6 );
  String jvmAlias = reading.getParameter( SystemMonitorDefinitions.PARAMETER_NAME__PROCESS_ALIAS );
  if( !StringUtils.isNullOrEmpty( jvmAlias ) ) {
    jvmName = " [JVM] " + jvmAlias;
  } else {
    jvmName = " [JVM] p" + jvmPort + ": " + jvmName;
  }
  return jvmName;
}
origin: com.axway.ats.framework/ats-actionlibrary

/**
 * @param keyPath the key path
 * @return JSON Text which is part of the initial JSON text
 */
@PublicAtsApi
public JsonText get( String keyPath ) {
  if (StringUtils.isNullOrEmpty(keyPath)) {
    throw new JsonException("Invalid json path '" + keyPath + "'");
  }
  return getInternalJson(new ArrayList<>(Arrays.asList(keyPath.split(PATH_DELIMETER))));
}
origin: com.axway.ats.framework/ats-uiengine

public void setMapSection( String mapSection ) {
  if (StringUtils.isNullOrEmpty(mapSection)) {
    throw new ElementsMapException("Error loading elements map section. Provided null/empty map section argument");
  }
  // load the section
  sectionNode = getSectionNode(mapSection);
  checkForDuplicatedMapIds();
}
origin: com.axway.ats.framework/ats-core

@Override
public void skipTextLine( String rootDirectoryAlias, String relativeFilePath, String line,
             String matchType ) {
  if (StringUtils.isNullOrEmpty(line)) {
    throw new FileSystemSnapshotException("The matching string could not be null or empty.");
  }
  rootDirectoryAlias = parseDirectoryAlias(rootDirectoryAlias);
  relativeFilePath = makePathRelative(parseFilePath(relativeFilePath));
  DirectorySnapshot dirSnapshot = getDirectorySnapshot(rootDirectoryAlias);
  dirSnapshot.addSkipTextLineMatcher(rootDirectoryAlias, relativeFilePath, line,
                    MATCH_TYPE.valueOf(matchType));
}
com.axway.ats.core.utilsStringUtilsisNullOrEmpty

Javadoc

Tests if a string is null or empty

Popular methods of StringUtils

  • byteArray2Hex
    Convert a byte array to a hex representation
  • equals
    Tests if 2 strings are equal. Works OK when null string is passed
  • isNotNullAndEquals
    Tests if 2 strings are equal, but given they are not null
  • md5sum
    Get the MD5 sum of a content passed as String
  • methodInputArgumentsToString
    Convert method's input arguments into a single String
  • parseCommandLineArguments
    Parsing command and its arguments
  • trimAndQuoteStringArgument
    Trim and add quotes to a string argument

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • String (java.lang)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now