Local Element

A Local element is an «XSDelement» stereotyped UML attribute that acts as a local XSD element. You can create it by dragging  the Element icon from the XML Schema Toolbox and dropping it onto an «XSDcomplexType» or «XSDgroup» stereotyped Class.

Toolbox Icon

element_icon

Access     Drag icon onto «XSDcomplexType» or «XSDgroup» stereotyped Class, or
Project Browser | Double-click on «XSDelement» stereotyped attribute, or
Diagram | Highlight element | Highlight «XSDelement» stereotyped attribute | double-click on attribute

Define Properties

Field/Button

Action

See also

Name

If you do not want to use the default name of the local element, overtype it with another name.

 

 

Type

Either:

Type the name of a data type, or
Click on the drop-down arrow and select an XSD built-in dataType from the list, or
Click on the browse ( ( ... ) ) button and browse for an existing XSDcomplexType or XSDsimpleType element as a classifier

 

 

Reference

(Optional) Specify whether to use the ref attribute (instead of the type attribute) to refer to the XSDcomplexType or XSDsimpleType element you selected in the Type field, in the generated XSD.

 

 

Value

(Optional) If you have entered an XSD built-in data type in the Type field, type in a value.

 

 

Default

Select this radio button to set the Value as a default value.

 

 

Fixed

Select this radio button to set the Value as a fixed value.

 

 

MinOccurs

(Optional) Type the minimum number of times this element must occur in the Class.

Type 0 to indicate that the element is optional.

The default value is 1.

 

 

MaxOccurs

(Optional) Type the maximum number of times this element can occur in the Class.

Type unbounded to indicate that there is no limit to the number of times the element can occur.

The default value is 1.

 

 

Form

(Optional) Click on the drop-down arrow and select whether or not to qualify the element:

qualified - Use the Prefix defined in the Schema package to qualify this element
unqualified - Do not qualify this element

 

 

Schema Package

Annotation

(Optional) Type in any notes you need for this local element.

 

 

OK

Click on this button to save the element data entered and close the XSD element Properties dialog.

 

 

Cancel

Click on this button to discard the element data entered and close the XSD element Properties dialog.

 

 

Help

Click on this button to display this Help topic.

 

 

UML

This button is displayed when you are editing existing XSD element information.

Click on the button to open the UML attribute Properties dialog for the local element.

General Properties of Attributes

 

Notes

Only «Complex Type», «Group» and «Model Group» stereotyped elements can have this UML Attribute

Learn more