Class OneToOneAssociationGenerator

java.lang.Object
de.hybris.platform.odata2services.odata.schema.association.AbstractAssociationGenerator
de.hybris.platform.odata2services.odata.schema.association.OneToOneAssociationGenerator
All Implemented Interfaces:
AssociationGenerator, SchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.Association,TypeAttributeDescriptor>

public class OneToOneAssociationGenerator extends AbstractAssociationGenerator
  • Constructor Details

    • OneToOneAssociationGenerator

      public OneToOneAssociationGenerator()
  • Method Details

    • 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
    • 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