org.geotools.validation
Class ValidationBeanInfo

Object
  extended by SimpleBeanInfo
      extended by ValidationBeanInfo
All Implemented Interfaces:
BeanInfo
Direct Known Subclasses:
DefaultFeatureValidationBeanInfo, DefaultIntegrityValidationBeanInfo

public class ValidationBeanInfo
extends SimpleBeanInfo

Utility class extending SimpleBeanInfo with our own helper functions.

Author:
David Zwiers, Refractions Research, Inc., $Author: jive $ (last modification)

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

Constructor Detail

ValidationBeanInfo

public ValidationBeanInfo()
ValidationBeanInfo constructor.

Description

Method Detail

getPropertyDescriptors

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

Specified by:
getPropertyDescriptors in interface BeanInfo
Overrides:
getPropertyDescriptors in class SimpleBeanInfo
See Also:
BeanInfo.getPropertyDescriptors()

beanType

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


getResourceBundle

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


getResourceBundle

protected ResourceBundle getResourceBundle(Class cls)
Return bundle for the property file for the provided class


createPropertyDescriptor

protected PropertyDescriptor createPropertyDescriptor(String name,
                                                      ResourceBundle bundle)
                                               throws IntrospectionException
Throws:
IntrospectionException

createPropertyDescriptor

protected PropertyDescriptor createPropertyDescriptor(String name,
                                                      Class cls,
                                                      ResourceBundle resourceBundle)
                                               throws IntrospectionException
Throws:
IntrospectionException


Copyright © 1996-2014 Geotools. All Rights Reserved.