Class OneToOneAssociationGenerator

    • Constructor Detail

      • OneToOneAssociationGenerator

        public OneToOneAssociationGenerator()
    • Method Detail

      • isApplicable

        public boolean isApplicable​(IntegrationObjectItemAttributeModel attribute)
        Description copied from interface: AssociationGenerator
        Determines if this association generator is applicable for the given attribute
        Parameters:
        attribute - the attribute we are verifying
        Returns:
        true if applicable, otherwise false
      • isApplicable

        public boolean isApplicable​(TypeAttributeDescriptor attribute)
        Description copied from interface: AssociationGenerator
        Determines if this association generator is applicable for the given attribute descriptor
        Parameters:
        attribute - the attribute descriptor we are verifying
        Returns:
        true if applicable, otherwise false
      • generate

        public org.apache.olingo.odata2.api.edm.provider.Association generate​(IntegrationObjectItemAttributeModel attribute)
        Description copied from interface: AssociationGenerator
        Generates an association for the referenced IntegrationObjectItemAttributeModel
        Parameters:
        attribute - the integration object attribute
        Returns:
        the association
      • getTargetCardinality

        protected org.apache.olingo.odata2.api.edm.EdmMultiplicity getTargetCardinality​(TypeAttributeDescriptor descriptor)
        Description copied from class: AbstractAssociationGenerator
        Determines cardinality of the target type presented in the specified attribute descriptor. Normally the target type is the item type returned by the attribute.
        Overrides:
        getTargetCardinality in class AbstractAssociationGenerator
        Parameters:
        descriptor - descriptor to derive the cardinality from
        Returns:
        multiplicity