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

attribute_icon

Access     Drag icon onto «XSDcomplexType» or «XSDattributeGroup» stereotyped Class, or
Project Browser | Double-click on «XSDattribute» stereotyped attribute, or
Diagram | Highlight element | Highlight «XSDattribute» 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 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 browse ( ( ... ) ) 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 UML attribute Properties dialog for the local attribute.

 

General Properties of Attributes

Notes

Only Complex Types and Attribute Groups can have this UML attribute

Learn more