com.ibm.j2ca.extension.emd.discovery.properties
Class WBIPropertyDescriptorImpl

java.lang.Object
  extended bycom.ibm.j2ca.extension.emd.discovery.properties.WBIPropertyDescriptorImpl
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, IVetoableChangeListenerImpl, commonj.connector.metadata.discovery.properties.PropertyChangeListener, commonj.connector.metadata.discovery.properties.PropertyDescriptor
Direct Known Subclasses:
WBIPropertyGroupImpl, WBIPropertyImpl

public abstract class WBIPropertyDescriptorImpl
extends java.lang.Object
implements commonj.connector.metadata.discovery.properties.PropertyDescriptor, commonj.connector.metadata.discovery.properties.PropertyChangeListener, IVetoableChangeListenerImpl

BasePropertyDescriptor: An abstract base class implementing the IPropertyDescriptor interface. This base class adds the VetoableChange support to allow SPI implementations to implement property validation.


Field Summary
protected  boolean enabled
           
protected  WBIPropertyChangeSupport propertyChanges
          Implementation of the property change suppport.
protected  java.util.Vector surrogateList
           
protected  WBIPropertyChangeSupport vetoableChanges
          Implementation of the vetoable change support.
 
Constructor Summary
WBIPropertyDescriptorImpl(java.lang.String propertyName)
          Constructor for BasePropertyDescriptor.
 
Method Summary
 void addPropertyChangeListener(commonj.connector.metadata.discovery.properties.PropertyChangeListener listener)
           
 void addVetoablePropertyChangeListener(IVetoableChangeListenerImpl listener)
          SPI implementations should use the VetoableChangeSupport to enforce property validation if required.
 java.lang.Object clone()
           
 java.lang.String getDescription()
           
 java.lang.String getDisplayName()
           
 java.lang.String getName()
           
 boolean isEnabled()
           
 void propertyChange(commonj.connector.metadata.discovery.properties.PropertyEvent arg0)
           
 void removePropertyChangeListener(commonj.connector.metadata.discovery.properties.PropertyChangeListener listener)
           
 void removeVetoablePropertyChangeListener(IVetoableChangeListenerImpl listener)
           
 void setDescription(java.lang.String description)
           
 void setDisplayName(java.lang.String displayName)
           
 void setEnabled(boolean enabled)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.j2ca.extension.emd.discovery.properties.IVetoableChangeListenerImpl
vetoableChange
 

Field Detail

enabled

protected boolean enabled

propertyChanges

protected WBIPropertyChangeSupport propertyChanges
Implementation of the property change suppport.


vetoableChanges

protected WBIPropertyChangeSupport vetoableChanges
Implementation of the vetoable change support.


surrogateList

protected java.util.Vector surrogateList
Constructor Detail

WBIPropertyDescriptorImpl

public WBIPropertyDescriptorImpl(java.lang.String propertyName)
                          throws commonj.connector.metadata.MetadataException
Constructor for BasePropertyDescriptor.

Parameters:
propertyName - - the name of the property
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(commonj.connector.metadata.discovery.properties.PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface commonj.connector.metadata.discovery.properties.PropertyDescriptor
See Also:
com.ibm.propertygroup.api.IPropertyDescriptor#addPropertyChangeListener(PropertyChangeListener)

addVetoablePropertyChangeListener

public void addVetoablePropertyChangeListener(IVetoableChangeListenerImpl listener)
SPI implementations should use the VetoableChangeSupport to enforce property validation if required. Using this, the SPI implementation can veto property sets that are invalid.

Parameters:
listener - - The change listener to add.
See Also:
VetoableChangeSupport.addVetoableChangeListener(VetoableChangeListener)

clone

public java.lang.Object clone()
Specified by:
clone in interface commonj.connector.metadata.discovery.properties.PropertyDescriptor
See Also:
IPropertyDescriptor#clone();

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface commonj.connector.metadata.discovery.properties.PropertyDescriptor
See Also:
com.ibm.propertygroup.api.IPropertyDescriptor#getDescription()

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface commonj.connector.metadata.discovery.properties.PropertyDescriptor
Returns:
Returns the displayName.

getName

public java.lang.String getName()
Specified by:
getName in interface commonj.connector.metadata.discovery.properties.PropertyDescriptor
See Also:
com.ibm.propertygroup.api.IPropertyDescriptor#getName()

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface commonj.connector.metadata.discovery.properties.PropertyDescriptor
See Also:
com.ibm.propertygroup.api.IPropertyDescriptor#isEnabled()

removePropertyChangeListener

public void removePropertyChangeListener(commonj.connector.metadata.discovery.properties.PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface commonj.connector.metadata.discovery.properties.PropertyDescriptor
See Also:
com.ibm.propertygroup.api.IPropertyDescriptor#removePropertyChangeListener(PropertyChangeListener)

removeVetoablePropertyChangeListener

public void removeVetoablePropertyChangeListener(IVetoableChangeListenerImpl listener)
Parameters:
listener - - The change listener to remove.
See Also:
VetoableChangeSupport.removeVetoableChangeListener(VetoableChangeListener)

setEnabled

public void setEnabled(boolean enabled)
Parameters:
enabled - The enabled to set.

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - The description to set.

setDisplayName

public void setDisplayName(java.lang.String displayName)
Parameters:
displayName - The displayName to set.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

propertyChange

public void propertyChange(commonj.connector.metadata.discovery.properties.PropertyEvent arg0)
Specified by:
propertyChange in interface commonj.connector.metadata.discovery.properties.PropertyChangeListener