|
TrueLicense Core 1.33 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.beans.SimpleBeanInfo
de.schlichtherle.license.LicenseContentBeanInfo
public class LicenseContentBeanInfo
The BeanInfo class for LicenseContent.
This class solely exists as a workaround for an issue with
XMLDecoder in some JSE implementations:
With these implementations, XMLDecoder apparently seems to use
the locale sensitive String.toUpperCase() method to convert
property names found in the XML representation to the getter/setter method
names for the JavaBean, which may result in incorrect method names.
In particular, this is known to happen for the conversion of the English
lowercase character 'i' and the Turkish locale.
The workaround is to provide the property descriptors explicitly rather than to rely on Introspection.
This issue has been reported for ...
| Field Summary | |
|---|---|
private static BeanDescriptor |
beanDescriptor
|
private static int |
defaultEventIndex
|
private static int |
defaultPropertyIndex
|
private static EventSetDescriptor[] |
eventSets
|
private static MethodDescriptor[] |
methods
|
private static int |
PROPERTY_consumerAmount
|
private static int |
PROPERTY_consumerType
|
private static int |
PROPERTY_extra
|
private static int |
PROPERTY_holder
|
private static int |
PROPERTY_info
|
private static int |
PROPERTY_issued
|
private static int |
PROPERTY_issuer
|
private static int |
PROPERTY_notAfter
|
private static int |
PROPERTY_notBefore
|
private static int |
PROPERTY_subject
|
| Fields inherited from interface java.beans.BeanInfo |
|---|
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
| Constructor Summary | |
|---|---|
LicenseContentBeanInfo()
|
|
| Method Summary | |
|---|---|
private static BeanDescriptor |
getBdescriptor()
|
BeanDescriptor |
getBeanDescriptor()
Gets the bean's BeanDescriptors. |
int |
getDefaultEventIndex()
A bean may have a "default" event that is the event that will mostly commonly be used by human's when using the bean. |
int |
getDefaultPropertyIndex()
A bean may have a "default" property that is the property that will mostly commonly be initially chosen for update by human's who are customizing the bean. |
private static EventSetDescriptor[] |
getEdescriptor()
|
EventSetDescriptor[] |
getEventSetDescriptors()
Gets the bean's EventSetDescriptors. |
private static MethodDescriptor[] |
getMdescriptor()
|
MethodDescriptor[] |
getMethodDescriptors()
Gets the bean's MethodDescriptors. |
private static PropertyDescriptor[] |
getPdescriptor()
|
PropertyDescriptor[] |
getPropertyDescriptors()
Gets the bean's PropertyDescriptors. |
| Methods inherited from class java.beans.SimpleBeanInfo |
|---|
getAdditionalBeanInfo, getIcon, loadImage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static BeanDescriptor beanDescriptor
private static final int defaultEventIndex
private static final int defaultPropertyIndex
private static EventSetDescriptor[] eventSets
private static MethodDescriptor[] methods
private static final int PROPERTY_consumerAmount
private static final int PROPERTY_consumerType
private static final int PROPERTY_extra
private static final int PROPERTY_holder
private static final int PROPERTY_info
private static final int PROPERTY_issued
private static final int PROPERTY_issuer
private static final int PROPERTY_notAfter
private static final int PROPERTY_notBefore
private static final int PROPERTY_subject
| Constructor Detail |
|---|
public LicenseContentBeanInfo()
| Method Detail |
|---|
private static BeanDescriptor getBdescriptor()
public BeanDescriptor getBeanDescriptor()
BeanDescriptors.
getBeanDescriptor in interface BeanInfogetBeanDescriptor in class SimpleBeanInfopublic int getDefaultEventIndex()
getDefaultEventIndex in interface BeanInfogetDefaultEventIndex in class SimpleBeanInfoReturns -1 if there is no default event.
public int getDefaultPropertyIndex()
getDefaultPropertyIndex in interface BeanInfogetDefaultPropertyIndex in class SimpleBeanInfoReturns -1 if there is no default property.
private static EventSetDescriptor[] getEdescriptor()
public EventSetDescriptor[] getEventSetDescriptors()
EventSetDescriptors.
getEventSetDescriptors in interface BeanInfogetEventSetDescriptors in class SimpleBeanInfoprivate static MethodDescriptor[] getMdescriptor()
public MethodDescriptor[] getMethodDescriptors()
MethodDescriptors.
getMethodDescriptors in interface BeanInfogetMethodDescriptors in class SimpleBeanInfoprivate static PropertyDescriptor[] getPdescriptor()
public PropertyDescriptor[] getPropertyDescriptors()
PropertyDescriptors.
getPropertyDescriptors in interface BeanInfogetPropertyDescriptors in class SimpleBeanInfoIf a property is indexed, then its entry in the result array will belong to the IndexedPropertyDescriptor subclass of PropertyDescriptor. A client of getPropertyDescriptors can use "instanceof" to check if a given PropertyDescriptor is an IndexedPropertyDescriptor.
|
TrueLicense Core 1.33 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||