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>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.olingo.odata2.api.edm.EdmMultiplicitygetTargetCardinality(TypeAttributeDescriptor descriptor) Determines cardinality of the target type presented in the specified attribute descriptor.booleanisApplicable(TypeAttributeDescriptor attribute) Determines if this association generator is applicable for the given attribute descriptorMethods inherited from class de.hybris.platform.odata2services.odata.schema.association.AbstractAssociationGenerator
falseIfNull, generate, getSourceCardinality, getTargetType
-
Constructor Details
-
OneToOneAssociationGenerator
public OneToOneAssociationGenerator()
-
-
Method Details
-
isApplicable
Description copied from interface:AssociationGeneratorDetermines 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:AbstractAssociationGeneratorDetermines cardinality of the target type presented in the specified attribute descriptor. Normally the target type is the item type returned by the attribute.- Overrides:
getTargetCardinalityin classAbstractAssociationGenerator- Parameters:
descriptor- descriptor to derive the cardinality from- Returns:
- multiplicity
-