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

java.lang.Object
  extended bycom.ibm.j2ca.extension.emd.discovery.properties.WBIPropertyTypeImpl
All Implemented Interfaces:
java.lang.Cloneable, commonj.connector.metadata.discovery.properties.PropertyType

public class WBIPropertyTypeImpl
extends java.lang.Object
implements commonj.connector.metadata.discovery.properties.PropertyType


Field Summary
protected static int BOOLEAN_OBJECT
           
protected static int BYTE_OBJECT
           
protected static int CHAR_OBJECT
           
protected  java.lang.Object defaultValue
          The default value for the property
protected  boolean defaultValueDerived
          Indicates whether the default value of the property is derived from other property values
protected static int DOUBLE_OBJECT
           
protected  boolean expert
          Indicates whether the property is an expert property or not.
protected static int FLOAT_OBJECT
           
protected  boolean hidden
          Indicates whether the property is hidden or not.
protected static int INT_OBJECT
           
protected static int LONG_OBJECT
           
protected static int OBJECT
           
protected  boolean primitive
           
protected  WBIPropertyChangeSupport propertyChanges
           
protected  int propertyTypeIdentifier
           
protected  boolean readOnly
          Indicates whether the property is read only or not.
protected  boolean required
           
protected  boolean sensitive
           
protected static int STRING
           
protected  java.lang.Class type
          The Java type of the property
protected  java.lang.String[] validStringValues
           
protected  java.lang.Object[] validValues
          The set of valid values for the property
protected  boolean validValuesEditable
          Flag indicating if the valid values are final, or editable.
 
Constructor Summary
WBIPropertyTypeImpl(java.lang.Class propertyType, WBIPropertyChangeSupport propertyChanges)
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.Object getDefaultValue()
           
 int getPropertyTypeIdentifier()
           
 java.lang.Class getType()
           
 java.lang.Object[] getValidValues()
           
 java.lang.String[] getValidValuesAsStrings()
           
 boolean isDefaultValueDerived()
           
 boolean isExpert()
           
 boolean isHidden()
           
 boolean isPrimitive()
           
 boolean isReadOnly()
           
 boolean isRequired()
           
 boolean isSensitive()
           
 boolean isValidValuesEditable()
           
 void setDefaultValue(java.lang.Object defaultValue)
           
 void setDefaultValueDerived(boolean defaultValueDerived)
           
 void setExpert(boolean expert)
           
 void setHidden(boolean hidden)
           
 void setPrimitive(boolean primitive)
           
 void setReadOnly(boolean readOnly)
           
 void setRequired(boolean required)
           
 void setSensitive(boolean sensitive)
           
 void setValidValues(java.lang.Object[] values)
          Sets the set of valid values for the property.
 void setValidValuesEditable(boolean editable)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOOLEAN_OBJECT

protected static final int BOOLEAN_OBJECT
See Also:
Constant Field Values

BYTE_OBJECT

protected static final int BYTE_OBJECT
See Also:
Constant Field Values

CHAR_OBJECT

protected static final int CHAR_OBJECT
See Also:
Constant Field Values

DOUBLE_OBJECT

protected static final int DOUBLE_OBJECT
See Also:
Constant Field Values

FLOAT_OBJECT

protected static final int FLOAT_OBJECT
See Also:
Constant Field Values

INT_OBJECT

protected static final int INT_OBJECT
See Also:
Constant Field Values

LONG_OBJECT

protected static final int LONG_OBJECT
See Also:
Constant Field Values

OBJECT

protected static final int OBJECT
See Also:
Constant Field Values

STRING

protected static final int STRING
See Also:
Constant Field Values

defaultValue

protected java.lang.Object defaultValue
The default value for the property


defaultValueDerived

protected boolean defaultValueDerived
Indicates whether the default value of the property is derived from other property values


expert

protected boolean expert
Indicates whether the property is an expert property or not.


hidden

protected boolean hidden
Indicates whether the property is hidden or not.


primitive

protected boolean primitive

propertyChanges

protected WBIPropertyChangeSupport propertyChanges

propertyTypeIdentifier

protected int propertyTypeIdentifier

readOnly

protected boolean readOnly
Indicates whether the property is read only or not.


required

protected boolean required

sensitive

protected boolean sensitive

type

protected java.lang.Class type
The Java type of the property


validStringValues

protected java.lang.String[] validStringValues

validValues

protected java.lang.Object[] validValues
The set of valid values for the property


validValuesEditable

protected boolean validValuesEditable
Flag indicating if the valid values are final, or editable. i.e. if it can be rendered with an editable combo box or not.

Constructor Detail

WBIPropertyTypeImpl

public WBIPropertyTypeImpl(java.lang.Class propertyType,
                           WBIPropertyChangeSupport propertyChanges)
                    throws commonj.connector.metadata.MetadataException
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException
See Also:
Object.clone()

getDefaultValue

public java.lang.Object getDefaultValue()
Specified by:
getDefaultValue in interface commonj.connector.metadata.discovery.properties.PropertyType
See Also:
com.ibm.propertygroup.api.IPropertyType#getDefaultValue()

getPropertyTypeIdentifier

public int getPropertyTypeIdentifier()
Returns:
Returns the propertyTypeIdentifier.

getType

public java.lang.Class getType()
Specified by:
getType in interface commonj.connector.metadata.discovery.properties.PropertyType
See Also:
com.ibm.propertygroup.api.IPropertyType#getType()

getValidValues

public java.lang.Object[] getValidValues()
Specified by:
getValidValues in interface commonj.connector.metadata.discovery.properties.PropertyType
See Also:
com.ibm.propertygroup.api.IPropertyType#getValidValues()

getValidValuesAsStrings

public java.lang.String[] getValidValuesAsStrings()
Specified by:
getValidValuesAsStrings in interface commonj.connector.metadata.discovery.properties.PropertyType
See Also:
com.ibm.propertygroup.api.IPropertyType#getValidValuesAsStrings()

isDefaultValueDerived

public boolean isDefaultValueDerived()
See Also:
com.ibm.propertygroup.api.IPropertyType#isDefaultValueDerived()

isExpert

public boolean isExpert()
Specified by:
isExpert in interface commonj.connector.metadata.discovery.properties.PropertyType
See Also:
com.ibm.propertygroup.api.IPropertyType#isExpert()

isHidden

public boolean isHidden()
Specified by:
isHidden in interface commonj.connector.metadata.discovery.properties.PropertyType
See Also:
com.ibm.propertygroup.api.IPropertyType#isHidden()

isPrimitive

public boolean isPrimitive()
Specified by:
isPrimitive in interface commonj.connector.metadata.discovery.properties.PropertyType
See Also:
com.ibm.propertygroup.api.IPropertyType#isPrimitive()

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface commonj.connector.metadata.discovery.properties.PropertyType
See Also:
com.ibm.propertygroup.api.IPropertyType#isReadOnly()

isRequired

public boolean isRequired()
Specified by:
isRequired in interface commonj.connector.metadata.discovery.properties.PropertyType

isSensitive

public boolean isSensitive()
Specified by:
isSensitive in interface commonj.connector.metadata.discovery.properties.PropertyType
See Also:
com.ibm.propertygroup.api.IPropertyType#isSensitive()

isValidValuesEditable

public boolean isValidValuesEditable()
Specified by:
isValidValuesEditable in interface commonj.connector.metadata.discovery.properties.PropertyType
See Also:
com.ibm.propertygroup.api.IPropertyType#isValidValuesEditable()

setDefaultValue

public void setDefaultValue(java.lang.Object defaultValue)
Parameters:
defaultValue - The defaultValue to set.

setDefaultValueDerived

public void setDefaultValueDerived(boolean defaultValueDerived)
Parameters:
defaultValueDerived -

setExpert

public void setExpert(boolean expert)
Parameters:
expert - The expert to set.

setHidden

public void setHidden(boolean hidden)
Parameters:
hidden - The hidden to set.

setPrimitive

public void setPrimitive(boolean primitive)
Parameters:
primitive - The primitive to set.

setReadOnly

public void setReadOnly(boolean readOnly)
Parameters:
readOnly - The readOnly to set.

setRequired

public void setRequired(boolean required)
Parameters:
required - The required to set.

setSensitive

public void setSensitive(boolean sensitive)
Parameters:
sensitive - The sensitive to set.

setValidValues

public void setValidValues(java.lang.Object[] values)
                    throws commonj.connector.metadata.MetadataException
Sets the set of valid values for the property.

Parameters:
values - - the set of valid values
Throws:
commonj.connector.metadata.MetadataException - - thrown if an error occurs. For example, if the set of valid values are of a different Java type than the property.

setValidValuesEditable

public void setValidValuesEditable(boolean editable)
Parameters:
editable -