TypeEditor( ConstraintViolationCallback callback, Set<String> typesToCheck, NodeState types, String primary, Iterable<String> mixins, NodeBuilder builder) throws CommitFailedException { this.callback = checkNotNull(callback); this.typesToCheck = typesToCheck; this.checkThisNode = typesToCheck == null || typesToCheck.contains(primary) || any(mixins, in(typesToCheck)); this.parent = null; this.nodeName = null; this.types = checkNotNull(types); this.effective = createEffectiveType(null, null, primary, mixins); this.builder = checkNotNull(builder); this.validate = false; }
private TypeEditor( @NotNull TypeEditor parent, @NotNull String name, @Nullable String primary, @NotNull Iterable<String> mixins, @NotNull NodeBuilder builder, boolean validate) throws CommitFailedException { this.valueFactory = parent.valueFactory; this.callback = parent.callback; this.typesToCheck = parent.typesToCheck; this.checkThisNode = typesToCheck == null || typesToCheck.contains(primary) || any(mixins, in(typesToCheck)); this.parent = checkNotNull(parent); this.nodeName = checkNotNull(name); this.types = parent.types; this.effective = createEffectiveType(parent.effective, name, primary, mixins); this.builder = checkNotNull(builder); this.validate = validate; }
private TypeEditor( @Nonnull TypeEditor parent, @Nonnull String name, @CheckForNull String primary, @Nonnull Iterable<String> mixins, @Nonnull NodeBuilder builder, boolean validate) throws CommitFailedException { this.callback= parent.callback; this.typesToCheck = parent.typesToCheck; this.checkThisNode = typesToCheck == null || typesToCheck.contains(primary) || any(mixins, in(typesToCheck)); this.parent = checkNotNull(parent); this.nodeName = checkNotNull(name); this.types = parent.types; this.effective = createEffectiveType(parent.effective, name, primary, mixins); this.builder = checkNotNull(builder); this.validate = validate; }
private TypeEditor( @NotNull TypeEditor parent, @NotNull String name, @Nullable String primary, @NotNull Iterable<String> mixins, @NotNull NodeBuilder builder, boolean validate) throws CommitFailedException { this.valueFactory = parent.valueFactory; this.callback = parent.callback; this.typesToCheck = parent.typesToCheck; this.checkThisNode = typesToCheck == null || typesToCheck.contains(primary) || any(mixins, in(typesToCheck)); this.parent = checkNotNull(parent); this.nodeName = checkNotNull(name); this.types = parent.types; this.effective = createEffectiveType(parent.effective, name, primary, mixins); this.builder = checkNotNull(builder); this.validate = validate; }
TypeEditor( ConstraintViolationCallback callback, Set<String> typesToCheck, NodeState types, String primary, Iterable<String> mixins, NodeBuilder builder) throws CommitFailedException { this.valueFactory = new PartialValueFactory(NamePathMapper.DEFAULT); this.callback = checkNotNull(callback); this.typesToCheck = typesToCheck; this.checkThisNode = typesToCheck == null || typesToCheck.contains(primary) || any(mixins, in(typesToCheck)); this.parent = null; this.nodeName = null; this.types = checkNotNull(types); this.effective = createEffectiveType(null, null, primary, mixins); this.builder = checkNotNull(builder); this.validate = false; }
TypeEditor( ConstraintViolationCallback callback, Set<String> typesToCheck, NodeState types, String primary, Iterable<String> mixins, NodeBuilder builder) throws CommitFailedException { this.valueFactory = new PartialValueFactory(NamePathMapper.DEFAULT); this.callback = checkNotNull(callback); this.typesToCheck = typesToCheck; this.checkThisNode = typesToCheck == null || typesToCheck.contains(primary) || any(mixins, in(typesToCheck)); this.parent = null; this.nodeName = null; this.types = checkNotNull(types); this.effective = createEffectiveType(null, null, primary, mixins); this.builder = checkNotNull(builder); this.validate = false; }