Before DDMS 4.0.1, ddms:RelatedResources was the top-level component (0-many in a resource) and contained 1 to many ddms:relatedResource components. Starting in DDMS 4.0.1, the ddms:RelatedResources component was removed, and the ddms:relatedResource now contains all of the parent information (relationship and direction).
The element-based constructor for this class can automatically handle these cases, and will automatically mediate the Text/HTML/JSON/XML output:
If you have a case where a pre-DDMS 4.0.1 ddms:RelatedResources element contained 5 ddms:relatedResource elements, the Resource class will automatically mediate it to create 5 RelatedResource instances. If an old-fashioned parent element containing multiple children is loaded in the element-based constructor, only the first child will be processed, and a warning will be provided.
{@table.footer}{@table.header Nested Elements}{@child.info ddms:link|1..*|11111} {@table.footer}{@table.header Attributes}{@child.info ddms:relationship|1|11111}{@child.info ddms:direction|0..1|11111} {@child.info ddms:qualifier|1|11111}{@child.info ddms:value|1|11111}{@child.info ism:<securityAttributes>|0..*|11111}{@table.footer}{@table.header Validation Rules}{@ddms.rule The qualified name of this element must be correct.|Error|11111}{@ddms.rule ddms:relationship must exist, and must be a valid URI.|Error|11111}{@ddms.rule If set, ddms:direction must be a valid token.|Error|11111}{@ddms.rule ddms:qualifier must exist, and must be a valid URI.|Error|11111}{@ddms.rule ddms:value must exist.|Error|11111}{@ddms.rule At least 1 ddms:link exists.|Error|11111}{@ddms.rule Links must not contain security attributes.|Error|11111}{@ddms.rule Parent component should not contain more than 1 ddms:relatedResource.|Warning|11100}Does NOT validate that the value is valid against the qualifier's vocabulary.
{@table.footer} @author Brian Uri! @since 0.9.b
|
|