|
|||||||||
| 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.attribute.impl.AbstractAttributeTypeImpl
public abstract class AbstractAttributeTypeImpl
This is a template implementation of AttributeType. It also contains enums of various attribute types.
| Field Summary | |
|---|---|
static AttributeType |
BOOLEAN
The attribute type of boolean : true or false. |
static int |
BOOLEAN_TYPE_ID
Attribute type id for boolean. |
static AbstractAttributeTypeImpl |
DATE
The attribute type for a date. |
static int |
DATE_TYPE_ID
Attribute type id for data. |
static AttributeType |
DATETIME
The attribute type for a date & time. |
static int |
DATETIME_TYPE_ID
Attribute type id for data time. |
static AttributeType |
DECIMAL
The attribute type of a decimal number. |
static int |
DECIMAL_TYPE_ID
Attribute type id for decimal. |
static AttributeType |
FILE
The attribute type for uploading files to the server. |
static int |
FILE_TYPE_ID
Attribute type id for file. |
static AttributeType |
IMAGE
The attribute type for any images for display. |
static int |
IMAGE_TYPE_ID
Attribute type id for image. |
static AttributeType |
INTEGER
The attribute type of a non-decimal number. |
static int |
INTEGER_TYPE_ID
Attribute type id for integer. |
static AttributeType |
LONG_TEXT
Text long attribute type contains 2000 characters or less. |
static int |
LONG_TEXT_TYPE_ID
Attribute type id for long text. |
static AttributeType |
PICKLIST
The attribute type of a list of user-defined values such as (Small, Medium, Large). |
static int |
PICKLIST_TYPE_ID
Attribute type id for pick list. |
static long |
serialVersionUID
Serial version id. |
static AbstractAttributeTypeImpl |
SHORT_TEXT
Text short attribute type contains 255 characters or less. |
static int |
SHORT_TEXT_TYPE_ID
Attribute type id for short text. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Return true if the given object is AttributeType and has the same id. |
static AttributeType[] |
getAttributeTypes()
Returns an array of all available AttributeTypes. |
ElasticPath |
getElasticPath()
Returns the ElasticPath singleton. |
static AttributeType |
getInstance(int attributeTypeId)
Get the attribute type with the given attribute type id. |
abstract java.lang.String |
getStringValue(AttributeValueWithType attributeValueImpl)
Get the string value of the given attribute value instance. |
int |
getTypeId()
Return the attribute type Id. |
abstract java.lang.Object |
getValue(AttributeValueWithType attributeValueImpl)
Get the value object of the given attribute value instance. |
int |
hashCode()
Return the hash code. |
abstract void |
setStringValue(AttributeValueWithType attributeValueImpl,
java.lang.String stringValue)
Set the given attribute value with the given string value. |
abstract void |
setValue(AttributeValueWithType attributeValueImpl,
java.lang.Object value)
Set the given value object to the given attribute value instance. |
java.lang.String |
toString()
Return the attribute type name. |
| Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
|---|
setElasticPath |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.elasticpath.domain.attribute.AttributeType |
|---|
getStorageType |
| Field Detail |
|---|
public static final AttributeType BOOLEAN
public static final int BOOLEAN_TYPE_ID
public static final AbstractAttributeTypeImpl DATE
public static final int DATE_TYPE_ID
public static final AttributeType DATETIME
public static final int DATETIME_TYPE_ID
public static final AttributeType DECIMAL
public static final int DECIMAL_TYPE_ID
public static final AttributeType FILE
public static final int FILE_TYPE_ID
public static final AttributeType IMAGE
public static final int IMAGE_TYPE_ID
public static final AttributeType INTEGER
public static final int INTEGER_TYPE_ID
public static final AttributeType LONG_TEXT
public static final int LONG_TEXT_TYPE_ID
public static final AttributeType PICKLIST
public static final int PICKLIST_TYPE_ID
public static final long serialVersionUID
public static final AbstractAttributeTypeImpl SHORT_TEXT
public static final int SHORT_TEXT_TYPE_ID
| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
true if the given object is AttributeType and has the same id.
equals in class java.lang.Objectobj - the object to compare
true if the given attribute type has the same idpublic static AttributeType[] getAttributeTypes()
AttributeTypes.
AttributeTypes.public ElasticPath getElasticPath()
ElasticPath singleton.
getElasticPath in interface EpDomaingetElasticPath in class AbstractEpDomainImplElasticPath singleton.public static AttributeType getInstance(int attributeTypeId)
attributeTypeId - the attribute type id
public abstract java.lang.String getStringValue(AttributeValueWithType attributeValueImpl)
getStringValue in interface AttributeTypeattributeValueImpl - the attribute value instance
public int getTypeId()
getTypeId in interface AttributeTypepublic abstract java.lang.Object getValue(AttributeValueWithType attributeValueImpl)
getValue in interface AttributeTypeattributeValueImpl - the attribute value instance
public int hashCode()
hashCode in class java.lang.Object
public abstract void setStringValue(AttributeValueWithType attributeValueImpl,
java.lang.String stringValue)
throws EpBindException
setStringValue in interface AttributeTypeattributeValueImpl - the attribute value instancestringValue - the string value to set
EpBindException - when the string value cannot be binded to the attribute type
public abstract void setValue(AttributeValueWithType attributeValueImpl,
java.lang.Object value)
setValue in interface AttributeTypeattributeValueImpl - the attribute value instancevalue - the value objectpublic java.lang.String toString()
toString in interface AttributeTypetoString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||