Package mc.core.model.channel
Class ChannelMapBase
java.lang.Object
mc.core.model.base.EntityBase
mc.core.model.base.SimpleEntity
mc.core.model.channel.ChannelMapBase
- All Implemented Interfaces:
Serializable,Iterable<ChannelMapField>,IBaseEntity,ICoreEntity,IEntity,ISortableEntity
- Direct Known Subclasses:
ImportMap,PublicationProfileMap,PublicationProfileTypeMap
@MappedSuperclass
public abstract class ChannelMapBase
extends SimpleEntity
implements Iterable<ChannelMapField>
Base class for maps that determine which data of entities is relevant in import or export and optionally map the data
to structures in flat files that represent the import or export medium.
Properties applying to flat files only:
mappedObjectClass: class of main object being exported or imported. Currently only Nodes are
supported.objectType: type must be given for typeManaged ComplexTypeEntity. Currently this must be a NodeType.Properties applying to flat files only:
mapType: ChannelMapType gives the type or flat file based filedelimiter: for non-fixed length filed: gives the delimiter between fieldsquoteChar: for non-fixed length filed: gives the quote-char to be used around text that contains the
delimiterhasHeader: set to true if table/file has a header line that provides the column names. If header is
given the column names (header) must be provided for each mapField- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classNested classes/interfaces inherited from class mc.core.model.base.EntityBase
EntityBase.EntityComparator, EntityBase.Param -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charDefault column delimiter in CSV files.static final charDefault escape character in CSV.Fields inherited from class mc.core.model.base.EntityBase
INTDESC_COLUMN_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMapField(ChannelMapField mapField) charbooleangetMapFields(ChannelMapField.ChannelMapFieldType fieldType) abstract IChannelMapHolder<? extends ChannelMapBase>returns the instance of profile or profileType to which this channelMap belongschariterator()for Iterable contractvoidsetDelimiter(char delimiter) voidsetHasHeader(boolean hasHeader) voidsetMapFields(List<ChannelMapField> importMapFields) voidsetMappedObjectClass(String complexEntityClassName) voidsetMapType(ChannelMapBase.ChannelMapType mapType) voidsetObjectType(ComplexTypeEntity objectType) voidsetQuoteChar(char quoteChar) Methods inherited from class mc.core.model.base.SimpleEntity
getId, getInternalDescription, getIsActive, setId, setIsActiveMethods inherited from class mc.core.model.base.EntityBase
equals, getCollection, getDescription, getDescription, getFlag, getIsSystem, getName, getName, getNamespace, getPrio, hashCode, setCollection, setDescription, setDescription, setFlag, setInternalDescription, setIsSystem, setName, setName, setNamespace, setPrio, toStringMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
DELIMITER_CHAR
public static final char DELIMITER_CHARDefault column delimiter in CSV files. This conflicts with the proposal form RFC 4180 but allows to use CSV files from Excel versions that are sold in central and northern Europe.- See Also:
-
QUOTE_CHAR
public static final char QUOTE_CHARDefault escape character in CSV.- See Also:
-
-
Constructor Details
-
ChannelMapBase
public ChannelMapBase() -
ChannelMapBase
-
-
Method Details
-
getHasHeader
public boolean getHasHeader()- Returns:
- Whether exported CSV files have a header row.
-
setHasHeader
public void setHasHeader(boolean hasHeader) - Parameters:
hasHeader- Whether exported CSV files have a header row.
-
getMappedObjectClass
-
setMappedObjectClass
-
getDelimiter
public char getDelimiter() -
setDelimiter
public void setDelimiter(char delimiter) -
getMapType
-
setMapType
-
getMapFields
-
setMapFields
-
addMapField
-
getObjectType
-
setObjectType
-
getQuoteChar
public char getQuoteChar() -
setQuoteChar
public void setQuoteChar(char quoteChar) -
getMapHolder
returns the instance of profile or profileType to which this channelMap belongs -
iterator
for Iterable contract- Specified by:
iteratorin interfaceIterable<ChannelMapField>
-
getMapFields
-