Interface MappingLineTypeService
-
- All Known Implementing Classes:
DefaultMappingLineTypeService
public interface MappingLineTypeService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ComposedTypeModelgetComposedTypeModel(java.lang.String code)Return a composed type model for an item type code.TypeModelgetTypeModel(ItemAttributePropertyDescriptor propertyDescriptor)Returns the type model for the attribute type of the supplied property descriptor.booleanisAtomicType(ItemAttributePropertyDescriptor propertyDescriptor)booleanisAtomicType(TypeModel model)booleanisCollectionType(ItemAttributePropertyDescriptor propertyDescriptor)booleanisCollectionType(TypeModel model)booleanisComposedType(ItemAttributePropertyDescriptor propertyDescriptor)booleanisComposedType(TypeModel model)booleanisEnumerationType(ItemAttributePropertyDescriptor propertyDescriptor)booleanisEnumerationType(TypeModel model)booleanisLocalizedType(ItemAttributePropertyDescriptor propertyDescriptor)Checks if the specified property descriptor refers to a property of a localized type (i.e.booleanisLocalizedType(TypeModel model)booleanisUnique(ItemAttributePropertyDescriptor propertyDescriptor, ObjectType type, boolean includeConfigFile)Use for selecting.voidupdateCreationType(ComposedTypeMappingLine mappingLineModel, ObjectType type)Sets the type (ObjectType) as a creation type for the composed mapping mappingLineModel.
-
-
-
Method Detail
-
updateCreationType
void updateCreationType(ComposedTypeMappingLine mappingLineModel, ObjectType type)
Sets the type (ObjectType) as a creation type for the composed mapping mappingLineModel.- Parameters:
mappingLineModel- mapping linetype- type
-
getComposedTypeModel
ComposedTypeModel getComposedTypeModel(java.lang.String code)
Return a composed type model for an item type code.- Parameters:
code- item type code- Returns:
- composed type model
-
isUnique
boolean isUnique(ItemAttributePropertyDescriptor propertyDescriptor, ObjectType type, boolean includeConfigFile)
Use for selecting. All unique attribute and this from the MappingLineModel.config be display and selected- Parameters:
propertyDescriptor- property descriptortype- typeincludeConfigFile- include the attributes from the mapping config file or not- Returns:
- boolean
-
getTypeModel
TypeModel getTypeModel(ItemAttributePropertyDescriptor propertyDescriptor)
Returns the type model for the attribute type of the supplied property descriptor.- Parameters:
propertyDescriptor- property descriptor- Returns:
- type model
-
isAtomicType
boolean isAtomicType(ItemAttributePropertyDescriptor propertyDescriptor)
- Parameters:
propertyDescriptor- property descriptor- Returns:
- true if the type is atomic
-
isAtomicType
boolean isAtomicType(TypeModel model)
- Parameters:
model- a model- Returns:
- true if the type is atomic
-
isComposedType
boolean isComposedType(ItemAttributePropertyDescriptor propertyDescriptor)
- Parameters:
propertyDescriptor- property descriptor- Returns:
- true if the type is a composed type
-
isComposedType
boolean isComposedType(TypeModel model)
- Parameters:
model- a model- Returns:
- true if the type is a composed type
-
isCollectionType
boolean isCollectionType(ItemAttributePropertyDescriptor propertyDescriptor)
- Parameters:
propertyDescriptor- property descriptor- Returns:
- true if the type is of collection type
-
isCollectionType
boolean isCollectionType(TypeModel model)
- Parameters:
model- a model- Returns:
- true if the type is of collection type
-
isEnumerationType
boolean isEnumerationType(ItemAttributePropertyDescriptor propertyDescriptor)
- Parameters:
propertyDescriptor-- Returns:
-
isEnumerationType
boolean isEnumerationType(TypeModel model)
- Parameters:
model- a model- Returns:
- true if the type is an enumeration type
-
isLocalizedType
boolean isLocalizedType(ItemAttributePropertyDescriptor propertyDescriptor)
Checks if the specified property descriptor refers to a property of a localized type (i.e. Product.name, description etc.)- Parameters:
propertyDescriptor- property descriptor- Returns:
- true if the property descriptor refers to a property of a localized type
-
isLocalizedType
boolean isLocalizedType(TypeModel model)
- Parameters:
model- a model- Returns:
- true if the model is of localized type
-
-