|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IlpMutableDataSource
Interface of data source with write access.
| Method Summary | |
|---|---|
void |
addObject(IlpObject ilpObject)
Adds an object to the data source. |
void |
addObjects(List objects)
Adds a set of objects to the data source. |
void |
clear()
Clears the data source. |
IlpObject |
removeObject(Object idOrIlpObject,
boolean childrenToo)
Removes an object from the data source. |
List |
removeObjects(List idsOrIlpObjects,
boolean childrenToo)
Removes a list of objects from the data source. |
List |
removeObjects(List idsOrIlpObjects,
List childrenTooList)
Removes a list of objects from the data source. |
void |
setChildren(Object idOrIlpObject,
List childrenIdsOrIlpObjects)
Declares an object as having children. |
void |
setLink(Object idOrIlpObject,
Object fromIdOrIlpObject,
Object toIdOrIlpObject)
Declares an object as being a link. |
void |
setParent(Object idOrIlpObject,
Object parentIdOrIlpObject)
Declares an object as being the child of another. |
| Methods inherited from interface ilog.cpl.datasource.IlpDataSource |
|---|
addDataSourceListener, getChildInterface, getContainerInterface, getContext, getLinkExtremityInterface, getLinkInterface, getObject, getObjects, removeDataSourceListener |
| Method Detail |
|---|
void addObject(IlpObject ilpObject)
ilpObject - The object to be added to the data source.void addObjects(List objects)
objects - The set of objects to be added to the data source.
IlpObject removeObject(Object idOrIlpObject,
boolean childrenToo)
idOrIlpObject - The identifier of the object or the object itself to be removed.
data source.childrenToo - If true, the child objects, if there are
any, are also removed from the data source content.
null, if the data source does
not contain an object corresponding to the identifier.
List removeObjects(List idsOrIlpObjects,
boolean childrenToo)
idsOrIlpObjects - A list containing the objects to be removed from the
data source as identifiers or IlpObject instances.childrenToo - If true, the child objects, if there are
any, are also removed from the data source content.
List removeObjects(List idsOrIlpObjects,
List childrenTooList)
IlpSAXDataHandler.
idsOrIlpObjects - A list containing the objects to be removed from the
data source as identifiers or IlpObject instances.childrenTooList - The list of Booleans with the same size as the identifiers list.
If an element is true, the children of the objects, if
any, are also removed from the data source.
void clear()
IlpObject instances are removed from the data source.
void setLink(Object idOrIlpObject,
Object fromIdOrIlpObject,
Object toIdOrIlpObject)
As the parameters of this method can be either identifiers or
IlpObject instances, the
IlpAbstractDataSource.getIdentifier(Object)
method can be used to retrieve the identifier in both cases.
idOrIlpObject - The identifier of the link object or the object itself.fromIdOrIlpObject - The identifier of the "from" end of the link, or the
"from" object itself.toIdOrIlpObject - The identifier of the "to" end of the link, or the "to"
object itself.
void setParent(Object idOrIlpObject,
Object parentIdOrIlpObject)
As the parameters of this method can be either identifiers or
IlpObject instances, the
IlpAbstractDataSource.getIdentifier(Object)
method can be used to retrieve the identifier in both cases.
idOrIlpObject - The identifier of the child object, or the child object itself.parentIdOrIlpObject - The identifier of the parent object, or the parent object itself.
void setChildren(Object idOrIlpObject,
List childrenIdsOrIlpObjects)
As the parameters of this method can be or can contain either identifiers or
IlpObject instances, the
IlpAbstractDataSource.getIdentifier(Object)
method can be used to retrieve the identifier in both cases.
idOrIlpObject - The identifier of the object, or the object itself, that has children.childrenIdsOrIlpObjects - A list containing the children
as identifiers or IlpObject instances.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||