# com.bea.ide.element
DefaultElement Class

public class DefaultElement
extends `Object`
implements `IElement`

This class provides a minimal, default implementation of the IElement class that other classes may extend.

Hierarchy
  `Object`
  `DefaultElement`

All Implemented Interfaces
  `IElement`

Direct Known Subclasses
  `DefaultDocument`, `DefaultTreeElement`

## Constructor Summary

DefaultElement()

## Method Summary

`public `Object`` | `getProperty`(`String` sProperty) Shortcut method to get a property value. Scans the property descriptor array to find the requested property and invokes it's read method
`public `PropertyDescriptor`[]` | `getPropertyDescriptors`() Return the property descriptors available for this object. Default implementation returns an empty property descriptor array
`public void` | `setProperty`(`String` sProperty, `Object` oValue) Shortcut method to set a property value. Scans the property descriptor array and invoke it's setProperty method

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `com.bea.ide.element.`IElement``
``getProperty`, `getPropertyDescriptors`, `setProperty``

## Constructor Detail

### DefaultElement

    public DefaultElement()

## Method Detail

### getProperty(String) Method

    public Object getProperty(String sProperty)

Shortcut method to get a property value. This will typically only be used if the caller knows the set of properties available on the element. Scans the property descriptor array to find the requested property and invokes it's read method

#### Parameters

sProperty
  The name of the property to fetch.

#### Returns

Value of the property, or null if the property does not exist.

### getPropertyDescriptors() Method

    public PropertyDescriptor[] getPropertyDescriptors()

Return the property descriptors available for this object. Although this method is borrowed from JavaBeans, an IElement is not necessarily a JavaBean. However, it should be easy to turn beans into IElements. Default implementation returns an empty property descriptor array

#### Returns

Array of property descriptor objects describing the properties that this IElement exposes

### setProperty(String, Object) Method

    public void setProperty(String sProperty,
                            Object oValue)

Shortcut method to set a property value. This will typically only be used if the caller knows the set of properties available on the element. Scans the property descriptor array and invoke it's setProperty method

#### Parameters

sProperty
  The name of the property to set.

oValue
  value object to which the property should be set.