Java Doc for IndexedPropertyDescriptor.java in  » 6.0-JDK-Core » beans » java » beans » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » beans » java.beans 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.beans.FeatureDescriptor
      java.beans.PropertyDescriptor
         java.beans.IndexedPropertyDescriptor

IndexedPropertyDescriptor
public class IndexedPropertyDescriptor extends PropertyDescriptor (Code)
An IndexedPropertyDescriptor describes a property that acts like an array and has an indexed read and/or indexed write method to access specific elements of the array.

An indexed property may also provide simple non-indexed read and write methods. If these are present, they read and write arrays of the type returned by the indexed read method.




Constructor Summary
public  IndexedPropertyDescriptor(String propertyName, Class beanClass)
     This constructor constructs an IndexedPropertyDescriptor for a property that follows the standard Java conventions by having getFoo and setFoo accessor methods, for both indexed access and array access.
public  IndexedPropertyDescriptor(String propertyName, Class beanClass, String readMethodName, String writeMethodName, String indexedReadMethodName, String indexedWriteMethodName)
     This constructor takes the name of a simple property, and method names for reading and writing the property, both indexed and non-indexed.
Parameters:
  propertyName - The programmatic name of the property.
Parameters:
  beanClass - The Class object for the target bean.
Parameters:
  readMethodName - The name of the method used for reading the propertyvalues as an array.
public  IndexedPropertyDescriptor(String propertyName, Method readMethod, Method writeMethod, Method indexedReadMethod, Method indexedWriteMethod)
     This constructor takes the name of a simple property, and Method objects for reading and writing the property.
Parameters:
  propertyName - The programmatic name of the property.
Parameters:
  readMethod - The method used for reading the property values as an array.May be null if the property is write-only or must be indexed.
Parameters:
  writeMethod - The method used for writing the property values as an array.May be null if the property is read-only or must be indexed.
Parameters:
  indexedReadMethod - The method used for reading an indexed property value.May be null if the property is write-only.
Parameters:
  indexedWriteMethod - The method used for writing an indexed property value.
 IndexedPropertyDescriptor(Class bean, String base, Method read, Method write, Method readIndexed, Method writeIndexed)
     Creates PropertyDescriptor for the specified bean with the specified name and methods to read/write the property value.
 IndexedPropertyDescriptor(PropertyDescriptor x, PropertyDescriptor y)
     Package-private constructor. Merge two property descriptors.
 IndexedPropertyDescriptor(IndexedPropertyDescriptor old)
    

Method Summary
public  booleanequals(Object obj)
     Compares this PropertyDescriptor against the specified object. Returns true if the objects are the same.
public synchronized  ClassgetIndexedPropertyType()
     Gets the Class object of the indexed properties' type.
public synchronized  MethodgetIndexedReadMethod()
     Gets the method that should be used to read an indexed property value.
public synchronized  MethodgetIndexedWriteMethod()
     Gets the method that should be used to write an indexed property value.
public  inthashCode()
     Returns a hash code value for the object.
public synchronized  voidsetIndexedReadMethod(Method readMethod)
     Sets the method that should be used to read an indexed property value.
public synchronized  voidsetIndexedWriteMethod(Method writeMethod)
     Sets the method that should be used to write an indexed property value.


Constructor Detail
IndexedPropertyDescriptor
public IndexedPropertyDescriptor(String propertyName, Class beanClass) throws IntrospectionException(Code)
This constructor constructs an IndexedPropertyDescriptor for a property that follows the standard Java conventions by having getFoo and setFoo accessor methods, for both indexed access and array access.

Thus if the argument name is "fred", it will assume that there is an indexed reader method "getFred", a non-indexed (array) reader method also called "getFred", an indexed writer method "setFred", and finally a non-indexed writer method "setFred".
Parameters:
  propertyName - The programmatic name of the property.
Parameters:
  beanClass - The Class object for the target bean.
exception:
  IntrospectionException - if an exception occurs duringintrospection.




IndexedPropertyDescriptor
public IndexedPropertyDescriptor(String propertyName, Class beanClass, String readMethodName, String writeMethodName, String indexedReadMethodName, String indexedWriteMethodName) throws IntrospectionException(Code)
This constructor takes the name of a simple property, and method names for reading and writing the property, both indexed and non-indexed.
Parameters:
  propertyName - The programmatic name of the property.
Parameters:
  beanClass - The Class object for the target bean.
Parameters:
  readMethodName - The name of the method used for reading the propertyvalues as an array. May be null if the property is write-onlyor must be indexed.
Parameters:
  writeMethodName - The name of the method used for writing the propertyvalues as an array. May be null if the property is read-onlyor must be indexed.
Parameters:
  indexedReadMethodName - The name of the method used for readingan indexed property value.May be null if the property is write-only.
Parameters:
  indexedWriteMethodName - The name of the method used for writingan indexed property value. May be null if the property is read-only.
exception:
  IntrospectionException - if an exception occurs duringintrospection.



IndexedPropertyDescriptor
public IndexedPropertyDescriptor(String propertyName, Method readMethod, Method writeMethod, Method indexedReadMethod, Method indexedWriteMethod) throws IntrospectionException(Code)
This constructor takes the name of a simple property, and Method objects for reading and writing the property.
Parameters:
  propertyName - The programmatic name of the property.
Parameters:
  readMethod - The method used for reading the property values as an array.May be null if the property is write-only or must be indexed.
Parameters:
  writeMethod - The method used for writing the property values as an array.May be null if the property is read-only or must be indexed.
Parameters:
  indexedReadMethod - The method used for reading an indexed property value.May be null if the property is write-only.
Parameters:
  indexedWriteMethod - The method used for writing an indexed property value. May be null if the property is read-only.
exception:
  IntrospectionException - if an exception occurs duringintrospection.



IndexedPropertyDescriptor
IndexedPropertyDescriptor(Class bean, String base, Method read, Method write, Method readIndexed, Method writeIndexed) throws IntrospectionException(Code)
Creates PropertyDescriptor for the specified bean with the specified name and methods to read/write the property value.
Parameters:
  bean - the type of the target bean
Parameters:
  base - the base name of the property (the rest of the method name)
Parameters:
  read - the method used for reading the property value
Parameters:
  write - the method used for writing the property value
Parameters:
  readIndexed - the method used for reading an indexed property value
Parameters:
  writeIndexed - the method used for writing an indexed property value
exception:
  IntrospectionException - if an exception occurs during introspection
since:
   1.7



IndexedPropertyDescriptor
IndexedPropertyDescriptor(PropertyDescriptor x, PropertyDescriptor y)(Code)
Package-private constructor. Merge two property descriptors. Where they conflict, give the second argument (y) priority over the first argumnnt (x).
Parameters:
  x - The first (lower priority) PropertyDescriptor
Parameters:
  y - The second (higher priority) PropertyDescriptor



IndexedPropertyDescriptor
IndexedPropertyDescriptor(IndexedPropertyDescriptor old)(Code)




Method Detail
equals
public boolean equals(Object obj)(Code)
Compares this PropertyDescriptor against the specified object. Returns true if the objects are the same. Two PropertyDescriptors are the same if the read, write, property types, property editor and flags are equivalent.
since:
   1.4



getIndexedPropertyType
public synchronized Class getIndexedPropertyType()(Code)
Gets the Class object of the indexed properties' type. The returned Class may describe a primitive type such as int. The Class for the indexed properties' type; may return nullif the type cannot be determined.



getIndexedReadMethod
public synchronized Method getIndexedReadMethod()(Code)
Gets the method that should be used to read an indexed property value. The method that should be used to read an indexedproperty value.May return null if the property isn't indexed or is write-only.



getIndexedWriteMethod
public synchronized Method getIndexedWriteMethod()(Code)
Gets the method that should be used to write an indexed property value. The method that should be used to write an indexedproperty value.May return null if the property isn't indexed or is read-only.



hashCode
public int hashCode()(Code)
Returns a hash code value for the object. See java.lang.Object.hashCode for a complete description. a hash code value for this object.
since:
   1.5



setIndexedReadMethod
public synchronized void setIndexedReadMethod(Method readMethod) throws IntrospectionException(Code)
Sets the method that should be used to read an indexed property value.
Parameters:
  readMethod - The new indexed read method.



setIndexedWriteMethod
public synchronized void setIndexedWriteMethod(Method writeMethod) throws IntrospectionException(Code)
Sets the method that should be used to write an indexed property value.
Parameters:
  writeMethod - The new indexed write method.



Methods inherited from java.beans.PropertyDescriptor
boolean compareMethods(Method a, Method b)(Code)(Java Doc)
public PropertyEditor createPropertyEditor(Object bean)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
String getBaseName()(Code)(Java Doc)
public Class getPropertyEditorClass()(Code)(Java Doc)
public synchronized Class getPropertyType()(Code)(Java Doc)
public synchronized Method getReadMethod()(Code)(Java Doc)
public synchronized Method getWriteMethod()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isBound()(Code)(Java Doc)
public boolean isConstrained()(Code)(Java Doc)
public void setBound(boolean bound)(Code)(Java Doc)
void setClass0(Class clz)(Code)(Java Doc)
public void setConstrained(boolean constrained)(Code)(Java Doc)
public void setPropertyEditorClass(Class propertyEditorClass)(Code)(Java Doc)
public synchronized void setReadMethod(Method readMethod) throws IntrospectionException(Code)(Java Doc)
public synchronized void setWriteMethod(Method writeMethod) throws IntrospectionException(Code)(Java Doc)

Methods inherited from java.beans.FeatureDescriptor
public java.util.Enumeration<String> attributeNames()(Code)(Java Doc)
static Reference createReference(Object obj, boolean soft)(Code)(Java Doc)
static Reference createReference(Object obj)(Code)(Java Doc)
Class getClass0()(Code)(Java Doc)
public String getDisplayName()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
static Object getObject(Reference ref)(Code)(Java Doc)
static Class[] getParameterTypes(Class base, Method method)(Code)(Java Doc)
static Class getReturnType(Class base, Method method)(Code)(Java Doc)
public String getShortDescription()(Code)(Java Doc)
static Reference<T> getSoftReference(T object)(Code)(Java Doc)
public Object getValue(String attributeName)(Code)(Java Doc)
static Reference<T> getWeakReference(T object)(Code)(Java Doc)
public boolean isExpert()(Code)(Java Doc)
public boolean isHidden()(Code)(Java Doc)
public boolean isPreferred()(Code)(Java Doc)
void setClass0(Class cls)(Code)(Java Doc)
public void setDisplayName(String displayName)(Code)(Java Doc)
public void setExpert(boolean expert)(Code)(Java Doc)
public void setHidden(boolean hidden)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setPreferred(boolean preferred)(Code)(Java Doc)
public void setShortDescription(String text)(Code)(Java Doc)
public void setValue(String attributeName, Object value)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.