element <constructor-arg>
Namespace:
Type:
anonymous complexType
Content:
complex, 4 attributes, 10 elements, elem. wildcard
Defined:
Includes:
definitions of 4 attributes, 10 elements, elem. wildcard
Used:
never
Content Model Diagram
XML Representation Summary
<constructor-arg
    index
 = 
xsd:string
    type
 = 
xsd:string
    ref
 = 
xsd:string
    value
 = 
xsd:string
    >
   
Content: 
description?, (bean | ref | idref | value | null | list | set | map | props | {any})?
</constructor-arg>
Content model elements (10):
Included in content model of elements (3):
Annotation
Bean definitions can specify zero or more constructor arguments. This is an alternative to "autowire constructor". Arguments correspond to either a specific index of the constructor argument list or are supposed to be matched generically by type. Note: A single generic argument value will just be used once, rather than potentially matched multiple times (as of Spring 1.1). constructor-arg elements are also used in conjunction with the factory-method element to construct beans using static or instance factory methods.
See:  java:org.springframework.beans.factory.config.ConstructorArgumentValues
XML Source (w/o annotations (5); see within schema source)
<xsd:element name="constructor-arg">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" ref="description"/>
<xsd:choice maxOccurs="1" minOccurs="0">
<xsd:element ref="bean"/>
<xsd:element ref="ref"/>
<xsd:element ref="idref"/>
<xsd:element ref="value"/>
<xsd:element ref="null"/>
<xsd:element ref="list"/>
<xsd:element ref="set"/>
<xsd:element ref="map"/>
<xsd:element ref="props"/>
<xsd:any namespace="##other" processContents="strict"/>
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="index" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="ref" type="xsd:string"/>
<xsd:attribute name="value" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
Attribute Detail (all declarations; defined in this component only; 4/4)
index
Type:
xsd:string, predefined
Use:
optional
The exact index of the argument in the constructor argument list. Only needed to avoid ambiguities, e.g. in case of 2 arguments of the exact same type.
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute name="index" type="xsd:string"/>

ref
Type:
xsd:string, predefined
Use:
optional
A short-cut alternative to a nested "<ref bean='...'/>" element.
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute name="ref" type="xsd:string"/>

type
Type:
xsd:string, predefined
Use:
optional
The exact type of the constructor argument. Only needed to avoid ambiguities, e.g. in case of 2 single argument constructors that can both be converted from a String.
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute name="type" type="xsd:string"/>

value
Type:
xsd:string, predefined
Use:
optional
A short-cut alternative to a nested "<value>...<value/>" element.
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute name="value" type="xsd:string"/>
Content Element Detail (all declarations; defined in this component only; 11/11)
bean
Type:
anonymous (extension of identifiedType), complex content
XML Source (see within schema source)
<xsd:element ref="bean"/>

description
Type:
anonymous, mixed content
XML Source (see within schema source)
<xsd:element minOccurs="0" ref="description"/>

idref
Type:
anonymous (restriction of xsd:anyType), empty content
XML Source (see within schema source)
<xsd:element ref="idref"/>

list
Type:
anonymous (extension of listOrSetType), complex content
XML Source (see within schema source)
<xsd:element ref="list"/>

map
Type:
anonymous (extension of mapType), complex content
XML Source (see within schema source)
<xsd:element ref="map"/>

null
Type:
anonymous, mixed content
XML Source (see within schema source)
<xsd:element ref="null"/>

props
Type:
anonymous (extension of propsType), complex content
XML Source (see within schema source)
<xsd:element ref="props"/>

ref
Type:
anonymous (restriction of xsd:anyType), empty content
XML Source (see within schema source)
<xsd:element ref="ref"/>

set
Type:
anonymous (extension of listOrSetType), complex content
XML Source (see within schema source)
<xsd:element ref="set"/>

value
Type:
anonymous, mixed content
XML Source (see within schema source)
<xsd:element ref="value"/>

{any element with non-schema namespace}
XML Source (see within schema source)
<xsd:any namespace="##other" processContents="strict"/>

XML schema documentation generated with DocFlex/XML SDK 1.8.1b6 using DocFlex/XML XSDDoc 2.2.1 template set. All content model diagrams generated by Altova XMLSpy via DocFlex/XML XMLSpy Integration.