UML construct
|
Package; component
|
---|---|
Description
|
All classes in a package or component are defined in one schema. This stereotype can be used to specify schema-wide settings.
|
|
|
Tagged Values
|
|
anonymousRole:
(true | false)
|
Specifies if the role name is included in the element declaration for the UML attribute.
|
anonymousType:
(true | false)
|
Specifies whether the class type is anonymous for attributes.
|
attributeFormDefault:
( qualified | unqualified )
|
Determines whether attribute instances must be qualified
|
xmlns:
|
The default namespace used in this schema. This value is used to specify the default namespace attribute (xmlns=), in the schema element.
|
elementDerivation:
( true | false )
|
Determines whether inheritances are generated using XSD extension or copy-down inheritance.
|
elementFormDefault:
( qualified | unqualified )
|
Determines whether element instances must be qualified.
|
memberNames:
( qualified | unqualified )
|
Determines whether elements generated from Class attributes have their name qualified by the corresponding class name.
|
modelGroup:
( all | sequence | choice )
|
Specifies the default XSD model used to generate complexType definitions.
|
schemaLoc:
|
The URI which identifies the location of the schema.
|
targetNamespace:
|
The URI which uniquely identifies this schema’s namespace.
|
schemaNamespPrefix:
|
The prefix which abbreviates the targetNamespace.
|
version:
|
The version of this schema.
|
encoding
|
Schema encoding.
|
blockDefault
|
Specifies the default value of the block attribute on element and complexType elements in the target namespace.
|
finalDefault
|
Specifies the default value of the final attribute on element, simpleType, and complexType elements in the target namespace.
|
UML construct
|
Class
|
---|---|
Description
|
complexType definitions are created for generic UML classes. This stereotypes helps tailor the generation of a complexType definition.
|
Tagged Values
|
|
memberNames:
( qualified | unqualified )
|
Determines whether elements generated from the UML class attributes and associations have their name qualified by the corresponding class name for this complexType definition.
|
mixed:
( true | false )
|
Determines whether this element can contain mixed element and character content. Refer to the W3C XML Schema recommendation.
|
modelGroup:
( all | sequence | choice )
|
Overrides the default XSD model for generating this complexType definition.
|
maxOccurs
|
Specifies the maximum number of times the group element can occur in the parent element. The value can be any number >= 0, or if you want to set no limit on the maximum number, use the value "unbounded". Default value is 1.
|
minOccurs
|
Specifies the minimum number of times the group element can occur in the parent element. The value can be any number >= 0. Default value is 1.
|
UML Construct
|
Class
|
---|---|
Description
|
A Class definition will be created with a "Stereotype" of "XSDsimpleType".
|
|
|
Tagged values
|
|
derivation:
|
Specifies the derivation of the simpleType. Refer to the W3C XML Schema recommendation.
|
length:
|
Refer to the W3C XML Schema recommendation.
|
minLength:
|
Refer to the W3C XML Schema recommendation.
|
maxLength:
|
Refer to the W3C XML Schema recommendation.
|
pattern:
|
Refer to the W3C XML Schema recommendation.
|
|
|
Constraints
|
This class can only participate in an inheritance relation with another simpleType. It cannot have any attributes or own any associations. They will be ignored if present.
|
|
Most property names are attribute and restriction names. If we encounter the "extension" or "restriction" restrictions, we will create "Is Subclass" definitions and base classes defined by the "base" attribute, and draw the lines between the simple type class and the base class. The "Is Subclass" "Stereotype" property will be set to either XSDrestriction or XSDextension.
|
UML construct
|
Class
|
---|---|
Description
|
If applied to a UML attribute, an XSD anyAttribute element is generated. If applied to a UML class, an XSD any element is generated.
|
|
|
Tagged Values
|
|
namespace:
|
Refer to the W3C XML Schema recommendation.
|
processContents:
( skip | lax | strict )
|
Refer to the W3C XML Schema recommendation.
|
|
|
Constraints
|
None.
|
UML Construct
|
Class
|
---|---|
Description
|
The schema generator creates a sequence model group as the container for the attributes and associations owned by this class. The model group is in turn added to the model groups of this class’ respective owners.
|
Tagged values specified by owners of this class persist through to the child elements of this model group. Thus if memberNames are unqualified for a complexType, so will be the children of this model group when added to that complexType.
|
|
|
Tagged values
|
None.
|
|
|
Constraints
|
This class must be the destination of unidirectional associations. If it is not, this class and its connectors are ignored, possibly invalidating other model group classes. Inheritance relations are ignored for this class.
|
|
UML construct
|
Attribute; AssociationEnd
|
---|---|
Description
|
By applying this stereotype to a UML class attribute or AssociationEnd, the corresponding UML entity is generated as an element in the parent complexType and not as an XSD attribute.
|
|
|
Tagged Values
|
|
form:
(qualified | unqualified)
|
Overrides the schema’s elementFormDefault value.
|
position:
|
Causes the elements to be ordered in a sequence model group of the containing complexType. Duplicated and invalid position tagged values are ignored and result in undefined ordering of the UML attributes. Missing position values cause the defined positions to be allocated as specified, with the remaining elements filling the missing positions in an undefined order.
|
anonymousRole:
( true | false )
|
Specifies if the role name is included in the element declaration for the UML attribute.
|
anonymousType:
( true | false )
|
Specifies whether the class type is anonymous for attributes.
|
|
|
Constraints
|
None.
|
UML construct
|
Attribute; associationend
|
---|---|
Description
|
By applying this stereotype to a UML class attribute or AssociationEnd, the corresponding UML entity is generated as an XSD attribute in the parent complexType and not as an XSD element.
|
|
|
Tagged Values
|
|
form:
( qualified | unqualified )
|
Overrides the schema’s attributeFormDefault value.
|
use:
( prohibited | optional | required )
|
Refer to the W3C XML Schema recommendation.
|
default:
|
Refer to the W3C XML Schema recommendation.
|
fixed:
|
Refer to the W3C XML Schema recommendation.
|
|
|
Constraints
|
The attribute datatype should not refer to a class specification, it will be ignored otherwise.
|