element <idref>
Namespace: |
|
Type: |
|
Content: |
|
Defined: |
|
Includes: |
|
Used: |
never |
Content Model Diagram
XML Representation Summary |
<idref |
|
bean |
= |
xsd:string |
|
local |
= |
xsd:IDREF |
/> |
Included in content model of elements (22):
-
array,
array,
constructor-arg,
constructor-arg,
constructor-arg,
context-property,
entry,
entry,
entry,
key,
key,
key,
list,
list,
list,
property,
property,
property,
recipients,
set,
set,
set
Annotation
The id of another bean in this factory or an external factory
(parent or included factory).
While a regular 'value' element could instead be used for the
same effect, using idref in this case allows validation of local
bean ids by the XML parser, and name completion by supporting tools.
Anonymous Type Detail
Type Derivation Tree xsd:anyType (restriction) complexType |
XML Source (w/o annotations (3); see within schema source)
<xsd:element name="idref"> <xsd:complexType> <xsd:complexContent> <xsd:restriction base="xsd:anyType"> <xsd:attribute name="bean" type="xsd:string"/> <xsd:attribute name="local" type="xsd:IDREF"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> </xsd:element> |
Attribute Detail (all declarations; defined in this component only; 2/2)
bean-
Type: |
xsd:string, predefined |
Use: |
optional |
The name of the referenced bean.
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute name="bean" type="xsd:string"/> |
local-
Type: |
xsd:IDREF, predefined |
Use: |
optional |
The name of the referenced bean. The value must be a bean ID and thus can
be checked by the XML parser. This is therefore the preferred technique
for referencing beans within the same bean factory XML file.
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute name="local" type="xsd:IDREF"/> |