Interface AssociationGenerator
-
- All Superinterfaces:
SchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.Association,IntegrationObjectItemAttributeModel>
- All Known Implementing Classes:
AbstractAssociationGenerator,CollectionAssociationGenerator,OneToOneAssociationGenerator
public interface AssociationGenerator extends SchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.Association,IntegrationObjectItemAttributeModel>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetAssociationName(IntegrationObjectItemAttributeModel attributeDefinitionModel)Derives the association name from the given attribute definition modeljava.lang.StringgetSourceRole(IntegrationObjectItemAttributeModel attributeDefinitionModel)Derives the source role from the given attribute definition modeljava.lang.StringgetTargetRole(IntegrationObjectItemAttributeModel attributeDefinitionModel)Derives the target role from the given attribute definition modelbooleanisApplicable(IntegrationObjectItemAttributeModel attributeDefinitionModel)Determines if this association generator is applicable for the given attribute-
Methods inherited from interface de.hybris.platform.odata2services.odata.schema.SchemaElementGenerator
generate
-
-
-
-
Method Detail
-
getSourceRole
java.lang.String getSourceRole(IntegrationObjectItemAttributeModel attributeDefinitionModel)
Derives the source role from the given attribute definition model- Parameters:
attributeDefinitionModel- the integration object attribute definition model- Returns:
- the source role
-
getTargetRole
java.lang.String getTargetRole(IntegrationObjectItemAttributeModel attributeDefinitionModel)
Derives the target role from the given attribute definition model- Parameters:
attributeDefinitionModel- the integration object attribute definition model- Returns:
- the target role
-
getAssociationName
java.lang.String getAssociationName(IntegrationObjectItemAttributeModel attributeDefinitionModel)
Derives the association name from the given attribute definition model- Parameters:
attributeDefinitionModel- the integration object attribute definition model- Returns:
- the association name
-
isApplicable
boolean isApplicable(IntegrationObjectItemAttributeModel attributeDefinitionModel)
Determines if this association generator is applicable for the given attribute- Parameters:
attributeDefinitionModel- the attribute we are verifying- Returns:
- true if applicable, otherwise false
-
-