ProductEntity implements org.yes.cart.domain.entity.Product, java.io.Serializable { String getLocale(final String attrCode) { return attrCode.substring(AttributeNamesKeys.Product.PRODUCT_DESCRIPTION_PREFIX.length()); } ProductEntity(); @Override String getCode(); @Override void setCode(final String code); @Override String getManufacturerCode(); @Override void setManufacturerCode(final String manufacturerCode); @Override String getManufacturerPartCode(); @Override void setManufacturerPartCode(final String manufacturerPartCode); @Override String getSupplierCode(); @Override void setSupplierCode(final String supplierCode); @Override String getSupplierCatalogCode(); @Override void setSupplierCatalogCode(final String supplierCatalogCode); @Override String getPimCode(); @Override void setPimCode(final String pimCode); @Override boolean getPimDisabled(); @Override void setPimDisabled(final boolean pimDisabled); @Override boolean getPimOutdated(); @Override void setPimOutdated(final boolean pimOutdated); @Override Instant getPimUpdated(); @Override void setPimUpdated(final Instant pimUpdated); @Override String getName(); @Override void setName(final String name); String getDisplayNameInternal(); void setDisplayNameInternal(final String displayNameInternal); @Override I18NModel getDisplayName(); @Override void setDisplayName(final I18NModel displayName); @Override I18NModel getDisplayDescription(); @Override String getDescription(); @Override void setDescription(final String description); @Override String getTag(); @Override void setTag(final String tag); @Override Brand getBrand(); @Override void setBrand(final Brand brand); String getProducttypeId(); @Override ProductType getProducttype(); @Override void setProducttype(final ProductType producttype); @Override boolean getNotSoldSeparately(); @Override void setNotSoldSeparately(final boolean notSoldSeparately); @Override Set<AttrValueProduct> getAttributes(); @Override void setAttributes(final Set<AttrValueProduct> attributes); @Override Set<ProductCategory> getProductCategory(); @Override void setProductCategory(final Set<ProductCategory> productCategory); @Override Collection<ProductSku> getSku(); @Override void setSku(final Collection<ProductSku> sku); @Override Set<ProductAssociation> getProductAssociations(); @Override void setProductAssociations(final Set<ProductAssociation> productAssociations); ProductOptionsEntity getOptionsInternal(); void setOptionsInternal(final ProductOptionsEntity optionsInternal); SeoEntity getSeoInternal(); void setSeoInternal(final SeoEntity seo); @Override Instant getCreatedTimestamp(); @Override void setCreatedTimestamp(final Instant createdTimestamp); @Override Instant getUpdatedTimestamp(); @Override void setUpdatedTimestamp(final Instant updatedTimestamp); @Override String getCreatedBy(); @Override void setCreatedBy(final String createdBy); @Override String getUpdatedBy(); @Override void setUpdatedBy(final String updatedBy); @Override String getGuid(); @Override void setGuid(final String guid); @Override long getProductId(); @Override long getId(); @Override void setProductId(final long productId); @Override long getVersion(); void setVersion(final long version); String getDefaultImage(); String getDefaultSkuCode(); @Override ProductSku getDefaultSku(); @Override Collection<AttrValueProduct> getAttributesByCode(final String attributeCode); @Override Map<String, AttrValue> getAllAttributesAsMap(); @Override AttrValueProduct getAttributeByCode(final String attributeCode); @Override String getAttributeValueByCode(final String attributeCode); @Override boolean isAttributeValueByCodeTrue(final String attributeCode); @Override Collection<AttrValue> getAllAttributes(); @Override ProductSku getSku(final String skuCode); @Override boolean isMultiSkuProduct(); @Override ProductOptions getOptions(); @Override void setOptions(final ProductOptions options); @Override Seo getSeo(); @Override void setSeo(final Seo seo); @Override String toString();  }
@Test public void testGetLocale() { ProductEntity pe = new ProductEntity(); assertEquals("en", pe.getLocale("PRODUCT_DESCRIPTION_en")); }