@Override public ItemDefinition<I> deepClone(Map<QName, ComplexTypeDefinition> ctdMap, Map<QName, ComplexTypeDefinition> onThisPath, Consumer<ItemDefinition> postCloneAction) { return clone(); }
protected void copyDefinitionData(PrismContainerDefinitionImpl<C> clone) { super.copyDefinitionData(clone); clone.complexTypeDefinition = this.complexTypeDefinition; clone.compileTimeClass = this.compileTimeClass; }
protected void extendToString(StringBuilder sb) { sb.append(","); if (canRead()) { sb.append("R"); } else { sb.append("-"); } if (canAdd()) { sb.append("A"); } else { sb.append("-"); } if (canModify()) { sb.append("M"); } else { sb.append("-"); } if (isRuntimeSchema()) { sb.append(",runtime"); } if (isOperational()) { sb.append(",oper"); } }
/** * Used in debugDumping items. Does not need to have name in it as item already has it. Does not need * to have class as that is just too much info that is almost anytime pretty obvious anyway. */ @Override public void debugDumpShortToString(StringBuilder sb) { sb.append(PrettyPrinter.prettyPrint(getTypeName())); debugMultiplicity(sb); debugFlags(sb); }
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getDebugDumpClassName()); sb.append(":"); sb.append(PrettyPrinter.prettyPrint(getName())); sb.append(" "); debugDumpShortToString(sb); return sb.toString(); }
public String debugMultiplicity() { StringBuilder sb = new StringBuilder(); debugMultiplicity(sb); return sb.toString(); }
/** * Make a deep clone, cloning all the sub-items and definitions. * * @param ultraDeep if set to true then even the objects that were same instance in the original will be * cloned as separate instances in the clone. * */ @Override public ItemDefinition<I> deepClone(boolean ultraDeep, Consumer<ItemDefinition> postCloneAction) { if (ultraDeep) { return deepClone(null, new HashMap<>(), postCloneAction); } else { return deepClone(new HashMap<>(), new HashMap<>(), postCloneAction); } }
public String debugFlags() { StringBuilder sb = new StringBuilder(); debugFlags(sb); // This starts with a collon, we do not want it here if (sb.length() > 0) { sb.deleteCharAt(0); } return sb.toString(); }
if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass())
protected void copyDefinitionData(PrismReferenceDefinitionImpl clone) { super.copyDefinitionData(clone); clone.targetTypeName = this.targetTypeName; clone.compositeObjectElementName = this.compositeObjectElementName; clone.isComposite = this.isComposite; }
protected void copyDefinitionData(PrismPropertyDefinitionImpl<T> clone) { super.copyDefinitionData(clone); clone.indexed = this.indexed; clone.defaultValue = this.defaultValue; clone.allowedValues = this.allowedValues; clone.valueType = this.valueType; }