
org.apache.commons.jxpath.JXPathPropertyDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jxpath Show documentation
Show all versions of jxpath Show documentation
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.
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