|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Attribute
An Attribute
reprents a customized property of an object like Category
or
Product
.
Method Summary | |
---|---|
AttributeType |
getAttributeType()
Return the AttributeType of this attribute. |
AttributeUsage |
getAttributeUsage()
Return the AttributeUsage of this attribute. |
java.lang.String |
getKey()
Get the attribute key. |
java.lang.String |
getName()
Get the product system name. |
boolean |
isIncludedInSearchIndex()
Return true if the attribute should be included in the search index. |
boolean |
isLocaleDependant()
Return true if the attribute is dependant on the locale. |
boolean |
isMultiValueEnabled()
Return true if the attribute can have multi value. |
boolean |
isRequired()
Return true if the attribute is required. |
boolean |
isSystem()
Return true if the attribute is system attribute. |
boolean |
isUsedInGuidedNavigation()
Return true if this attribute is used in guided navigation. |
boolean |
isValueLookupEnabled()
Return true if the value lookup for this attribute is enabled. |
void |
setAttributeType(AttributeType attributeType)
Set the AttributeType of this attribute. |
void |
setAttributeUsage(AttributeUsage attributeUsage)
Set the AttributeUsage of this attribute. |
void |
setIncludedInSearchIndex(boolean includedInSearchIndex)
Set the included in search index flag. |
void |
setKey(java.lang.String key)
Set the attribute key. |
void |
setLocaleDependant(boolean localeDependant)
Set the locale-dependant flag. |
void |
setMultiValueEnabled(boolean multiValueEnabled)
Set the attribute can have multi value. |
void |
setName(java.lang.String name)
Set the product system name. |
void |
setRequired(boolean required)
Set the required flag. |
void |
setSystem(boolean system)
Set the system flag. |
void |
setUsedInGuidedNavigation(boolean usedInGuidedNavigation)
Set this attribute is used in guided navigation. |
void |
setValueLookupEnabled(boolean valueLookupEnabled)
Sets whether or not the user will have the option of selecting from previously existing values when editing an attribute. |
Methods inherited from interface com.elasticpath.domain.Entity |
---|
getGuid, setGuid |
Methods inherited from interface com.elasticpath.domain.Persistence |
---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
AttributeType getAttributeType()
AttributeType
of this attribute.
AttributeType
of this attributeAttributeUsage getAttributeUsage()
AttributeUsage
of this attribute.
AttributeUsage
of this attributejava.lang.String getKey()
java.lang.String getName()
boolean isIncludedInSearchIndex()
true
if the attribute should be included in the search index.
true
if the attribute should be included in the search indexboolean isLocaleDependant()
true
if the attribute is dependant on the locale.
true
if the attribute is dependant on the localeboolean isMultiValueEnabled()
boolean isRequired()
true
if the attribute is required.
true
if the attribute is requiredboolean isSystem()
true
if the attribute is system attribute.
true
if the attribute is system attributeboolean isUsedInGuidedNavigation()
boolean isValueLookupEnabled()
true
if the value lookup for this attribute is enabled.
If value-lookup is enabled, users have the option of selecting from existing
previously existing attribute values when setting the attribute's value.
true
if the value lookup for this attribute is enabled.void setAttributeType(AttributeType attributeType)
AttributeType
of this attribute.
attributeType
- the attribute type.void setAttributeUsage(AttributeUsage attributeUsage)
AttributeUsage
of this attribute.
attributeUsage
- the attribute usagevoid setIncludedInSearchIndex(boolean includedInSearchIndex)
includedInSearchIndex
- the included in search index flagvoid setKey(java.lang.String key)
key
- the key to setvoid setLocaleDependant(boolean localeDependant)
localeDependant
- the locale-dependant flag.void setMultiValueEnabled(boolean multiValueEnabled)
multiValueEnabled
- the multiValueEnabled to setvoid setName(java.lang.String name)
name
- the product system namevoid setRequired(boolean required)
required
- the required flagvoid setSystem(boolean system)
system
- the system flagvoid setUsedInGuidedNavigation(boolean usedInGuidedNavigation)
usedInGuidedNavigation
- the usedInGuidedNavigation to setvoid setValueLookupEnabled(boolean valueLookupEnabled)
valueLookupEnabled
- set to true
if lookup is to be enabled.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |