|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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.Comparable
object
- the given object
EpDomainException
- in case the given object is not a Attribute
public AttributeType getAttributeType()
AttributeType
of this attribute.
getAttributeType
in interface Attribute
AttributeType
of this attributepublic AttributeUsage getAttributeUsage()
AttributeUsage
of this attribute.
getAttributeUsage
in interface Attribute
AttributeUsage
of this attributepublic java.lang.String getGuid()
getGuid
in interface Entity
getGuid
in class AbstractEntityImpl
public java.lang.String getKey()
getKey
in interface Attribute
public java.lang.String getName()
getName
in interface Attribute
public boolean isIncludedInSearchIndex()
true
if the attribute should be included in the search index.
isIncludedInSearchIndex
in interface Attribute
true
if the attribute should be included in the search indexpublic boolean isLocaleDependant()
true
if the attribute is dependant on the locale.
isLocaleDependant
in interface Attribute
true
if the attribute is dependant on the localepublic boolean isMultiValueEnabled()
isMultiValueEnabled
in interface Attribute
public boolean isRequired()
true
if the attribute is required.
isRequired
in interface Attribute
true
if the attribute is requiredpublic boolean isSystem()
true
if the attribute is system attribute.
isSystem
in interface Attribute
true
if the attribute is system attributepublic boolean isUsedInGuidedNavigation()
isUsedInGuidedNavigation
in interface Attribute
public 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 Attribute
true
if the value lookup for this attribute is enabled.public void setAttributeType(AttributeType attributeType)
AttributeType
of this attribute.
setAttributeType
in interface Attribute
attributeType
- the attribute type.public void setAttributeUsage(AttributeUsage attributeUsage)
AttributeUsage
of this attribute.
setAttributeUsage
in interface Attribute
attributeUsage
- the attribute usagepublic void setGuid(java.lang.String guid)
setGuid
in interface Entity
setGuid
in class AbstractEntityImpl
guid
- the guid to set.public void setIncludedInSearchIndex(boolean includedInSearchIndex)
setIncludedInSearchIndex
in interface Attribute
includedInSearchIndex
- the included in search index flagpublic void setKey(java.lang.String key)
setKey
in interface Attribute
key
- the key to setpublic void setLocaleDependant(boolean localeDependant)
setLocaleDependant
in interface Attribute
localeDependant
- the locale-dependant flag.public void setMultiValueEnabled(boolean multiValueEnabled)
setMultiValueEnabled
in interface Attribute
multiValueEnabled
- the multiValueEnabled to setpublic void setName(java.lang.String name)
setName
in interface Attribute
name
- the product system namepublic void setRequired(boolean required)
setRequired
in interface Attribute
required
- the required flagpublic void setSystem(boolean system)
setSystem
in interface Attribute
system
- the system flagpublic void setUsedInGuidedNavigation(boolean usedInGuidedNavigation)
setUsedInGuidedNavigation
in interface Attribute
usedInGuidedNavigation
- the usedInGuidedNavigation to setpublic void setValueLookupEnabled(boolean valueLookupEnabled)
setValueLookupEnabled
in interface Attribute
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 |