atg.repository
Class MimeTyperPropertyDescriptor

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.MimeTyperPropertyDescriptor
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class MimeTyperPropertyDescriptor
extends RepositoryPropertyDescriptor

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
MimeTyperPropertyDescriptor()
          Constructs an instanceof MimeTyperPropertyDescriptor
MimeTyperPropertyDescriptor(java.lang.String pPropertyName)
          Constructs an instanceof MimeTyperPropertyDescriptor
MimeTyperPropertyDescriptor(java.lang.String pPropertyName, java.lang.Class pPropertyType, java.lang.String pShortDescription)
          Constructs an instanceof MimeTyperPropertyDescriptor
 
Method Summary
 MimeTyper getMimeTyper()
          Returns property MimeTyper
 java.lang.Object getPropertyValue(RepositoryItemImpl pItem, java.lang.Object pValue)
          Returns the mime-type based on the file extension.
 java.lang.String getTypeName()
          Returns the name this type uses in the XML file.
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 setMimeTyper(MimeTyper pMimeTyper)
          Sets property MimeTyper
 void setValue(java.lang.String pAttributeName, java.lang.Object pValue)
          Looks for an attribute named identifier.
 
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, 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

MimeTyperPropertyDescriptor

public MimeTyperPropertyDescriptor()
Constructs an instanceof MimeTyperPropertyDescriptor


MimeTyperPropertyDescriptor

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


MimeTyperPropertyDescriptor

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

Method Detail

setMimeTyper

public void setMimeTyper(MimeTyper pMimeTyper)
Sets property MimeTyper


getMimeTyper

public MimeTyper getMimeTyper()
Returns property MimeTyper


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 mime-type based on the file extension.

Overrides:
getPropertyValue in class RepositoryPropertyDescriptor

setValue

public void setValue(java.lang.String pAttributeName,
                     java.lang.Object pValue)
Looks for an attribute named identifier.

Overrides:
setValue in class RepositoryPropertyDescriptor

getTypeName

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

Overrides:
getTypeName in class RepositoryPropertyDescriptor