protected NamedTemplate(@NotNull NameMapper mapper, @Nullable String jcrName) throws ConstraintViolationException { this(mapper); if (jcrName != null) { setName(jcrName); } }
protected NamedTemplate(@Nonnull NameMapper mapper, @Nullable String jcrName) throws ConstraintViolationException { this(mapper); if (jcrName != null) { setName(jcrName); } }
protected NamedTemplate(@NotNull NameMapper mapper, @Nullable String jcrName) throws ConstraintViolationException { this(mapper); if (jcrName != null) { setName(jcrName); } }
/** * Sets the name of this template. Use the special name "*" for a residual * item definition. * * @param jcrName JCR name, or "*" * @throws ConstraintViolationException if the name is invalid */ @Override public void setName(@NotNull String jcrName) throws ConstraintViolationException { residual = NodeTypeConstants.RESIDUAL_NAME.equals(jcrName); if (!residual) { super.setName(jcrName); } }
/** * Sets the name of this template. Use the special name "*" for a residual * item definition. * * @param jcrName JCR name, or "*" * @throws ConstraintViolationException if the name is invalid */ @Override public void setName(@Nonnull String jcrName) throws ConstraintViolationException { residual = NodeTypeConstants.RESIDUAL_NAME.equals(jcrName); if (!residual) { super.setName(jcrName); } }
/** * Sets the name of this template. Use the special name "*" for a residual * item definition. * * @param jcrName JCR name, or "*" * @throws ConstraintViolationException if the name is invalid */ @Override public void setName(@NotNull String jcrName) throws ConstraintViolationException { residual = NodeTypeConstants.RESIDUAL_NAME.equals(jcrName); if (!residual) { super.setName(jcrName); } }