org.geotools.validation
Class ValidationBeanInfo

java.lang.Object
  extended byjava.beans.SimpleBeanInfo
      extended byorg.geotools.validation.ValidationBeanInfo
All Implemented Interfaces:
java.beans.BeanInfo
Direct Known Subclasses:
DefaultFeatureValidationBeanInfo, DefaultIntegrityValidationBeanInfo

public class ValidationBeanInfo
extends java.beans.SimpleBeanInfo

Utility class extending SimpleBeanInfo with our own helper functions.

Version:
$Id: ValidationBeanInfo.java 17704 2006-01-23 00:26:16Z desruisseaux $
Author:
David Zwiers, Refractions Research, Inc., $Author: jive $ (last modification)

Field Summary
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
ValidationBeanInfo()
          ValidationBeanInfo constructor.
 
Method Summary
protected  java.lang.Class beanType()
          Based on getCLass().getName() return target Bean type
protected  java.beans.PropertyDescriptor createPropertyDescriptor(java.lang.String name, java.lang.Class cls, java.util.ResourceBundle resourceBundle)
           
protected  java.beans.PropertyDescriptor createPropertyDescriptor(java.lang.String name, java.util.ResourceBundle bundle)
           
 java.beans.PropertyDescriptor[] getPropertyDescriptors()
          Implementation of getPropertyDescriptors.
protected  java.util.ResourceBundle getResourceBundle()
          Return bundle for the property file for out beanType
protected  java.util.ResourceBundle getResourceBundle(java.lang.Class cls)
          Return bundle for the property file for the provided class
 
Methods inherited from class java.beans.SimpleBeanInfo
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, loadImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationBeanInfo

public ValidationBeanInfo()
ValidationBeanInfo constructor.

Description

Method Detail

getPropertyDescriptors

public java.beans.PropertyDescriptor[] getPropertyDescriptors()
Implementation of getPropertyDescriptors. This method should be called by all overriding sub-class methods. Property names 'name', 'description', 'typeNames'

Returns:
See Also:
BeanInfo.getPropertyDescriptors()

beanType

protected java.lang.Class beanType()
Based on getCLass().getName() return target Bean type


getResourceBundle

protected java.util.ResourceBundle getResourceBundle()
Return bundle for the property file for out beanType


getResourceBundle

protected java.util.ResourceBundle getResourceBundle(java.lang.Class cls)
Return bundle for the property file for the provided class


createPropertyDescriptor

protected java.beans.PropertyDescriptor createPropertyDescriptor(java.lang.String name,
                                                                 java.util.ResourceBundle bundle)
                                                          throws java.beans.IntrospectionException
Throws:
java.beans.IntrospectionException

createPropertyDescriptor

protected java.beans.PropertyDescriptor createPropertyDescriptor(java.lang.String name,
                                                                 java.lang.Class cls,
                                                                 java.util.ResourceBundle resourceBundle)
                                                          throws java.beans.IntrospectionException
Throws:
java.beans.IntrospectionException


Copyright © GeoTools. All Rights Reserved.