All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.commons.jxpath.JXPathPropertyDescriptor Maven / Gradle / Ivy

Go to download

A Java-based implementation of XPath 1.0 based on Apache Commons JXPath, withe enhancements to process graphs of JAXB-Serializable objects using the properties' XML names.

There is a newer version: 1.3.0
Show newest version
package org.apache.commons.jxpath;

import java.beans.IntrospectionException;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;

/**
 * Created by klemm0 on 2015-01-21.
 */
public class JXPathPropertyDescriptor extends PropertyDescriptor {
	private final String xmlName;

	public JXPathPropertyDescriptor(final String propertyName, final String xmlName, final Class beanClass) throws IntrospectionException {
		super(propertyName, beanClass);
		this.xmlName = xmlName;
	}

	public JXPathPropertyDescriptor(final String propertyName, final String xmlName, final Class beanClass, final String readMethodName, final String writeMethodName) throws IntrospectionException {
		super(propertyName, beanClass, readMethodName, writeMethodName);
		this.xmlName = xmlName;
	}

	public JXPathPropertyDescriptor(final String propertyName, final String xmlName, final Method readMethod, final Method writeMethod) throws IntrospectionException {
		super(propertyName, readMethod, writeMethod);
		this.xmlName = xmlName;
	}

	@Override
	public String getName() {
		return this.xmlName;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy