Author: tchemit Date: 2011-02-16 22:11:00 +0100 (Wed, 16 Feb 2011) New Revision: 2215 Url: http://nuiton.org/repositories/revision/jaxx/2215 Log: open api to make possible to change ChildRef creation Modified: trunk/jaxx-compiler/src/main/java/jaxx/compiler/CompiledObject.java Modified: trunk/jaxx-compiler/src/main/java/jaxx/compiler/CompiledObject.java =================================================================== --- trunk/jaxx-compiler/src/main/java/jaxx/compiler/CompiledObject.java 2011-02-16 21:09:42 UTC (rev 2214) +++ trunk/jaxx-compiler/src/main/java/jaxx/compiler/CompiledObject.java 2011-02-16 21:11:00 UTC (rev 2215) @@ -151,6 +151,15 @@ this.delegateCode = delegateCode; } + + public String getConstraints() { + return constraints; + } + + public String getDelegateCode() { + return delegateCode; + } + public CompiledObject getChild() { return child; } @@ -684,15 +693,19 @@ child.setParent(this); - ChildRef ref = new ChildRef(child, - constraints, - child.getJavaCode(), - delegateCode - ); + ChildRef ref = newChildRef(child, constraints, delegateCode); childs.add(ref); } } + protected ChildRef newChildRef(CompiledObject child, String constraints, String delegateCode) { + return new ChildRef(child, + constraints, + child.getJavaCode(), + delegateCode + ); + } + @Override public String toString() { return getObjectClass().getName() + "[id='" + id + "']";
participants (1)
-
tchemit@users.nuiton.org