-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
public void remove() {
final String thisKey = ((PlasmaNode) this).getUUIDAsString();
if (log.isDebugEnabled())
log.debug("removing " + thisKey);
List<Property> properties = this.getType().getProperties();
for (Property property : properties) {
if (!property.getType().isDataType()) {
Property targetProperty = property.getOpposite();
if (!targetProperty.isMany()) {
DataObject target = this.getDataObject(targetProperty);
if (target != null) {
if (log.isDebugEnabled())
log.debug("removing " + ((PlasmaNode) this).getUUIDAsString() + " from "
+ property.getName() + "->" + ((PlasmaNode) target).getUUIDAsString());
target.unset(targetProperty);
}