Tabnine Logo
io.sphere.sdk.models
Code IndexAdd Tabnine to your IDE (free)

How to use io.sphere.sdk.models

Best Java code snippets using io.sphere.sdk.models (Showing top 20 results out of 315)

origin: com.commercetools.sdk.jvm.core/commercetools-models

 /**
  * 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 AssetDraftBuilder of(final Asset template) {
  return new AssetDraftBuilder(copyCustom(template.getCustom()), template.getDescription(), template.getKey(), template.getName(), template.getSources(), template.getTags());
 }
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

 /**
  * 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 AssetDraftDsl of(final AssetDraft template) {
  return new AssetDraftDsl(template.getCustom(), template.getDescription(), template.getKey(), template.getName(), template.getSources(), template.getTags());
 }
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

/**
 * 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 AssetDraftBuilder of(final AssetDraft template) {
 return new AssetDraftBuilder(template.getCustom(), template.getDescription(), template.getKey(), template.getName(), template.getSources(), template.getTags());
}
origin: io.sphere.sdk.jvm/sphere-models

private ChangeParent(final Referenceable<Category> parent) {
  super("changeParent");
  this.parent = parent.toReference().filled(null);
}
origin: io.sphere.sdk.jvm/sphere-test-lib

public static String englishSlugOf(final WithLocalizedSlug model) {
  return model.getSlug().get(ENGLISH);
}
origin: commercetools/commercetools-jvm-sdk

  static MetaAttributesDsl metaAttributesOf(final Locale locale, final String metaTitle, final String metaDescription, final String metaKeywords) {
    return MetaAttributesDsl.of()
        .withTitle(LocalizedString.of(locale, metaTitle))
        .withDescription(LocalizedString.of(locale, metaDescription))
        .withKeywords(LocalizedString.of(locale, metaKeywords));
  }
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

private TransitionCustomLineItemState(final String customLineItemId, final Long quantity, final Referenceable<State> fromState, final Referenceable<State> toState,
                   final ZonedDateTime actualTransitionDate) {
  super("transitionCustomLineItemState", quantity, actualTransitionDate, toState.toReference(), fromState.toReference());
  this.customLineItemId = customLineItemId;
}
origin: io.sphere.sdk.jvm/common

  public static MetaAttributes metaAttributesOf(final Locale locale, final String metaTitle, final String metaDescription, final String metaKeywords) {
    return MetaAttributesDsl.of()
        .withTitle(LocalizedStrings.of(locale, metaTitle))
        .withDescription(LocalizedStrings.of(locale, metaDescription))
        .withKeywords(LocalizedStrings.of(locale, metaKeywords));
  }
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

private CustomerPasswordResetCommand(final Versioned<Customer> customer, final String tokenValue, final String newPassword) {
  this.id = customer != null ? customer.getId() : null;
  this.version = customer != null ? customer.getVersion() : null;
  this.tokenValue = tokenValue;
  this.newPassword = newPassword;
}
origin: commercetools/commercetools-jvm-sdk

private Reference<TestEntity> newFilledReference() {
  return newEmptyReference().filled(new TestEntity("value"));
}
origin: io.sphere.sdk.jvm/test-lib

protected T newExample2() {
  return applyDataToBuilder(newExample2Builder(), new ExampleData()).build();
}
origin: io.sphere.jvmsdk/javaintegrationtestlib

protected T newExample1() {
  return newExample1(new ExampleData());
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

public AssetDraftDsl withSources(final List<AssetSource> sources) {
 return newBuilder().sources(sources).build();
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

public AssetSourceBuilder dimensionsOfWidthAndHeight(final Integer width, final Integer height) {
  return dimensions(AssetDimensions.ofWidthAndHeight(width, height));
}
origin: commercetools/commercetools-jvm-sdk

  default String toSphereName() {
    return SphereEnumerationUtils.toSphereName(name());
  }
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

/**
 * Creates a new builder with the values of this object.
 *
 * @return new builder
 */
public AssetDraftBuilder newBuilder() {
 return new AssetDraftBuilder(custom, description, key, name, sources, tags);
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

/**
 * Creates a new object initialized with the given values.
 *
 * @param sources initial value for the {@link AssetDraft#getSources()} property
 * @param name initial value for the {@link AssetDraft#getName()} property
 * @return new object initialized with the given values
 */
public static AssetDraftDsl of(final List<AssetSource> sources, final LocalizedString name) {
 return new AssetDraftDsl(null, null, null, name, sources, null);
}
origin: io.sphere.jvmsdk/javaintegrationtestlib

protected T newExample2() {
  return applyDataToBuilder(newExample2Builder(), new ExampleData()).build();
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

/**
 * Creates a new object initialized with the given values.
 *
 * @param sources initial value for the {@link AssetDraft#getSources()} property
 * @param name initial value for the {@link AssetDraft#getName()} property
 * @return new object initialized with the given values
 */
public static AssetDraftBuilder of(final List<AssetSource> sources, final LocalizedString name) {
 return new AssetDraftBuilder(null, null, null, name, sources, null);
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

/**
 * Creates a new instance of {@code AssetDraftDsl} with the values of this builder.
 *
 * @return the instance
 */
public AssetDraftDsl build() {
 return new AssetDraftDsl(custom, description, key, name, sources, tags);
}
io.sphere.sdk.models

Most used classes

  • Reference
    A io.sphere.sdk.models.Reference is a loose reference to another resource on the SPHERE.IO platform.
  • LocalizedString
    A wrapper around an attribute which can be translated into a number of locales. Note that even if yo
  • Identifiable
    Something that is identifiable via an ID.
  • Referenceable
    Represents an object itself or a io.sphere.sdk.models.Reference to it. It is not necessarily the cas
  • Address
    Represents a postal address.Use io.sphere.sdk.models.AddressBuilder to create an address. You can c
  • SphereException,
  • Versioned,
  • AddressBuilder,
  • LocalizedEnumValue,
  • EnumValue,
  • LocalizedStringEntry,
  • SphereEnumeration,
  • ErrorResponse,
  • LocalizedStrings,
  • ResourceIdentifier,
  • WithKey,
  • WithLocalizedSlug,
  • SphereError,
  • Builder
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now