|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.domain.impl.AbstractEpDomainImpl
com.elasticpath.domain.impl.AbstractPersistenceImpl
com.elasticpath.domain.impl.AbstractEntityImpl
com.elasticpath.domain.attribute.impl.AttributeImpl
public class AttributeImpl
Attribute reprents a customized property of an object like Category or Product.
| Field Summary | |
|---|---|
static long |
serialVersionUID
Serial version id. |
| Constructor Summary | |
|---|---|
AttributeImpl()
|
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object object)
Compares this attribute with the specified object for order. |
AttributeType |
getAttributeType()
Return the AttributeType of this attribute. |
AttributeUsage |
getAttributeUsage()
Return the AttributeUsage of this attribute. |
java.lang.String |
getGuid()
Return the guid. |
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 |
setGuid(java.lang.String guid)
Set the guid. |
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 class com.elasticpath.domain.impl.AbstractEntityImpl |
|---|
convertAttributeGroupAttributes, setDefaultValues |
| Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
| Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
|---|
getElasticPath, setElasticPath |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.elasticpath.domain.Persistence |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
| Methods inherited from interface com.elasticpath.domain.EpDomain |
|---|
getElasticPath, setElasticPath |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public AttributeImpl()
| Method Detail |
|---|
public int compareTo(java.lang.Object object)
throws EpDomainException
compareTo in interface java.lang.Comparableobject - the given object
EpDomainException - in case the given object is not a Attributepublic AttributeType getAttributeType()
AttributeType of this attribute.
getAttributeType in interface AttributeAttributeType of this attributepublic AttributeUsage getAttributeUsage()
AttributeUsage of this attribute.
getAttributeUsage in interface AttributeAttributeUsage of this attributepublic java.lang.String getGuid()
getGuid in interface EntitygetGuid in class AbstractEntityImplpublic java.lang.String getKey()
getKey in interface Attributepublic java.lang.String getName()
getName in interface Attributepublic boolean isIncludedInSearchIndex()
true if the attribute should be included in the search index.
isIncludedInSearchIndex in interface Attributetrue if the attribute should be included in the search indexpublic boolean isLocaleDependant()
true if the attribute is dependant on the locale.
isLocaleDependant in interface Attributetrue if the attribute is dependant on the localepublic boolean isMultiValueEnabled()
isMultiValueEnabled in interface Attributepublic boolean isRequired()
true if the attribute is required.
isRequired in interface Attributetrue if the attribute is requiredpublic boolean isSystem()
true if the attribute is system attribute.
isSystem in interface Attributetrue if the attribute is system attributepublic boolean isUsedInGuidedNavigation()
isUsedInGuidedNavigation in interface Attributepublic 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.
isValueLookupEnabled in interface Attributetrue if the value lookup for this attribute is enabled.public void setAttributeType(AttributeType attributeType)
AttributeType of this attribute.
setAttributeType in interface AttributeattributeType - the attribute type.public void setAttributeUsage(AttributeUsage attributeUsage)
AttributeUsage of this attribute.
setAttributeUsage in interface AttributeattributeUsage - the attribute usagepublic void setGuid(java.lang.String guid)
setGuid in interface EntitysetGuid in class AbstractEntityImplguid - the guid to set.public void setIncludedInSearchIndex(boolean includedInSearchIndex)
setIncludedInSearchIndex in interface AttributeincludedInSearchIndex - the included in search index flagpublic void setKey(java.lang.String key)
setKey in interface Attributekey - the key to setpublic void setLocaleDependant(boolean localeDependant)
setLocaleDependant in interface AttributelocaleDependant - the locale-dependant flag.public void setMultiValueEnabled(boolean multiValueEnabled)
setMultiValueEnabled in interface AttributemultiValueEnabled - the multiValueEnabled to setpublic void setName(java.lang.String name)
setName in interface Attributename - the product system namepublic void setRequired(boolean required)
setRequired in interface Attributerequired - the required flagpublic void setSystem(boolean system)
setSystem in interface Attributesystem - the system flagpublic void setUsedInGuidedNavigation(boolean usedInGuidedNavigation)
setUsedInGuidedNavigation in interface AttributeusedInGuidedNavigation - the usedInGuidedNavigation to setpublic void setValueLookupEnabled(boolean valueLookupEnabled)
setValueLookupEnabled in interface AttributevalueLookupEnabled - 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 | ||||||||