Move the aai-schema, annotations and
[aai/schema-service.git] / aai-schema-gen / src / test / resources / oxm / common_oxm_v13.xml
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!--
3   ============LICENSE_START=======================================================
4   org.openecomp.aai
5   ================================================================================
6   Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
7   ================================================================================
8   Licensed under the Apache License, Version 2.0 (the "License");
9   you may not use this file except in compliance with the License.
10   You may obtain a copy of the License at
11   
12        http://www.apache.org/licenses/LICENSE-2.0
13   
14   Unless required by applicable law or agreed to in writing, software
15   distributed under the License is distributed on an "AS IS" BASIS,
16   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   See the License for the specific language governing permissions and
18   limitations under the License.
19   ============LICENSE_END=========================================================
20   -->
21
22 <xml-bindings xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/oxm" package-name="inventory.aai.onap.org.v13" xml-mapping-metadata-complete="true">
23         <xml-schema element-form-default="QUALIFIED">
24                 <xml-ns namespace-uri="http://org.onap.aai.inventory/v13" />
25         </xml-schema>
26         <java-types>
27                 <java-type name="RelationshipList">
28                         <xml-root-element name="relationship-list" />
29                         <java-attributes>
30                                 <xml-element container-type="java.util.ArrayList" java-attribute="relationship" name="relationship" type="inventory.aai.onap.org.v13.Relationship" />
31                         </java-attributes>
32                 </java-type>
33                 <java-type name="Relationship">
34                         <xml-root-element name="relationship" />
35                         <java-attributes>
36                                 <xml-element java-attribute="relatedTo" name="related-to" type="java.lang.String">
37                                         <xml-properties>
38                                                 <xml-property name="description" value="A keyword provided by A&amp;AI to indicate type of node." />
39                                         </xml-properties>
40                                 </xml-element>
41                                 <xml-element java-attribute="relationshipLabel" name="relationship-label" type="java.lang.String">
42                                         <xml-properties>
43                                                 <xml-property name="description" value="The edge label for this relationship." />
44                                         </xml-properties>
45                                 </xml-element>
46                                 <xml-element java-attribute="relatedLink" name="related-link" type="java.lang.String">
47                                         <xml-properties>
48                                                 <xml-property name="description" value="URL to the object in A&amp;AI." />
49                                         </xml-properties>
50                                 </xml-element>
51                                 <xml-element container-type="java.util.ArrayList" java-attribute="relationshipData" name="relationship-data" type="inventory.aai.onap.org.v13.RelationshipData" />
52                                 <xml-element container-type="java.util.ArrayList" java-attribute="relatedToProperty" name="related-to-property" type="inventory.aai.onap.org.v13.RelatedToProperty" />
53                         </java-attributes>
54                 </java-type>
55                 <java-type name="RelatedToProperty">
56                         <xml-root-element name="related-to-property" />
57                         <java-attributes>
58                                 <xml-element java-attribute="propertyKey" name="property-key" type="java.lang.String">
59                                         <xml-properties>
60                                                 <xml-property name="description" value="Key part of a key/value pair" />
61                                         </xml-properties>
62                                 </xml-element>
63                                 <xml-element java-attribute="propertyValue" name="property-value" type="java.lang.String">
64                                         <xml-properties>
65                                                 <xml-property name="description" value="Value part of a key/value pair" />
66                                         </xml-properties>
67                                 </xml-element>
68                         </java-attributes>
69                 </java-type>
70                 <java-type name="RelationshipData">
71                         <xml-root-element name="relationship-data" />
72                         <java-attributes>
73                                 <xml-element java-attribute="relationshipKey" name="relationship-key" required="true" type="java.lang.String">
74                                         <xml-properties>
75                                                 <xml-property name="description" value="A keyword provided by A&amp;AI to indicate an attribute." />
76                                         </xml-properties>
77                                 </xml-element>
78                                 <xml-element java-attribute="relationshipValue" name="relationship-value" required="true" type="java.lang.String">
79                                         <xml-properties>
80                                                 <xml-property name="description" value="Value of the attribute." />
81                                         </xml-properties>
82                                 </xml-element>
83                         </java-attributes>
84                 </java-type>
85                 <java-type name="Metadata">
86                         <xml-properties>
87                                 <xml-property name="description" value="Collection of metadatum (key/value pairs)" />
88                         </xml-properties>
89                         <xml-root-element name="metadata" />
90                         <java-attributes>
91                                 <xml-element container-type="java.util.ArrayList" java-attribute="metadatum" name="metadatum" type="inventory.aai.onap.org.v13.Metadatum" />
92                         </java-attributes>
93                 </java-type>
94                 <java-type name="Metadatum">
95                         <xml-root-element name="metadatum" />
96                         <java-attributes>
97                                 <xml-element java-attribute="metaname" name="metaname" required="true" type="java.lang.String" xml-key="true" />
98                                 <xml-element java-attribute="metaval" name="metaval" required="true" type="java.lang.String" />
99                                 <xml-element java-attribute="resourceVersion" name="resource-version" type="java.lang.String">
100                                         <xml-properties>
101                                                 <xml-property name="description" value="Used for optimistic concurrency.  Must be empty on create, valid on update and delete." />
102                                         </xml-properties>
103                                 </xml-element>
104                         </java-attributes>
105                         <xml-properties>
106                                 <xml-property name="description" value="Key/value pairs" />
107                                 <xml-property name="indexedProps" value="metaname" />
108                                 <xml-property name="dependentOn" value="tenant,image,service-instance,connector,model" />
109                                 <xml-property name="container" value="metadata" />
110                         </xml-properties>
111                 </java-type>
112                         <java-type name="Collections">
113                         <xml-root-element name="collections" />
114                         <java-attributes>
115                                 <xml-element container-type="java.util.ArrayList" java-attribute="collection" name="collection" type="inventory.aai.onap.org.v13.Collection" />
116                         </java-attributes>
117                 </java-type>
118                 <java-type name="Collection">
119                         <xml-root-element name="collection"/>
120                         <java-attributes>
121                                 <xml-element java-attribute="collectionId" name="collection-id" required="true" type="java.lang.String" xml-key="true">
122                                         <xml-properties>
123                                                 <xml-property name="description" value="Collection Object UUID"/>
124                                         </xml-properties>
125                                 </xml-element>
126                                 <xml-element java-attribute="modelInvariantId" name="model-invariant-id" type="java.lang.String">
127                                         <xml-properties>
128                                                 <xml-property name="description" value="ASDC model id for this resource or service model" />
129                                                 <xml-property name="visibility" value="deployment" />
130                                                 <xml-property name="requires" value="model-version-id" />
131                                                 <xml-property name="dbAlias" value="model-invariant-id-local" />
132                                         </xml-properties>
133                                 </xml-element>
134                                 <xml-element java-attribute="modelVersionId" name="model-version-id" type="java.lang.String">
135                                         <xml-properties>
136                                                 <xml-property name="description" value="Model Version" />
137                                                 <xml-property name="visibility" value="deployment" />
138                                                 <xml-property name="requires" value="model-invariant-id" />
139                                                 <xml-property name="dbAlias" value="model-version-id-local" />
140                                         </xml-properties>
141                                 </xml-element>
142                                 <xml-element java-attribute="collectionName" name="collection-name" type="java.lang.String">
143                                         <xml-properties>
144                                                 <xml-property name="description" value="collection name" />
145                                         </xml-properties>
146                                 </xml-element>
147                                 <xml-element java-attribute="collectionType" name="collection-type" type="java.lang.String">
148                                         <xml-properties>
149                                                 <xml-property name="description" value="Collection type" />
150                                         </xml-properties>
151                                 </xml-element>
152                                 <xml-element java-attribute="collectionRole" name="collection-role" type="java.lang.String">
153                                         <xml-properties>
154                                                 <xml-property name="description" value="Collection Role" />
155                                         </xml-properties>
156                                 </xml-element>
157                                 <xml-element java-attribute="collectionFunction" name="collection-function" type="java.lang.String">
158                                         <xml-properties>
159                                                 <xml-property name="description" value="Collection function" />
160                                         </xml-properties>
161                                 </xml-element>
162                                 <xml-element java-attribute="orchestrationStatus" name="orchestration-status" type="java.lang.String">
163                                         <xml-properties>
164                                                 <xml-property name="description" value="orchestration status" />
165                                         </xml-properties>
166                                 </xml-element>
167                                 <xml-element java-attribute="collectionCustomizationId" name="collection-customization-id" type="java.lang.String">
168                                         <xml-properties>
169                                                 <xml-property name="description" value="Captures the id of all the configuration used to customize the resource for the service" />
170                                         </xml-properties>
171                                 </xml-element>
172                                 <xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v13.RelationshipList"/>
173                                 <xml-element java-attribute="resourceVersion" name="resource-version" type="java.lang.String">
174                                         <xml-properties>
175                                                 <xml-property name="description" value="Used for optimistic concurrency. Must be empty on create, valid on update and delete." />
176                                         </xml-properties>
177                                 </xml-element>
178                         </java-attributes>
179                         <xml-properties>
180                                 <xml-property name="namespace" value="network" />
181                                 <xml-property name="description" value="represents the collection resource in the TOSCA model" />
182                                 <xml-property name="uniqueProps" value="collection-id" />
183                                 <xml-property name="indexedProps" value="collection-id,model-invariant-id,model-version-id" />
184                                 <xml-property name="container" value="collections" />
185                         </xml-properties>
186                 </java-type>
187         </java-types>
188 </xml-bindings>