/** * Creates a new instance of {@code CategoryDraftDsl} with the values of this builder. * * @return the instance */ public CategoryDraftDsl build() { return new CategoryDraftDsl(assets, custom, description, externalId, key, metaDescription, metaKeywords, metaTitle, name, orderHint, parent, slug); }
/** * Creates a new object initialized with the given values. * * @param name initial value for the {@link CategoryDraft#getName()} property * @param slug initial value for the {@link CategoryDraft#getSlug()} property * @return new object initialized with the given values */ public static CategoryDraftDsl of(final LocalizedString name, final LocalizedString slug) { return new CategoryDraftDsl(null, null, null, null, null, null, null, null, name, null, null, slug); }
/** * Creates a new object initialized with the fields of the template parameter. * * @param template the template * @return a new object initialized from the template */ public static CategoryDraftDsl of(final CategoryDraft template) { return new CategoryDraftDsl(template.getAssets(), template.getCustom(), template.getDescription(), template.getExternalId(), template.getKey(), template.getMetaDescription(), template.getMetaKeywords(), template.getMetaTitle(), template.getName(), template.getOrderHint(), template.getParent(), template.getSlug()); } }