|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DFItem
The root item and super-interface of all core DDL items in DIF. There are
fixed number of these core items. All of them can be extended using capabilities (DFCapability).
All DFItems are DDL (data definition) objects. For data manipulation you need to obtain data providers from DFSchema.
| Nested Class Summary | |
|---|---|
static interface |
DFItem.Handle<T extends DFItem>
Represents a handle-like identifier of the item. |
| Nested classes/interfaces inherited from interface com.im.df.api.support.PropertiesEditingConfigurable |
|---|
PropertiesEditingConfigurable.Extra |
| Field Summary | |
|---|---|
static String |
PROP_CAPABILITIES
|
static String |
PROP_DESCRIPTION
|
static String |
PROP_ID
|
static String |
PROP_NAME
|
static String |
PROP_TYPE
|
static String |
PROP_VALID
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Registers PropertyChangeListener to receive events. |
List<DFCapability> |
getCapabilities()
Get list of all capabilities of this DFItem. |
String |
getDescription()
Provides a description of the DFItem. |
DFItem.Handle<? extends DFItem> |
getHandle()
Returns a handle to the Item. |
String |
getId()
Getter for property Id. |
String |
getName()
Getter for property name. |
String |
getType()
Getter for property type. |
boolean |
isValid()
Return the validity of this item. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes PropertyChangeListener from the list of listeners. |
void |
setDescription(String description,
DFEnvironmentRW env)
Sets the description. |
void |
setName(String name,
DFEnvironmentRW env)
Setter for property name. |
| Methods inherited from interface com.im.df.api.support.PropertiesEditingConfigurable |
|---|
isPropertyEditable |
| Field Detail |
|---|
static final String PROP_ID
static final String PROP_NAME
static final String PROP_TYPE
static final String PROP_VALID
static final String PROP_CAPABILITIES
static final String PROP_DESCRIPTION
| Method Detail |
|---|
String getId()
Id provides a globally unique ID for the item, something by which
it can be identified. Potentially two different databases could
contain information about the same entity. There should be always only one
valid instance of the same id. It is implementation's responsibility to
generate id big enough to be unique
Note that multiple items with the same ID may created, e.g. by replicating
the Schema.
String getName()
void setName(String name,
DFEnvironmentRW env)
name - New value of property name.String getDescription()
null (not set),
may be an arbitrary string, usually a description set by the DFSchema creator
for better understanding of the DFSChema contents by DIF users.
null if none is set.
void setDescription(String description,
DFEnvironmentRW env)
null will clear the description.
The DFItem must be locked, and the DFLock passed in the 'env'.
description - The new description or nullenv - The environmentString getType()
List<DFCapability> getCapabilities()
DIFUtilities to get convenience methods, for example
method which find an appropriate DFCapability of the given class. The list of capabilities can change during
DFItem lifetime and so you should listen to PROP_CAPABILITIES changes.
boolean isValid()
void addPropertyChangeListener(PropertyChangeListener listener)
listener - The listener to register.void removePropertyChangeListener(PropertyChangeListener listener)
listener - The listener to remove.DFItem.Handle<? extends DFItem> getHandle()
|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||