Class ListItemClassAttributeDTO
java.lang.Object
de.hybris.platform.integrationbackoffice.widgets.modeling.data.dto.AbstractListItemDTO
de.hybris.platform.integrationbackoffice.widgets.modeling.data.dto.ListItemClassAttributeDTO
Represents an
IntegrationObjectClassAttributeModel stored as the
value of a Listitem in the modeling view.-
Field Summary
Fields inherited from class de.hybris.platform.integrationbackoffice.widgets.modeling.data.dto.AbstractListItemDTO
alias, autocreate, customUnique, description, selected, typeAlias -
Method Summary
Modifier and TypeMethodDescriptionInstantiates a builder for this class.final voidbooleanfindMatch(IntegrationObjectClassDefinition currentAttributesMap, IntegrationClassMapKeyDTO parentKey) Retrieves aListItemClassAttributeDTObyIntegrationObjectClassDefinitionandIntegrationClassMapKeyDTOfindMatch(IntegrationObjectDefinition currentAttributesMap, IntegrationMapKeyDTO parentKey) The method is not implemented for POJOClass<?>Retrieves the attribute/read method's return typeClass<?>Retrieves the attribute classRetrieves the read method of the attributeRetrieves theListItemStructureTypeof the attributegetType()The method is not implemented for POJOinthashCode()booleanindicates whether attributeReturnType is aComposedTypeModelwhich is applicable to be shown as aIOClassTreeNodeData.booleanisComplexType(ReadService readService) The method is not implemented for POJObooleanbooleanWhen a DTO is not supported, it will be shown withEditorConstants.CSS_LISTITEM_NOT_SUPPORTEDstyle inIntegrationObjectClassEditorListboxControllerand it cannot be selected.voidAlias is a reserved field for future use so this method is not supposed to be used.update(ListItemClassAttributeDTO newDTO) Update the DTO with new DTO's fields except for contextClass and readMethodMethods inherited from class de.hybris.platform.integrationbackoffice.widgets.modeling.data.dto.AbstractListItemDTO
getAlias, getDescription, getTypeAlias, getTypeCode, isAutocreate, isCustomUnique, isSelected, setAutocreate, setCustomUnique, setSelected, setTypeAlias
-
Method Details
-
builder
Instantiates a builder for this class.- Parameters:
attributeName- the name of aPropertyDescriptorof a Class or given by usercontextClass- the Class reference of the attribute.- Returns:
- a builder for this class.
-
setAlias
Alias is a reserved field for future use so this method is not supposed to be used.- Specified by:
setAliasin classAbstractListItemDTO
-
createDescription
public final void createDescription()- Specified by:
createDescriptionin classAbstractListItemDTO
-
findMatch
public AbstractListItemDTO findMatch(IntegrationObjectDefinition currentAttributesMap, IntegrationMapKeyDTO parentKey) The method is not implemented for POJO- Specified by:
findMatchin classAbstractListItemDTO- Parameters:
currentAttributesMap- a definition map encapsulated byIntegrationObjectDefinition.parentKey- Parent key the instance is located in- Throws:
org.apache.commons.lang.NotImplementedException- exception
-
findMatch
public ListItemClassAttributeDTO findMatch(IntegrationObjectClassDefinition currentAttributesMap, IntegrationClassMapKeyDTO parentKey) Retrieves aListItemClassAttributeDTObyIntegrationObjectClassDefinitionandIntegrationClassMapKeyDTO- Parameters:
currentAttributesMap- a definition map encapsulated byIntegrationObjectClassDefinition.parentKey- Parent key the instance is located in- Returns:
- matched
ListItemClassAttributeDTO - Throws:
NoSuchElementException- when no matchedListItemClassAttributeDTO
-
isComplexType
The method is not implemented for POJO- Specified by:
isComplexTypein classAbstractListItemDTO- Parameters:
readService- the service to read from the type system- Throws:
org.apache.commons.lang.NotImplementedException- exception
-
isComplexType
public boolean isComplexType()indicates whether attributeReturnType is aComposedTypeModelwhich is applicable to be shown as aIOClassTreeNodeData. -
getQualifier
- Specified by:
getQualifierin classAbstractListItemDTO
-
getType
The method is not implemented for POJO- Specified by:
getTypein classAbstractListItemDTO- Throws:
org.apache.commons.lang.NotImplementedException- exception
-
isStructureType
public boolean isStructureType()- Specified by:
isStructureTypein classAbstractListItemDTO
-
isSupported
public boolean isSupported()When a DTO is not supported, it will be shown withEditorConstants.CSS_LISTITEM_NOT_SUPPORTEDstyle inIntegrationObjectClassEditorListboxControllerand it cannot be selected. -
getReadMethod
Retrieves the read method of the attribute- Returns:
- the read method of the attribute
-
getContextClass
Retrieves the attribute class- Returns:
- attribute class
-
getStructureType
Retrieves theListItemStructureTypeof the attribute- Returns:
- the attribute's structure type
-
getAttributeReturnType
Retrieves the attribute/read method's return type- Returns:
- return class
-
update
Update the DTO with new DTO's fields except for contextClass and readMethod- Parameters:
newDTO- new DTO whose fields will be used to update the existing DTO- Returns:
- a newly created DTO with updated fields
-
equals
-
hashCode
public int hashCode()
-