ch.oscg.jreleaseinfo
Class JReleaseInfoUtil

java.lang.Object
  extended bych.oscg.jreleaseinfo.JReleaseInfoUtil

public class JReleaseInfoUtil
extends java.lang.Object

Utility class for JReleaseInfoAntTask task. All methods are defined static so they can be called without creating an instance.

Version:
$Revision: 1.4 $ ($Date: 2005/08/06 14:12:36 $ / $Author: tcotting $)
Author:
Thomas Cotting, Tangarena Engineering AG, Luzern

Constructor Summary
JReleaseInfoUtil()
           
 
Method Summary
static boolean checkIsBoolean(java.lang.String val)
          Utility method to check if a String value is a valid boolean value.
static java.lang.String getPathElement(java.lang.String pathElement)
          Utility method to append slash to pathelement.
static boolean isValidClassNameString(java.lang.String name)
          Utility method to check the validity of string for a class name.
static boolean isValidNameString(java.lang.String name)
          Utility method to check the validity of string for name.
static boolean isValidPackageNameString(java.lang.String name)
          Utility method to check the validity of string for a package name.
static java.lang.String lowerCaseFirstLetter(java.lang.String str)
          Utility method to change the first letter of a string to lowercase.
static java.lang.String upperCaseFirstLetter(java.lang.String str)
          Utility method to change the first letter of a string to uppercase.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JReleaseInfoUtil

public JReleaseInfoUtil()
Method Detail

getPathElement

public static java.lang.String getPathElement(java.lang.String pathElement)
Utility method to append slash to pathelement.

Parameters:
pathElement - which should be checked
Returns:
the processed pathelement

upperCaseFirstLetter

public static java.lang.String upperCaseFirstLetter(java.lang.String str)
Utility method to change the first letter of a string to uppercase.

Parameters:
str - String to process
Returns:
str where first letter is uppercase

lowerCaseFirstLetter

public static java.lang.String lowerCaseFirstLetter(java.lang.String str)
Utility method to change the first letter of a string to lowercase.

Parameters:
str - String to process
Returns:
str where first letter is lowercase

checkIsBoolean

public static boolean checkIsBoolean(java.lang.String val)
Utility method to check if a String value is a valid boolean value.

Parameters:
val - String value expressing a boolean
Returns:
true if val==true|TRUE|True...

isValidNameString

public static boolean isValidNameString(java.lang.String name)
Utility method to check the validity of string for name. Note: Only some common mistakes are checked.

Parameters:
name - String to check
Returns:
true when not null and not empty

isValidClassNameString

public static boolean isValidClassNameString(java.lang.String name)
Utility method to check the validity of string for a class name. Note: Only some common mistakes are checked.

Parameters:
name - String to check
Returns:
true when valid name string and no dot

isValidPackageNameString

public static boolean isValidPackageNameString(java.lang.String name)
Utility method to check the validity of string for a package name. Note: Only some common mistakes are checked.

Parameters:
name - String to check (empty string is allowed)
Returns:
true/false


Copyright © 2005 Open Source Competence Group (OSCG). All Rights Reserved.