com.elasticpath.domain.dataimport
Interface ImportField

All Superinterfaces:
EpDomain, java.io.Serializable, Transient
All Known Implementing Classes:
AbstractImportFieldImpl

public interface ImportField
extends Transient

Represents an import field.


Method Summary
 void checkStringValue(Persistence persistenceObject, java.lang.String value, ImportGuidHelper service)
          Checks the given string value of the field.
 java.lang.String getName()
          Return the import field name.
 java.lang.String getStringValue(Persistence persistenceObject)
          Return the value of the field as a string with the given Persistence instance.
 java.lang.String getType()
          Return the import field type.
 boolean isRequired()
          Return true if it is a rquired field.
 void setStringValue(Persistence persistenceObject, java.lang.String value, ImportGuidHelper service)
          Sets the string value to the field of the given Persistence instance.
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Method Detail

checkStringValue

void checkStringValue(Persistence persistenceObject,
                      java.lang.String value,
                      ImportGuidHelper service)
Checks the given string value of the field.

Parameters:
persistenceObject - the Persistence instance on which to set value
value - the value to set
service - the service used to load an associated entity if the given value is a guid.

getName

java.lang.String getName()
Return the import field name.

Returns:
the import field name

getStringValue

java.lang.String getStringValue(Persistence persistenceObject)
Return the value of the field as a string with the given Persistence instance.

Parameters:
persistenceObject - the Persistence instance on which to retrieve value
Returns:
the String value of the field

getType

java.lang.String getType()
Return the import field type.

Returns:
the import field type

isRequired

boolean isRequired()
Return true if it is a rquired field.

Returns:
true if it is rquired

setStringValue

void setStringValue(Persistence persistenceObject,
                    java.lang.String value,
                    ImportGuidHelper service)
Sets the string value to the field of the given Persistence instance.

Parameters:
persistenceObject - the Persistence instance on which to set value
value - the value to set
service - the service used to load an associated entity if the given value is a guid.