Java Code Examples for org.apache.commons.lang.StringUtils.removeEndIgnoreCase()

The following are Jave code examples for showing how to use removeEndIgnoreCase() of the org.apache.commons.lang.StringUtils class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Hydrograph   File: ClassDetails.java   Source Code and License Vote up 6 votes
private void intialize(IClassFile classFile, String jarFileName, String packageName, boolean isUserDefined) {
	this.cName = StringUtils.removeEndIgnoreCase(classFile.getElementName(), Constants.CLASS_EXTENSION);
	displayName=cName;
	if(StringUtils.isNotBlank(jarFileName)){
		jarName=jarFileName;
	}
	if(StringUtils.isNotBlank(packageName)){
		this.packageName=packageName;
	}
	if(StringUtils.isBlank(javaDoc)){
		javaDoc=Constants.EMPTY_STRING;
	}
	if(isUserDefined){
		isUserDefined=true;
		displayName=cName+Constants.USER_DEFINED_SUFFIX;
		updateJavaDoc(jarFileName, packageName);
	}
}
 
Example 2
Project: Hydrograph   File: BuildExpressionEditorDataSturcture.java   Source Code and License Vote up 5 votes
private boolean isValidCLassName(String className) {
	className = StringUtils.removeEndIgnoreCase(className, Constants.CLASS_EXTENSION);
	Matcher matchs = Pattern.compile(Constants.ALPHANUMERIC_REGEX).matcher(className);
	if(!matchs.matches())
		return false;
	return true;
}