WhiteSpaceRule

Fully qualified enumeration name: DDICDIModels::DDICDILibrary::DataTypes::Enumerations::WhiteSpaceRule

Definition

WhiteSpace constrains the value space of types derived from string.

Diagram

Enumeration literals

Name

Description

Collapse

After the processing implied by the replace, contiguous sequences of Unicode hexadecimal #x20’s are collapsed to a single #x20, and any #x20 at the start or end of the string is then removed.

Preserve

No normalization is done, the value is not changed (this is the behavior required by XML for element content).

Replace

All occurrences of Unicode hexadecimal #x9 (tab), #xA (line feed) and #xD (carriage return) are replaced with #x20 (space).

Usage

Type

Package

Classifier

Attribute

Class

DataDescription

InstanceValue

whiteSpace

Class

DataDescription

Notation

whiteSpace

Class

SignificationPattern

Signifier

whiteSpace

Syntax representations / encodings

All syntax representations except the Canonical XMI are provided as reference points for specific implementations, or for use as defaults if sufficient in the form presented.

Fragment for the enumeration WhiteSpaceRule

 1<packagedElement xmlns:StandardProfile="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard"
 2                 xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML"
 3                 xmlns:xmi="http://www.omg.org/spec/XMI/20131001"
 4                 xmi:id="DDICDIModels-DDICDILibrary-DataTypes-Enumerations-WhiteSpaceRule"
 5                 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#WhiteSpaceRule"
 6                 xmi:type="uml:Enumeration">
 7   <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-Enumerations-WhiteSpaceRule-ownedComment"
 8                 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#WhiteSpaceRule-ownedComment"
 9                 xmi:type="uml:Comment">
10      <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-Enumerations-WhiteSpaceRule"/>
11      <body>Definition
12============
13WhiteSpace constrains the value space of types derived from string.</body>
14   </ownedComment>
15   <name>WhiteSpaceRule</name>
16   <ownedLiteral xmi:id="DDICDIModels-DDICDILibrary-DataTypes-Enumerations-WhiteSpaceRule-Collapse"
17                 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Collapse"
18                 xmi:type="uml:EnumerationLiteral">
19      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-Enumerations-WhiteSpaceRule-Collapse-ownedComment"
20                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Collapse-ownedComment"
21                    xmi:type="uml:Comment">
22         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-Enumerations-WhiteSpaceRule-Collapse"/>
23         <body>After the processing implied by the replace, contiguous sequences of Unicode hexadecimal #x20's are collapsed to a single #x20, and any #x20 at the start or end of the string is then removed.</body>
24      </ownedComment>
25      <name>Collapse</name>
26   </ownedLiteral>
27   <ownedLiteral xmi:id="DDICDIModels-DDICDILibrary-DataTypes-Enumerations-WhiteSpaceRule-Preserve"
28                 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Preserve"
29                 xmi:type="uml:EnumerationLiteral">
30      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-Enumerations-WhiteSpaceRule-Preserve-ownedComment"
31                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Preserve-ownedComment"
32                    xmi:type="uml:Comment">
33         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-Enumerations-WhiteSpaceRule-Preserve"/>
34         <body>No normalization is done, the value is not changed (this is the behavior required by XML for element content).</body>
35      </ownedComment>
36      <name>Preserve</name>
37   </ownedLiteral>
38   <ownedLiteral xmi:id="DDICDIModels-DDICDILibrary-DataTypes-Enumerations-WhiteSpaceRule-Replace"
39                 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Replace"
40                 xmi:type="uml:EnumerationLiteral">
41      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-Enumerations-WhiteSpaceRule-Replace-ownedComment"
42                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Replace-ownedComment"
43                    xmi:type="uml:Comment">
44         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-Enumerations-WhiteSpaceRule-Replace"/>
45         <body>All occurrences of Unicode hexadecimal #x9 (tab), #xA (line feed) and #xD (carriage return) are replaced with #x20 (space).</body>
46      </ownedComment>
47      <name>Replace</name>
48   </ownedLiteral>
49</packagedElement>

Fragment for the enumeration WhiteSpaceRule

 1<xs:simpleType name="WhiteSpaceRuleXsdType"
 2               xml:id="WhiteSpaceRuleXsdType">
 3  <!-- based on the UML enumeration DDICDIModels::DDICDILibrary::DataTypes::Enumerations::WhiteSpaceRule -->
 4  <xs:annotation>
 5    <xs:documentation>Definition
 6          ============
 7          WhiteSpace constrains the value space of types derived from string.</xs:documentation>
 8  </xs:annotation>
 9  <xs:restriction base="xs:NMTOKEN">
10    <xs:enumeration value="Collapse">
11      <xs:annotation>
12        <xs:documentation>After the processing implied by the replace, contiguous sequences of Unicode hexadecimal #x20's are collapsed to a single #x20, and any #x20 at the start or end of the string is then removed.</xs:documentation>
13      </xs:annotation>
14    </xs:enumeration>
15    <xs:enumeration value="Preserve">
16      <xs:annotation>
17        <xs:documentation>No normalization is done, the value is not changed (this is the behavior required by XML for element content).</xs:documentation>
18      </xs:annotation>
19    </xs:enumeration>
20    <xs:enumeration value="Replace">
21      <xs:annotation>
22        <xs:documentation>All occurrences of Unicode hexadecimal #x9 (tab), #xA (line feed) and #xD (carriage return) are replaced with #x20 (space).</xs:documentation>
23      </xs:annotation>
24    </xs:enumeration>
25  </xs:restriction>
26</xs:simpleType>

Fragment for the enumeration WhiteSpaceRule (main ontology, entire ontology as zip)

 1# enumeration WhiteSpaceRule
 2# based on the UML enumeration DDICDIModels::DDICDILibrary::DataTypes::Enumerations::WhiteSpaceRule
 3cdi:WhiteSpaceRule
 4  a rdfs:Class, owl:Class, ucmis:Enumeration;
 5  rdfs:label "WhiteSpaceRule";
 6  rdfs:comment "Definition\n============\nWhiteSpace constrains the value space of types derived from string."@en;
 7  
 8.
 9
10cdi:Collapse
11  a cdi:WhiteSpaceRule;
12  rdfs:label "Collapse";
13  rdfs:comment "After the processing implied by the replace, contiguous sequences of Unicode hexadecimal #x20's are collapsed to a single #x20, and any #x20 at the start or end of the string is then removed."@en;
14.
15
16cdi:Preserve
17  a cdi:WhiteSpaceRule;
18  rdfs:label "Preserve";
19  rdfs:comment "No normalization is done, the value is not changed (this is the behavior required by XML for element content)."@en;
20.
21
22cdi:Replace
23  a cdi:WhiteSpaceRule;
24  rdfs:label "Replace";
25  rdfs:comment "All occurrences of Unicode hexadecimal #x9 (tab), #xA (line feed) and #xD (carriage return) are replaced with #x20 (space)."@en;
26.