当前位置: 首页>>代码示例>>Java>>正文


Java StringHelper.isNotEmpty方法代码示例

本文整理汇总了Java中org.hibernate.annotations.common.util.StringHelper.isNotEmpty方法的典型用法代码示例。如果您正苦于以下问题:Java StringHelper.isNotEmpty方法的具体用法?Java StringHelper.isNotEmpty怎么用?Java StringHelper.isNotEmpty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.hibernate.annotations.common.util.StringHelper的用法示例。


在下文中一共展示了StringHelper.isNotEmpty方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: buildLayoutContraint

import org.hibernate.annotations.common.util.StringHelper; //导入方法依赖的package包/类
private String buildLayoutContraint(ComponentInfo component){
	StringBuffer sb=new StringBuffer();
	if(component.getLayoutConstraintProperties()!=null){
		int i=0;
		for(LayoutConstraintProperty lcp:component.getLayoutConstraintProperties()){
			if(StringHelper.isNotEmpty(lcp.getName()) && StringHelper.isNotEmpty(lcp.getValue())){
				if(i>0){
					sb.append(";");
				}
				sb.append(lcp.getName()+":"+lcp.getValue());
				i++;
			}
		}
	}
	if(sb.length()>0){
		return sb.toString();			
	}else{
		return null;
	}
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:21,代码来源:AbstractConverter.java

示例2: buildValidatorElement

import org.hibernate.annotations.common.util.StringHelper; //导入方法依赖的package包/类
private Element buildValidatorElement(Validator validator){
	BaseElement element=new BaseElement("Validator");
	int pos=validator.getName().lastIndexOf("Validator");
	String validatorType=validator.getName().substring(0,pos);
	validatorType=validatorType.substring(0,1).toLowerCase()+validatorType.substring(1,validatorType.length());
	element.addAttribute("type",validatorType);
	if(validator.getProperties()!=null){
		for(ValidatorProperty vp:validator.getProperties()){
			if(StringHelper.isNotEmpty(vp.getName()) && StringHelper.isNotEmpty(vp.getValue())){
				Element propertyElement=createPropertyElement(vp.getName(),vp.getValue());
				element.add(propertyElement);					
			}
		}
	}
	return element;
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:17,代码来源:ModelBuilder.java

示例3: convert

import org.hibernate.annotations.common.util.StringHelper; //导入方法依赖的package包/类
public Element convert(ComponentInfo component, RuleSet ruleSet,
		Element rootElement) throws Exception {
	String name=MenuItem.class.getSimpleName();
	XmlNode node=MenuItem.class.getAnnotation(XmlNode.class);
	if(node!=null && StringHelper.isNotEmpty(node.nodeName())){
		name=node.nodeName();
	}
	Rule rule=ruleSet.getRule(name);
	BaseElement element = fillElement(component,ruleSet,rule,rootElement);
	if(component.getChildren()!=null){
		for(ComponentInfo c:component.getChildren()){
			this.buildChildren(element,c,ruleSet,rootElement);							
		}
	}
	return element;
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:17,代码来源:MenuItemConverter.java

示例4: convert

import org.hibernate.annotations.common.util.StringHelper; //导入方法依赖的package包/类
public Element convert(ComponentInfo component, RuleSet ruleSet,
		Element rootElement) throws Exception {
	String name=Dialog.class.getSimpleName();
	XmlNode node=Dialog.class.getAnnotation(XmlNode.class);
	if(node!=null && StringHelper.isNotEmpty(node.nodeName())){
		name=node.nodeName();
	}
	Rule rule=ruleSet.getRule(name);
	BaseElement element = fillElement(component,ruleSet,rule,rootElement);
	if(component.getChildren()!=null){
		for(ComponentInfo c:component.getChildren()){
			this.buildChildren(element,c,ruleSet,rootElement);							
		}
	}
	return element;
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:17,代码来源:DialogConverter.java

示例5: convert

import org.hibernate.annotations.common.util.StringHelper; //导入方法依赖的package包/类
public Element convert(ComponentInfo component, RuleSet ruleSet,
		Element rootElement) throws Exception {
	String name=RadioGroup.class.getSimpleName();
	XmlNode node=RadioGroup.class.getAnnotation(XmlNode.class);
	if(node!=null && StringHelper.isNotEmpty(node.nodeName())){
		name=node.nodeName();
	}
	Rule rule=ruleSet.getRule(name);
	BaseElement element = fillElement(component,ruleSet,rule,rootElement);
	this.fillDataSetAndDataPathProperty(element, component,false);
	if(component.getChildren()!=null){
		for(ComponentInfo c:component.getChildren()){
			this.buildChildren(element,c,ruleSet,rootElement);							
		}
	}
	return element;
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:18,代码来源:RadioGroupConverter.java

示例6: convert

import org.hibernate.annotations.common.util.StringHelper; //导入方法依赖的package包/类
public Element convert(ComponentInfo component, RuleSet ruleSet,Element rootElement)
		throws Exception {
	String name=DataColumn.class.getSimpleName();
	XmlNode node=DataColumn.class.getAnnotation(XmlNode.class);
	if(node!=null && StringHelper.isNotEmpty(node.nodeName())){
		name=node.nodeName();
	}
	Rule rule=ruleSet.getRule(name);
	BaseElement element = fillElement(component,ruleSet,rule,rootElement);
	
	boolean addProperty=true;
	for(ComponentProperty cp:component.getComponentProperties()){
		if(cp.getName().equals("property")){
			addProperty=false;
			break;
		}
	}
	if(addProperty){
		BaseElement propertyElement=new BaseElement("Property");
		propertyElement.addAttribute("name","property");
		propertyElement.setText(component.getName());
		element.add(propertyElement);
	}
	
	return element;
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:27,代码来源:DataColumnConverter.java

示例7: convert

import org.hibernate.annotations.common.util.StringHelper; //导入方法依赖的package包/类
public Element convert(ComponentInfo component, RuleSet ruleSet,
		Element rootElement) throws Exception {
	String name=Accordion.class.getSimpleName();
	XmlNode node=Accordion.class.getAnnotation(XmlNode.class);
	if(node!=null && StringHelper.isNotEmpty(node.nodeName())){
		name=node.nodeName();
	}
	Rule rule=ruleSet.getRule(name);
	BaseElement element = fillElement(component,ruleSet,rule,rootElement);
	if(component.getChildren()!=null){
		for(ComponentInfo c:component.getChildren()){
			this.buildChildren(element,c,ruleSet,rootElement);							
		}
	}
	return element;
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:17,代码来源:AccordionConverter.java

示例8: convert

import org.hibernate.annotations.common.util.StringHelper; //导入方法依赖的package包/类
public Element convert(ComponentInfo component, RuleSet ruleSet,
		Element rootElement) throws Exception {
	String name=CustomDropDown.class.getSimpleName();
	XmlNode node=CustomDropDown.class.getAnnotation(XmlNode.class);
	if(node!=null && StringHelper.isNotEmpty(node.nodeName())){
		name=node.nodeName();
	}
	Rule rule=ruleSet.getRule(name);
	BaseElement element = fillElement(component,ruleSet,rule,rootElement);
	if(component.getChildren()!=null){
		for(ComponentInfo c:component.getChildren()){
			this.buildChildren(element,c,ruleSet,rootElement);							
		}
	}
	return element;
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:17,代码来源:CustomDropDownConverter.java

示例9: convert

import org.hibernate.annotations.common.util.StringHelper; //导入方法依赖的package包/类
public Element convert(ComponentInfo component, RuleSet ruleSet,
		Element rootElement) throws Exception {
	String name=Menu.class.getSimpleName();
	XmlNode node=Menu.class.getAnnotation(XmlNode.class);
	if(node!=null && StringHelper.isNotEmpty(node.nodeName())){
		name=node.nodeName();
	}
	Rule rule=ruleSet.getRule(name);
	BaseElement element = fillElement(component,ruleSet,rule,rootElement);
	if(component.getChildren()!=null){
		for(ComponentInfo c:component.getChildren()){
			this.buildChildren(element,c,ruleSet,rootElement);							
		}
	}
	return element;
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:17,代码来源:MenuConverter.java

示例10: convert

import org.hibernate.annotations.common.util.StringHelper; //导入方法依赖的package包/类
public Element convert(ComponentInfo component, RuleSet ruleSet,
		Element rootElement) throws Exception {
	String name=Section.class.getSimpleName();
	XmlNode node=Section.class.getAnnotation(XmlNode.class);
	if(node!=null && StringHelper.isNotEmpty(node.nodeName())){
		name=node.nodeName();
	}
	Rule rule=ruleSet.getRule(name);
	BaseElement element = fillElement(component,ruleSet,rule,rootElement);
	if(component.getChildren()!=null){
		for(ComponentInfo c:component.getChildren()){
			this.buildChildren(element,c,ruleSet,rootElement);							
		}
	}
	return element;
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:17,代码来源:SectionConverter.java

示例11: mapRow

import org.hibernate.annotations.common.util.StringHelper; //导入方法依赖的package包/类
public EntityField mapRow(ResultSet rs, int rowNum) throws SQLException {
	EntityField f=new EntityField();
	f.setId(rs.getString(1));
	f.setName(rs.getString(2));
	f.setReadOnly((rs.getString(3)==null || rs.getString(3).equals("0"))?false:true);
	f.setSubmittable((rs.getString(4)==null || rs.getString(4).equals("0"))?false:true);
	f.setDesc(rs.getString(5));
	String metaDataId=rs.getString(6);
	if(StringUtils.hasText(metaDataId)){
		f.setMetaData(metadataManager.loadMetadataById(metaDataId));
	}
	f.setEntityId(rs.getString(7));
	f.setPrimaryKey((rs.getString(8)==null || rs.getString(8).equals("0"))?false:true);
	f.setDataType(rs.getString(9));
	f.setLabel(rs.getString(10));
	f.setRequired((rs.getString(11)==null || rs.getString(11).equals("0"))?false:true);
	f.setDefaultValue(rs.getString(12));
	f.setDisplayFormat(rs.getString(13));
	if(rs.getString(14)!=null){
		f.setKeyGenerateType(KeyGenerateType.valueOf(rs.getString(14)));				
	}
	f.setKeyGenerator(rs.getString(15));
	String mappingId=rs.getString(16);
	if(StringHelper.isNotEmpty(mappingId)){
		f.setMapping(mappingManager.loadMapping(mappingId));
	}
	f.setTableName(rs.getString(17));
	return f;
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:30,代码来源:EntityFieldManager.java

示例12: convert

import org.hibernate.annotations.common.util.StringHelper; //导入方法依赖的package包/类
public Element convert(ComponentInfo component, RuleSet ruleSet,
		Element rootElement) throws Exception {
	String name=DataLabel.class.getSimpleName();
	XmlNode node=DataLabel.class.getAnnotation(XmlNode.class);
	if(node!=null && StringHelper.isNotEmpty(node.nodeName())){
		name=node.nodeName();
	}
	Rule rule=ruleSet.getRule(name);
	BaseElement element = fillElement(component,ruleSet,rule,rootElement);
	this.fillDataSetAndDataPathProperty(element, component,false);
	return element;
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:13,代码来源:DataLabelConverter.java

示例13: convert

import org.hibernate.annotations.common.util.StringHelper; //导入方法依赖的package包/类
public Element convert(ComponentInfo component, RuleSet ruleSet,
		Element rootElement) throws Exception {
	String name=DataPilot.class.getSimpleName();
	XmlNode node=DataPilot.class.getAnnotation(XmlNode.class);
	if(node!=null && StringHelper.isNotEmpty(node.nodeName())){
		name=node.nodeName();
	}
	Rule rule=ruleSet.getRule(name);
	BaseElement element = fillElement(component,ruleSet,rule,rootElement);
	this.fillDataSetAndDataPathProperty(element, component,true);
	return element;
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:13,代码来源:DataPilotConverter.java

示例14: convert

import org.hibernate.annotations.common.util.StringHelper; //导入方法依赖的package包/类
public Element convert(ComponentInfo component, RuleSet ruleSet,
		Element rootElement) throws Exception {
	String name=RadioButton.class.getSimpleName();
	XmlNode node=RadioButton.class.getAnnotation(XmlNode.class);
	if(node!=null && StringHelper.isNotEmpty(node.nodeName())){
		name=node.nodeName();
	}
	Rule rule=ruleSet.getRule(name);
	BaseElement element = fillElement(component,ruleSet,rule,rootElement);
	return element;
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:12,代码来源:RadioButtonConverter.java

示例15: convert

import org.hibernate.annotations.common.util.StringHelper; //导入方法依赖的package包/类
public Element convert(ComponentInfo component, RuleSet ruleSet,Element rootElement)
		throws Exception {
	String name=AutoFormElement.class.getSimpleName();
	XmlNode node=AutoFormElement.class.getAnnotation(XmlNode.class);
	if(node!=null && StringHelper.isNotEmpty(node.nodeName())){
		name=node.nodeName();
	}
	Rule rule=ruleSet.getRule(name);
	BaseElement element = fillElement(component,ruleSet,rule,rootElement);
	boolean addProperty=true;
	for(ComponentProperty cp:component.getComponentProperties()){
		if(cp.getName().equals("property")){
			addProperty=false;
			break;
		}
	}
	if(addProperty){
		BaseElement propertyElement=new BaseElement("Property");
		propertyElement.addAttribute("name","property");
		propertyElement.setText(component.getName());
		element.add(propertyElement);
	}
	
	if(component.getChildren()!=null){
		for(ComponentInfo c:component.getChildren()){
			this.buildChildren(element,c,ruleSet,rootElement);							
		}
	}
	return element;
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:31,代码来源:AutoFormElementConverter.java


注:本文中的org.hibernate.annotations.common.util.StringHelper.isNotEmpty方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。