Add Reference.resource to output of copy().

This commit is contained in:
jamesagnew 2022-08-09 11:23:23 -04:00
parent 1813ed5260
commit 056e41d19d
6 changed files with 217 additions and 169 deletions

View File

@ -93,4 +93,12 @@ public abstract class BaseReference extends Type implements IBaseReference, ICom
return resource == null && super.isEmpty();
}
@Override
public void copyValues(Element dst) {
super.copyValues(dst);
if (resource != null && dst instanceof BaseReference) {
((BaseReference) dst).setResource(resource);
}
}
}

View File

@ -93,4 +93,12 @@ public abstract class BaseReference extends Type implements IBaseReference, ICom
return resource == null && super.isEmpty();
}
@Override
public void copyValues(Element dst) {
super.copyValues(dst);
if (resource != null && dst instanceof BaseReference) {
((BaseReference) dst).setResource(resource);
}
}
}

View File

@ -93,4 +93,12 @@ public abstract class BaseReference extends Type implements IBaseReference, ICom
return resource == null && super.isEmpty();
}
@Override
public void copyValues(Element dst) {
super.copyValues(dst);
if (resource != null && dst instanceof BaseReference) {
((BaseReference) dst).setResource(resource);
}
}
}

View File

@ -93,4 +93,12 @@ public abstract class BaseReference extends Type implements IBaseReference, ICom
return resource == null && super.isEmpty();
}
@Override
public void copyValues(Element dst) {
super.copyValues(dst);
if (resource != null && dst instanceof BaseReference) {
((BaseReference) dst).setResource(resource);
}
}
}

View File

@ -93,4 +93,12 @@ public abstract class BaseReference extends DataType implements IBaseReference,
return resource == null && super.isEmpty();
}
@Override
public void copyValues(Element dst) {
super.copyValues(dst);
if (resource != null && dst instanceof BaseReference) {
((BaseReference) dst).setResource(resource);
}
}
}

View File

@ -93,4 +93,12 @@ public abstract class BaseReference extends DataType implements IBaseReference,
return resource == null && super.isEmpty();
}
@Override
public void copyValues(Element dst) {
super.copyValues(dst);
if (resource != null && dst instanceof BaseReference) {
((BaseReference) dst).setResource(resource);
}
}
}