/** If this is FilterNode without any changes (subclassed, changed children) * and the original provides handle, stores them and * returns a new handle for the proxy. * <p>Subclasses <strong>must</strong> override this if they wish for their nodes to be * properly serializable. * * @return the handle, or <code>null</code> if this node is subclassed or * uses changed children */ public Node.Handle getHandle () { if (!isDefault ()) { // subclasses has to implement the method by its own return null; } Node.Handle original = this.original.getHandle (); if (original == null) { // no original handle => no handle here return null; } return new FilterHandle (original); }
/** If this is FilterNode without any changes (subclassed, changed children) * and the original provides handle, stores them and * returns a new handle for the proxy. * <p>Subclasses <strong>must</strong> override this if they wish for their nodes to be * properly serializable. * * @return the handle, or <code>null</code> if this node is subclassed or * uses changed children */ public Node.Handle getHandle () { if (!isDefault ()) { // subclasses has to implement the method by its own return null; } Node.Handle original = this.original.getHandle (); if (original == null) { // no original handle => no handle here return null; } return new FilterHandle (original); }
/** If this is FilterNode without any changes (subclassed, changed children) * and the original provides handle, stores them and * returns a new handle for the proxy. * <p>Subclasses <strong>must</strong> override this if they wish for their nodes to be * properly serializable. * * @return the handle, or <code>null</code> if this node is subclassed or * uses changed children */ public Node.Handle getHandle() { if (!isDefault()) { // subclasses has to implement the method by its own return null; } Node.Handle original = this.original.getHandle(); if (original == null) { // no original handle => no handle here return null; } return new FilterHandle(original); }