atg.repository.dp
Class MetaPropertyDisplayNamePropertyDescriptor

java.lang.Object
  extended by java.beans.FeatureDescriptor
      extended by atg.beans.SerializableFeatureDescriptor
          extended by atg.beans.DynamicPropertyDescriptor
              extended by atg.repository.RepositoryPropertyDescriptor
                  extended by atg.repository.dp.MetaPropertyDisplayNamePropertyDescriptor
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class MetaPropertyDisplayNamePropertyDescriptor
extends RepositoryPropertyDescriptor

This custom property descriptor gives a read only user-friendly display name for meta properties created by the search indexer.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from class atg.repository.RepositoryPropertyDescriptor
EMPTY_LIST, EMPTY_MAP, EMPTY_SET, FOREIGN_REPOSITORY_NAME, FOREIGN_REPOSITORY_PATH, mCollectionOrMap
 
Fields inherited from class atg.beans.DynamicPropertyDescriptor
PORTABLE_VALUE_KEY
 
Fields inherited from class atg.beans.SerializableFeatureDescriptor
BUNDLE_ATTRIBUTE_NAME, LOCALE_ATTRIBUTE_NAME
 
Constructor Summary
MetaPropertyDisplayNamePropertyDescriptor()
          Constructs an instanceof MetaPropertyDisplayNamePropertyDescriptor
MetaPropertyDisplayNamePropertyDescriptor(java.lang.String pPropertyName)
          Constructs an instanceof MetaPropertyDisplayNamePropertyDescriptor
MetaPropertyDisplayNamePropertyDescriptor(java.lang.String pPropertyName, java.lang.Class pPropertyType, java.lang.String pShortDescription)
          Constructs an instanceof MetaPropertyDisplayNamePropertyDescriptor
 
Method Summary
 MetaPropertiesHelperRegistry getMetaPropertiesHelperRegistry()
          Returns property MetaPropertiesHelperRegistry
 java.lang.Object getPropertyValue(RepositoryItemImpl pItem, java.lang.Object pValue)
          Returns the display name of the MetaProperty
 java.lang.String getTypeName()
          Returns the name this type uses in the XML file.
 MetaPropertiesHelperRegistry getVariableMetaPropertiesHelperRegistry()
          Returns property VariableMetaPropertiesHelperRegistry
protected  void initialize(RepositoryItemImpl pItem, java.lang.Object pValue)
          Invoked each time getPropertyValue is called.
 boolean isQueryable()
          Returns property Queryable
 boolean isWritable()
          Returns property Writable.
 void setMetaPropertiesHelperRegistry(MetaPropertiesHelperRegistry pMetaPropertiesHelperRegistry)
          Sets property MetaPropertiesHelperRegistry
 void setVariableMetaPropertiesHelperRegistry(MetaPropertiesHelperRegistry pVariableMetaPropertiesHelperRegistry)
          Sets property VariableMetaPropertiesHelperRegistry
 
Methods inherited from class atg.repository.RepositoryPropertyDescriptor
clone, createPropertyDescriptorFromType, getCascadeDelete, getCascadeInsert, getCascadeUpdate, getComponentItemDescriptor, getComponentPropertyBeanInfo, getDefaultValue, getDefaultValueString, getItemDescriptor, getLocalizedResourceBundle, getPropertyBeanInfo, getPropertyItemDescriptor, getResourceBundle, getResourceBundleName, getUnmodifiableDefaultValue, isAssignableFrom, isCacheable, isCollectionOrMap, isDerived, isIdProperty, isIgnoreNullValue, isLoggingDebug, isMultiValued, isPersistent, isValidValue, isVersionable, isVersionableSet, registerPropertyDescriptorClass, setCacheable, setCascadeDelete, setCascadeInsert, setCascadeUpdate, setComponentItemDescriptor, setDefaultValue, setDefaultValueString, setDerived, setIdProperty, setIgnoreNullValue, setItemDescriptor, setLoggingDebug, setPersistent, setPropertyItemDescriptor, setPropertyType, setPropertyValue, setQueryable, setResourceBundleName, setValue, setVersionable, toString
 
Methods inherited from class atg.beans.DynamicPropertyDescriptor
createLocalePropertyEditor, createLocalePropertyEditor, createPropertyEditor, getComponentPropertyType, getPropertyEditorClass, getPropertyType, getUIPropertyEditor, isReadable, isRequired, setComponentPropertyType, setPropertyEditorClass, setReadable, setRequired, setWritable
 
Methods inherited from class atg.beans.SerializableFeatureDescriptor
copyFeatureDescriptor, getDisplayName, getDisplayNameResource, getDisplaySortString, getShortDescription, getShortDescriptionResource, getSortString, setDisplayNameResource, setShortDescriptionResource
 
Methods inherited from class java.beans.FeatureDescriptor
attributeNames, getName, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

MetaPropertyDisplayNamePropertyDescriptor

public MetaPropertyDisplayNamePropertyDescriptor()
Constructs an instanceof MetaPropertyDisplayNamePropertyDescriptor


MetaPropertyDisplayNamePropertyDescriptor

public MetaPropertyDisplayNamePropertyDescriptor(java.lang.String pPropertyName)
Constructs an instanceof MetaPropertyDisplayNamePropertyDescriptor


MetaPropertyDisplayNamePropertyDescriptor

public MetaPropertyDisplayNamePropertyDescriptor(java.lang.String pPropertyName,
                                                 java.lang.Class pPropertyType,
                                                 java.lang.String pShortDescription)
Constructs an instanceof MetaPropertyDisplayNamePropertyDescriptor

Method Detail

setMetaPropertiesHelperRegistry

public void setMetaPropertiesHelperRegistry(MetaPropertiesHelperRegistry pMetaPropertiesHelperRegistry)
Sets property MetaPropertiesHelperRegistry


getMetaPropertiesHelperRegistry

public MetaPropertiesHelperRegistry getMetaPropertiesHelperRegistry()
Returns property MetaPropertiesHelperRegistry


setVariableMetaPropertiesHelperRegistry

public void setVariableMetaPropertiesHelperRegistry(MetaPropertiesHelperRegistry pVariableMetaPropertiesHelperRegistry)
Sets property VariableMetaPropertiesHelperRegistry


getVariableMetaPropertiesHelperRegistry

public MetaPropertiesHelperRegistry getVariableMetaPropertiesHelperRegistry()
Returns property VariableMetaPropertiesHelperRegistry


isQueryable

public boolean isQueryable()
Returns property Queryable

Overrides:
isQueryable in class RepositoryPropertyDescriptor

isWritable

public boolean isWritable()
Returns property Writable.

Overrides:
isWritable in class DynamicPropertyDescriptor

initialize

protected void initialize(RepositoryItemImpl pItem,
                          java.lang.Object pValue)
Invoked each time getPropertyValue is called. This method should make sure that the internal data structures are setup to allow the property resolution to take place. For efficiency sake, it should recognize when the property descriptor is already initialized and does not perform it again.


getPropertyValue

public java.lang.Object getPropertyValue(RepositoryItemImpl pItem,
                                         java.lang.Object pValue)
Returns the display name of the MetaProperty

Overrides:
getPropertyValue in class RepositoryPropertyDescriptor

getTypeName

public java.lang.String getTypeName()
Returns the name this type uses in the XML file.

Overrides:
getTypeName in class RepositoryPropertyDescriptor