Prev Next

Local Attribute

A local attribute is an «XSDattribute» stereotyped UML attribute. You can create it by dragging the Attribute icon from the XML Schema Toolbox and dropping it onto an «XSDcomplexType» or «XSDattributeGroup» stereotyped Class.

Toolbox Icon

Access

To display the 'XSD attribute Properties' dialog for the selected «XSDattribute» stereotyped UML attribute, use one of the methods outlined here.

Ribbon

With a specific «XSDattribute» stereotyped UML attribute selected on a diagram:

Design > Element > Features > Attributes

Context Menu

With a specific «XSDattribute» stereotyped UML attribute selected on a diagram:

Right-click on attribute | View Properties

Keyboard Shortcuts

With a specific «XSDattribute» stereotyped UML attribute selected on a diagram:

F9

Other

Double-click on the «XSDattribute» stereotyped UML attribute, or

Drag icon from the Toolbox and drop it onto an «XSDcomplexType» or «XSDattributeGroup» stereotyped Class (this creates a new «XSDattribute» stereotyped UML attribute)

Define Properties

Field/Button

Action

See also

Name

If you do not want to use the default name of the local attribute, 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 button and browse for an existing XSDsimpleType element as a classifier
Simple Type

Reference

(Optional) Specify whether to use the ref attribute (instead of the type attribute) to refer to the 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.

Form

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

  • qualified - Use the Prefix defined in the Schema Package to qualify this attribute
  • unqualified - Do not qualify this attribute
Schema Package

Annotation

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

OK

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

Cancel

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

Help

Click on this button to display this Help topic.

UML

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

Click on the button to open the attribute properties for the local attribute.

Create and Manage Attributes

Notes

  • Only Complex Types and Attribute Groups can have this UML attribute

Learn more