01: package org.conform.modifier;
02:
03: import org.conform.*;
04:
05: /**
06: * Created by IntelliJ IDEA.
07: * User: nina
08: * Date: 02.09.2003
09: * Time: 17:46:41
10: * To change this template use Options | File Templates.
11: */
12: public class NoBacklinksModifier implements Modifier {
13: public NoBacklinksModifier() {
14: }
15:
16: public void modify(BeanMeta bean) {
17: for (int i = 0; i < bean.getProperties().length; i++) {
18: PropertyMeta property = bean.getProperties()[i];
19: if (bean.equals(property.getRelationBean()))
20: property.setReadable(false);
21: }
22: }
23: }
|