Ejemplo n.º 1
0
 public void mergeFrom(
     ObjectLocator leftLocator,
     ObjectLocator rightLocator,
     Object left,
     Object right,
     MergeStrategy strategy) {
   if (right instanceof IndirectEntryType) {
     final IndirectEntryType target = this;
     final IndirectEntryType leftObject = ((IndirectEntryType) left);
     final IndirectEntryType rightObject = ((IndirectEntryType) right);
     {
       DefinitionProxyType lhsDefinitionProxy;
       lhsDefinitionProxy = leftObject.getDefinitionProxy();
       DefinitionProxyType rhsDefinitionProxy;
       rhsDefinitionProxy = rightObject.getDefinitionProxy();
       target.setDefinitionProxy(
           ((DefinitionProxyType)
               strategy.merge(
                   LocatorUtils.property(leftLocator, "definitionProxy", lhsDefinitionProxy),
                   LocatorUtils.property(rightLocator, "definitionProxy", rhsDefinitionProxy),
                   lhsDefinitionProxy,
                   rhsDefinitionProxy)));
     }
   }
 }
Ejemplo n.º 2
0
 public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
   final Object draftCopy = ((target == null) ? createNewInstance() : target);
   if (draftCopy instanceof IndirectEntryType) {
     final IndirectEntryType copy = ((IndirectEntryType) draftCopy);
     if (this.isSetDefinitionProxy()) {
       DefinitionProxyType sourceDefinitionProxy;
       sourceDefinitionProxy = this.getDefinitionProxy();
       DefinitionProxyType copyDefinitionProxy =
           ((DefinitionProxyType)
               strategy.copy(
                   LocatorUtils.property(locator, "definitionProxy", sourceDefinitionProxy),
                   sourceDefinitionProxy));
       copy.setDefinitionProxy(copyDefinitionProxy);
     } else {
       copy.definitionProxy = null;
     }
   }
   return draftCopy;
 }
Ejemplo n.º 3
0
 public IndirectEntryType withDefinitionProxy(DefinitionProxyType value) {
   setDefinitionProxy(value);
   return this;
 }