atg.beans
Class SerializableFeatureDescriptor

java.lang.Object
  extended by java.beans.FeatureDescriptor
      extended by atg.beans.SerializableFeatureDescriptor
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
atg.repository.dp.DerivationMethodImpl, DynamicBeanDescriptor, DynamicPropertyDescriptor, ParamDescriptor

public class SerializableFeatureDescriptor
extends java.beans.FeatureDescriptor
implements java.io.Serializable

Subclass of java.beans.FeatureDescriptor with Serialization support.

See Also:
Serialized Form

Field Summary
static java.lang.String BUNDLE_ATTRIBUTE_NAME
          This is the name of the feature descriptor attribute used to define the resource bundle name for the resources used to localize information found in this descriptor
static java.lang.String CLASS_VERSION
           
static java.lang.String LOCALE_ATTRIBUTE_NAME
           
 
Constructor Summary
SerializableFeatureDescriptor()
           
 
Method Summary
protected  void copyFeatureDescriptor(java.beans.FeatureDescriptor pDesc)
          Clone a set of attributes from some other FeatureDescriptor
 java.lang.String getDisplayName()
          Returns the potentially localized display name of the property.
 java.lang.String getDisplayNameResource()
           
 java.lang.String getDisplaySortString()
          Get a sort key String for a case-insensitive sort by display name.
 java.util.ResourceBundle getResourceBundle()
          Returns the resource bundle for this feature descriptor
 java.lang.String getShortDescription()
          Returns the potentially localized short description
 java.lang.String getShortDescriptionResource()
           
 java.lang.String getSortString()
          Get a sort key String for a case-insensitive sort by feature name.
 void setDisplayNameResource(java.lang.String pDisplayNameResource)
          Sets the property DisplayNameResource.
 void setShortDescriptionResource(java.lang.String pShortDescriptionResource)
          Sets the property ShortDescription.
 java.lang.String toString()
          Return this FeatureDescriptor as a String
 
Methods inherited from class java.beans.FeatureDescriptor
attributeNames, getName, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION

BUNDLE_ATTRIBUTE_NAME

public static final java.lang.String BUNDLE_ATTRIBUTE_NAME
This is the name of the feature descriptor attribute used to define the resource bundle name for the resources used to localize information found in this descriptor

See Also:
Constant Field Values

LOCALE_ATTRIBUTE_NAME

public static final java.lang.String LOCALE_ATTRIBUTE_NAME
See Also:
Constant Field Values
Constructor Detail

SerializableFeatureDescriptor

public SerializableFeatureDescriptor()
Method Detail

toString

public java.lang.String toString()
Return this FeatureDescriptor as a String

Overrides:
toString in class java.lang.Object

getDisplaySortString

public java.lang.String getDisplaySortString()
Get a sort key String for a case-insensitive sort by display name.


getSortString

public java.lang.String getSortString()
Get a sort key String for a case-insensitive sort by feature name.


getDisplayName

public java.lang.String getDisplayName()
Returns the potentially localized display name of the property.

Overrides:
getDisplayName in class java.beans.FeatureDescriptor

setDisplayNameResource

public void setDisplayNameResource(java.lang.String pDisplayNameResource)
Sets the property DisplayNameResource. If this property is set, we use it and a corresponding resource bundle (defined via the resource bundle attribute) to compute a localizable version of the display name.

Parameters:
pDisplayNameResource - new value to set

getDisplayNameResource

public java.lang.String getDisplayNameResource()
Returns:
The value of the property DisplayNameResource.

getShortDescription

public java.lang.String getShortDescription()
Returns the potentially localized short description

Overrides:
getShortDescription in class java.beans.FeatureDescriptor

setShortDescriptionResource

public void setShortDescriptionResource(java.lang.String pShortDescriptionResource)
Sets the property ShortDescription. If this property is set, we use it and a corresponding resource bundle (defined via the resource bundle attribute) to compute a localizable version of the short description.

Parameters:
pShortDescriptionResource - new value to set

getShortDescriptionResource

public java.lang.String getShortDescriptionResource()
Returns:
The value of the property ShortDescription.

getResourceBundle

public java.util.ResourceBundle getResourceBundle()
Returns the resource bundle for this feature descriptor


copyFeatureDescriptor

protected void copyFeatureDescriptor(java.beans.FeatureDescriptor pDesc)
Clone a set of attributes from some other FeatureDescriptor