com.elasticpath.domain.dataimport.impl
Class AbstractImportFieldImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractTransientImpl
          extended by com.elasticpath.domain.dataimport.impl.AbstractImportFieldImpl
All Implemented Interfaces:
ImportField, EpDomain, Transient, java.io.Serializable

public abstract class AbstractImportFieldImpl
extends AbstractTransientImpl
implements ImportField

Represents a template ImportField.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
AbstractImportFieldImpl(java.lang.String name, java.lang.String type, boolean required)
          The default constructor.
 
Method Summary
 void checkStringValue(Persistence persistenceObject, java.lang.String value, ImportGuidHelper service)
          A dummy implementation of the method for most import fields.
 java.lang.String getName()
          Return the import field name.
 java.lang.String getType()
          Return the import field type.
 boolean isRequired()
          Return true if it is a rquired field.
 
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.dataimport.ImportField
getStringValue, setStringValue
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

AbstractImportFieldImpl

public AbstractImportFieldImpl(java.lang.String name,
                               java.lang.String type,
                               boolean required)
The default constructor.

Parameters:
name - the name of the import field
type - the type of the import field
required - set it to true if the import field is rquired
Method Detail

checkStringValue

public void checkStringValue(Persistence persistenceObject,
                             java.lang.String value,
                             ImportGuidHelper service)
A dummy implementation of the method for most import fields.

Specified by:
checkStringValue in interface ImportField
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

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

Specified by:
getName in interface ImportField
Returns:
the import field name

getType

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

Specified by:
getType in interface ImportField
Returns:
the import field type

isRequired

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

Specified by:
isRequired in interface ImportField
Returns:
true if it is rquired