/** * Copies the attributes, including references to event handlers. * <p> * @return a copy of the Attributes */ @Override public IElementAttributes copy() { try { // need to make this more efficient. Just want to insure // a proper copy ElementAttributes attr = new ElementAttributes(); attr.setIdleTime( this.getIdleTime() ); attr.setIsEternal( this.getIsEternal() ); attr.setIsLateral( this.getIsLateral() ); attr.setIsRemote( this.getIsRemote() ); attr.setIsSpool( this.getIsSpool() ); attr.setMaxLife(this.getMaxLife()); attr.addElementEventHandlers( this.eventHandlers ); return attr; } catch ( Exception e ) { return new ElementAttributes(); } }