Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*/
package org.dom4j.bean;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import org.dom4j.DocumentFactory;
import org.dom4j.QName;
/**
*
* BeanMetaData contains metadata about a bean class.
*
*
* @author James Strachan
* @version $Revision: 1.10 $
*/
public class BeanMetaData {
/** Empty arguments for reflection calls */
protected static final Object[] NULL_ARGS = {};
/** Singleton cache */
private static Map, BeanMetaData> singletonCache = new HashMap, BeanMetaData>();
private static final DocumentFactory DOCUMENT_FACTORY = BeanDocumentFactory
.getInstance();
/** Property descriptors for the bean */
private PropertyDescriptor[] propertyDescriptors;
/** QNames for the attributes */
private QName[] qNames;
/** Read methods used for getting properties */
private Method[] readMethods;
/** Write methods used for setting properties */
private Method[] writeMethods;
/** Index of names and QNames to indices
* Keys are type of QName and String
*/
private Map