Liking cljdoc? Tell your friends :D

org.cyverse.metadata-files.container-nested-element


new-container-nested-element-generatorclj

(new-container-nested-element-generator {:keys [attr-name min-occurs max-occurs
                                                element-factory-fns tag
                                                parent-location]
                                         :or {min-occurs 1 max-occurs 1}})

This function creates and returns an element generator that supports metadata attributes with child attributes but no values of their own.

The attr-name parameter takes the name of the metadata template attribute that is used to generate the element. Some elements (for example, top-level container elements) do not consume a metadata attribute. The attr-name parameter can be omitted in these cases.

The min-occurs parameter takes the minimum number of occurrences of the element in the generated document. The default value for this parameter is 1.

The max-occurs parameter takes the maximum number of occurrences of the element in the generated document. The default value for this parameter is 1.

The element-factory-fns parameter contains a sequence of functions that will be used to create the generators for child elements.

The tag parameter is used to specify the element tag.

The parent-location parameter points to the relative location of the parent attribute in the metadata attribute hierarchy. The location of the current element is derived from the value of this parameter and the attr-name parameter.

This function creates and returns an element generator that supports metadata attributes with child attributes but
no values of their own.

The `attr-name` parameter takes the name of the metadata template attribute that is used to generate the
element. Some elements (for example, top-level container elements) do not consume a metadata attribute. The
`attr-name` parameter can be omitted in these cases.

The `min-occurs` parameter takes the minimum number of occurrences of the element in the generated document.
The default value for this parameter is 1.

The `max-occurs` parameter takes the maximum number of occurrences of the element in the generated document.
The default value for this parameter is 1.

The `element-factory-fns` parameter contains a sequence of functions that will be used to create the generators for
child elements.

The `tag` parameter is used to specify the element tag.

The `parent-location` parameter points to the relative location of the parent attribute in the metadata attribute
hierarchy. The location of the current element is derived from the value of this parameter and the `attr-name`
parameter.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close