Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.sf.juffrou.xml.internal.binding;
 
 import java.util.Map;
 
public class BeanClassBinding extends BeanWrapperContext {
Map where keys are bean property names and values are bean property bindings
Map where keys are xml element names and values are bean property bindings
	public BeanClassBinding(Class<?> clazz) {
		super(clazz);
	}
	public BeanClassBinding(Class clazzType... types) {
		super(clazztypes);
	}
	}
	public void setXmlElementName(String xmlElementName) {
		this. = xmlElementName;
	}
		return ;
	}
	public void setSerializer(Serializer serializer) {
		this. = serializer;
	}
		for(Entry<StringBeanFieldHandlerentry : getFields().entrySet()) {
			String propertyName = entry.getKey();
			BeanPropertyBinding beanPropertyBinding = new BeanPropertyBinding();
			beanPropertyBinding.setBeanPropertyName(propertyName);
			beanPropertyBinding.setXmlElementName(propertyName);
			beanPropertyBinding.setNodeType(.);
			beanPropertyBinding.setPropertyType(ReflectionUtil.getClass(entry.getValue().getType()));
			addBeanPropertyBinding(beanPropertyBinding);
		}
	}
	public void addBeanPropertyBinding(BeanPropertyBinding beanPropertyBinding) {
		this..put(beanPropertyBinding.getBeanPropertyName(), beanPropertyBinding);
		this..put(beanPropertyBinding.getXmlElementName(), beanPropertyBinding);
	}
	public void replaceBeanPropertyElementName(BeanPropertyBinding beanPropertyBindingString xmlElementName) {
		beanPropertyBinding.setXmlElementName(xmlElementName);
		this..put(xmlElementNamebeanPropertyBinding);
	}
	public void removeBeanPropertyBinding(BeanPropertyBinding beanPropertyBinding) {
	}
	}
		return .get(propertyName);
	}
		return .get(xmlElementName);
	}
	public boolean isEmpty() {
	}
New to GrepCode? Check out our FAQ X