Problem Description:
The Taxonomy Tuple minOccurs and maxOccurs values can be retrieved by handling the object that ElementDeclr.getContentType() returns. The minOccurs and maxOccurs values cannot be retrieved by handling the presentation links. There isn’t a relationship between the presentation link structure and tuple content model. Please screenshot below of sample Taxonomy within Taxonomy editor for reference.
Solution:
Please note that the count of admissible element occurrence for a given tuple is not always a priori definite, depending on the situation.
For example, the count is indefinite in the follow cases:
- Multiple “choice” or “sequence” properties appear in nests
- “xsd:any” elements are used
Please see attachment document with sample code of how this can be achieved.
Author: Marc Bui
Attachment: How_to_Retrieve_Taxonomy_Tuple_minOccurs_and_maxOccurs_Values.zip