public interface IlpMutableDataSource extends IlpDataSource
Modifier and Type | Method and Description |
---|---|
void |
addObject(IlpObject ilpObject)
Adds an object to the data source.
|
void |
addObjects(List<? extends IlpObject> 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<IlpObject> |
removeObjects(List<Object> idsOrIlpObjects,
boolean childrenToo)
Removes a list of objects from the data source.
|
List<IlpObject> |
removeObjects(List<Object> idsOrIlpObjects,
List<Boolean> childrenTooList)
Removes a list of objects from the data source.
|
void |
setChildren(Object idOrIlpObject,
List<? extends Object> 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.
|
addDataSourceListener, getChildInterface, getContainerInterface, getContext, getLinkExtremityInterface, getLinkInterface, getObject, getObjects, getRootObjects, removeDataSourceListener
void addObject(IlpObject ilpObject)
ilpObject
- The object to be added to the data source.void addObjects(List<? extends IlpObject> 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<IlpObject> removeObjects(List<Object> 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<IlpObject> removeObjects(List<Object> idsOrIlpObjects, List<Boolean> 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<? extends Object> 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.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.