Skip to content

Commit

Permalink
Implement copy in IncompleteMarker and Schema XNode
Browse files Browse the repository at this point in the history
  • Loading branch information
tonydamage committed Feb 11, 2021
1 parent b9062c8 commit 2e5c52a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Expand Up @@ -44,4 +44,9 @@ public String debugDump(int indent) {
sb.append("Incomplete");
return sb.toString();
}

@Override
public XNode copy() {
return this;
}
}
Expand Up @@ -9,6 +9,7 @@
import com.evolveum.midpoint.prism.xnode.MapXNode;
import com.evolveum.midpoint.prism.xnode.MetadataAware;
import com.evolveum.midpoint.prism.xnode.SchemaXNode;
import com.evolveum.midpoint.prism.xnode.XNode;

import org.jetbrains.annotations.NotNull;
import org.w3c.dom.Element;
Expand Down Expand Up @@ -125,4 +126,12 @@ public void setMetadataNodes(@NotNull List<MapXNode> metadataNodes) {
MetadataAware.cloneMetadata(clone, this);
return clone;
}

@Override
public XNode copy() {
if(isImmutable()) {
return this;
}
return clone();
}
}

0 comments on commit 2e5c52a

Please sign in to comment.