コード例 #1
0
 public boolean equals(
     ObjectLocator thisLocator,
     ObjectLocator thatLocator,
     Object object,
     EqualsStrategy strategy) {
   if (!(object instanceof ScriptExecutionDetails)) {
     return false;
   }
   if (this == object) {
     return true;
   }
   final ScriptExecutionDetails that = ((ScriptExecutionDetails) object);
   {
     String lhsInlineScript;
     lhsInlineScript = this.getInlineScript();
     String rhsInlineScript;
     rhsInlineScript = that.getInlineScript();
     if (!strategy.equals(
         LocatorUtils.property(thisLocator, "inlineScript", lhsInlineScript),
         LocatorUtils.property(thatLocator, "inlineScript", rhsInlineScript),
         lhsInlineScript,
         rhsInlineScript)) {
       return false;
     }
   }
   return true;
 }
コード例 #2
0
 public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
   final Object draftCopy = ((target == null) ? createNewInstance() : target);
   if (draftCopy instanceof ScriptExecutionDetails) {
     final ScriptExecutionDetails copy = ((ScriptExecutionDetails) draftCopy);
     if (this.inlineScript != null) {
       String sourceInlineScript;
       sourceInlineScript = this.getInlineScript();
       String copyInlineScript =
           ((String)
               strategy.copy(
                   LocatorUtils.property(locator, "inlineScript", sourceInlineScript),
                   sourceInlineScript));
       copy.setInlineScript(copyInlineScript);
     } else {
       copy.inlineScript = null;
     }
   }
   return draftCopy;
 }