XML Schema Mappings
The table below shows the one-to-one correspondence between:
•UModel elements and XML Schema elements, when outputting model to code
•XML Schema elements and UModel model elements, when inputting code into model
Legend:
XSD | UModel | ||||||||
---|---|---|---|---|---|---|---|---|---|
file path | projectfile | Component | |||||||
schema | target namespace | name | Package <<namespace>> | ||||||
attributeFormDefault | attributeFormDefault | Class <<schema>> | |||||||
blockDefault | blockDefault | ||||||||
elementFormDefault | elementFormDefault | ||||||||
finalDefault | finalDefault | ||||||||
version | version | ||||||||
xml:lang | xml:lang | ||||||||
xmlns | xmlns | ||||||||
annotation | source | source | |||||||
appinfo | Comment <<appinfo>> | ||||||||
documentation | xml:lang | xml:lang | Comment <<documentation>> | ||||||
attributeGroup | name | name | Class <<attributeGroup>> | ||||||
annotation | appinfo | Comment <<appinfo>> | |||||||
documentation | Comment <<documentation>> | ||||||||
attribute | name | name | Property <<attribute>> | ||||||
form | form | ||||||||
use | use | ||||||||
ref | type | ||||||||
type | |||||||||
default | default | ||||||||
fixed | fixed | ||||||||
attributeGroup | ref | type | Property <<attributeGroup>> | ||||||
anyAttribute | namespace | namespace | Property <<anyAttribute>> | ||||||
processContents | processContents | ||||||||
attribute | name | name | Class <<attribute>> | ||||||
form | form | ||||||||
use | use | ||||||||
type | type | Property | |||||||
default | default | ||||||||
fixed | fixed | ||||||||
annotation | appinfo | Comment <<appinfo>> | |||||||
documentation | Comment <<documentation>> | ||||||||
simpleType | name (= name of Class + "_anonymousType[n]") | DataType <<simpleType>> | |||||||
element | name | name | Class <<element>> | ||||||
abstract | abstract | ||||||||
block | block | ||||||||
final | final | ||||||||
form | form | ||||||||
nillable | nillable | ||||||||
type | type | Property | |||||||
default | default | ||||||||
fixed | fixed | ||||||||
substitutionGroup | general | Generalization <<substitution>> | |||||||
annotation | appinfo | Comment <<appinfo>> | |||||||
documentation | Comment <<documentation>> | ||||||||
simpleType | name (= name of Class + "_anonymousType[n]") | DataType <<simpleType>> | |||||||
complexType | name (= name of Class + "_anonymousType[n]") | Class <<complexType>> | |||||||
group | name | name | Class <<group>> | ||||||
annotation | appinfo | Comment <<appinfo>> | |||||||
documentation | Comment <<documentation>> | ||||||||
all | name (= "_all") | Property | |||||||
name (= "mg"_ + "all") | Class <<all>> | ||||||||
annotation | appinfo | Comment <<appinfo>> | |||||||
documentation | Comment <<documentation>> | ||||||||
element | name | name | Property <<element>> | ||||||
ref | type | ||||||||
type | |||||||||
choice | name (= "_choice") | Property | |||||||
name (= "mg"_ + "choice") | Class <<choice>> | ||||||||
annotation | appinfo | Comment <<appinfo>> | |||||||
documentation | Comment <<documentation>> | ||||||||
element | name | name | Property <<element>> | ||||||
ref | type | ||||||||
type | |||||||||
group | Property <<group>> | ||||||||
any | namespace | namespace | Property <<any>> | ||||||
processContents | processContents | ||||||||
choice | Property | ||||||||
Class <<choice>> | |||||||||
sequence | Property | ||||||||
Class <<sequence>> | |||||||||
sequence | name (= "_sequence") | Property | |||||||
name (= "mg"_ + "sequence") | Class <<sequence>> | ||||||||
annotation | appinfo | Comment <<appinfo>> | |||||||
documentation | Comment <<documentation>> | ||||||||
element | name | name | Property <<element>> | ||||||
ref | type | ||||||||
type | |||||||||
group | Property <<group>> | ||||||||
any | namespace | namespace | Property <<any>> | ||||||
processContents | processContents | ||||||||
choice | Property | ||||||||
Class <<choice>> | |||||||||
sequence | Property | ||||||||
Class <<sequence>> | |||||||||
notation | name | name | DataType <<notation>> | ||||||
system | system | ||||||||
public | public | ||||||||
annotation | appinfo | Comment <<appinfo>> | |||||||
documentation | Comment <<documentation>> | ||||||||
complexType | name | name | Class <<complexType>> | ||||||
abstract | abstract | ||||||||
block | block | ||||||||
final | final | ||||||||
mixed | mixed | ||||||||
annotation | source | source | |||||||
appinfo | Comment <<appinfo>> | ||||||||
documentation | xml:lang | xml:lang | Comment <<documentation>> | ||||||
group | name (= "_ref[n]") | Property <<group>> | |||||||
maxOccurs | multiplicity | ||||||||
minOccurs | |||||||||
ref | type | ||||||||
all | name (= "mg"_ + "all") | Class <<all>> | |||||||
name (= "_all") | Property | ||||||||
maxOccurs | multiplicity | ||||||||
minOccurs | |||||||||
choice | name (= "mg"_ + "choice[n]") | Class <<choice>> | |||||||
name (= "_choice[n]") | Property | ||||||||
maxOccurs | multiplicity | ||||||||
minOccurs | |||||||||
sequence | name (= "mg"_ + "sequence[n]") | Class <<sequence>> | |||||||
name (= "_sequence[n]") | Property | ||||||||
maxOccurs | multiplicity | ||||||||
minOccurs | |||||||||
attribute | name | name | Property <<attribute>> | ||||||
ref | type | ||||||||
type | |||||||||
attributeGroup | ref | type | Property <<attributeGroup>> | ||||||
anyAttribute | namespace | namespace | Property <<anyAttribute>> | ||||||
processContents | processContents | ||||||||
complexContent | restriction | base | general | Generalization <<restriction>> | |||||
extension | Generalization <<extension>> | ||||||||
simpleType | name | name | DataType <<simpleType>> Enumeration <<simpleType>> | ||||||
final | final | ||||||||
annotation | source | source | |||||||
appinfo | Comment <<appinfo>> | ||||||||
documentation | xml:lang | xml:lang | Comment <<documentation>> | ||||||
list | itemType | name (= "_itemType") | Property <<itemType>> | <<list>> | |||||
simpleType | DataType <<simpleType>> | ||||||||
union | memberTypes | name (= "memberType[n]") | Property <<memberType>> | <<union>> | |||||
simpleType | DataType <<simpleType>> | ||||||||
minExclusive | value | value | <<minExclusive>> | ||||||
fixed | fixed | ||||||||
minInclusive | value | value | <<minInclusive>> | ||||||
fixed | fixed | ||||||||
maxExclusive | value | value | <<maxExclusive>> | ||||||
fixed | fixed | ||||||||
maxInclusive | value | value | <<maxInclusive>> | ||||||
fixed | fixed | ||||||||
totalDigits | value | value | <<totalDigits>> | ||||||
fixed | fixed | ||||||||
fractionDigits | value | value | <<fractionDigits>> | ||||||
fixed | fixed | ||||||||
length | value | value | <<length>> | ||||||
fixed | fixed | ||||||||
minLength | value | value | <<minLength>> | ||||||
fixed | fixed | ||||||||
maxLength | value | value | <<maxLength>> | ||||||
fixed | fixed | ||||||||
whitespace | value | value | <<whitespace>> | ||||||
fixed | fixed | ||||||||
pattern | value | value | <<whitespace>> | ||||||
enumeration | value | name | EnumerationLiteral | ||||||
simpleType | DataType <<simpleType>> | ||||||||
restriction | base | general | Generalization <<restriction>> | ||||||
complexType simpleContent | name | name | DataType <<complexType>> <<simpleContent>> | ||||||
annotation | source | source | |||||||
appinfo | Comment <<appinfo>> | ||||||||
documentation | xml:lang | xml:lang | Comment <<documentation>> | ||||||
minExclusive | value | value | <<minExclusive>> | ||||||
fixed | fixed | ||||||||
minInclusive | value | value | <<minInclusive>> | ||||||
fixed | fixed | ||||||||
maxExclusive | value | value | <<maxExclusive>> | ||||||
fixed | fixed | ||||||||
maxInclusive | value | value | <<maxInclusive>> | ||||||
fixed | fixed | ||||||||
totalDigits | value | value | <<totalDigits>> | ||||||
fixed | fixed | ||||||||
fractionDigits | value | value | <<fractionDigits>> | ||||||
fixed | fixed | ||||||||
length | value | value | <<length>> | ||||||
fixed | fixed | ||||||||
minLength | value | value | <<minLength>> | ||||||
fixed | fixed | ||||||||
maxLength | value | value | <<maxLength>> | ||||||
fixed | fixed | ||||||||
whitespace | value | value | <<whitespace>> | ||||||
fixed | fixed | ||||||||
pattern | value | value | <<whitespace>> | ||||||
attribute | name | name | Property <<attribute>> | ||||||
ref | type | ||||||||
type | |||||||||
attributeGroup | ref | type | Property <<attributeGroup>> | ||||||
anyAttribute | namespace | namespace | Property <<anyAttribute>> | ||||||
processContents | processContents | ||||||||
simpleType | DataType <<simpleType>> | ||||||||
restriction | base | general | Generalization <<restriction>> | ||||||
extension | base | general | Generalization <<extension>> | ||||||
import | schemaLocation | schemaLocation | ElementImport <<import>> | ||||||
namespace | namespace | ||||||||
include | schemaLocation | schemaLocation | ElementImport <<include>> | ||||||
redefine | schemaLocation | schemaLocation | ElementImport <<redefine>> | ||||||
simpleType | <<redefine>> | DataType <<simpleType>> | |||||||
complexType | Class <<complexType>> | ||||||||
attributeGroup | Class <<attributeGroup>> | ||||||||
group | Class <<group>> |