public ElementBase realize ( ElementBase parent ) { if ( ! deleted && real == null ) { real = getDefinition ( ) . createElement ( parent , null , false ) ; } else if ( deleted && real != null ) { real . remove ( true ) ; real = null ; } return real ; }
Realizes the creation or destruction of the proxied object . In other words if this is a deletion operation and the proxied object exists the proxied object is removed from its parent . If this is not a deletion and the proxied object does not exist a new object is instantiated as a child to the specified parent .