Class CollectionAssociationGenerator
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.schema.association.AbstractAssociationGenerator
-
- de.hybris.platform.odata2services.odata.schema.association.CollectionAssociationGenerator
-
- All Implemented Interfaces:
AssociationGenerator,SchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.Association,IntegrationObjectItemAttributeModel>
public class CollectionAssociationGenerator extends AbstractAssociationGenerator
-
-
Constructor Summary
Constructors Constructor Description CollectionAssociationGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.olingo.odata2.api.edm.provider.Associationgenerate(IntegrationObjectItemAttributeModel attributeDefinitionModel)Generates the schema element whose type is defined by T.booleanisApplicable(IntegrationObjectItemAttributeModel attributeDefinitionModel)Determines if this association generator is applicable for the given attribute-
Methods inherited from class de.hybris.platform.odata2services.odata.schema.association.AbstractAssociationGenerator
asDescriptor, checkIsApplicablePrecondition, getAssociationName, getAssociationName, getSourceCardinality, getSourceRole, getSourceRole, getTargetCardinality, getTargetRole, getTargetRole, getTargetType, getTargetType
-
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(IntegrationObjectItemAttributeModel attributeDefinitionModel)
Description copied from interface:AssociationGeneratorDetermines if this association generator is applicable for the given attribute- Parameters:
attributeDefinitionModel- the attribute we are verifying- Returns:
- true if applicable, otherwise false
-
generate
public org.apache.olingo.odata2.api.edm.provider.Association generate(IntegrationObjectItemAttributeModel attributeDefinitionModel)
Description copied from interface:SchemaElementGeneratorGenerates the schema element whose type is defined by T.- Parameters:
attributeDefinitionModel- the object that is being converted- Returns:
- R the schema element
-
-