Merge "Test cases added for RequestError.java"
[aai/aai-common.git] / aai-schema / src / main / resources / onap / oxm / v14 / aai_pnp_oxm_v14.xml
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!--
3   ============LICENSE_START=======================================================
4   org.onap.aai
5   ================================================================================
6   Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
7   Copyright (C) 2018 Huawei Technologies (Australia) Pty Ltd. All rights reserved.
8   ================================================================================
9   Licensed under the Apache License, Version 2.0 (the "License");
10   you may not use this file except in compliance with the License.
11   You may obtain a copy of the License at
12   
13        http://www.apache.org/licenses/LICENSE-2.0
14   
15   Unless required by applicable law or agreed to in writing, software
16   distributed under the License is distributed on an "AS IS" BASIS,
17   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   See the License for the specific language governing permissions and
19   limitations under the License.
20   ============LICENSE_END=========================================================
21   -->
22
23 <xml-bindings xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/oxm" package-name="inventory.aai.onap.org.v14" xml-mapping-metadata-complete="true">
24         <xml-schema element-form-default="QUALIFIED">
25                 <xml-ns namespace-uri="http://org.onap.aai.inventory/v14" />
26         </xml-schema>
27         <java-types>
28                 <java-type name="Pnf">
29                         <xml-root-element name="pnf" />
30                         <java-attributes>
31                                 <xml-element java-attribute="pnfIpv4Address" name="pnf-ipv4-address" type="java.lang.String">
32                                         <xml-properties>
33                                                 <xml-property name="description" value="This is the IP address (IPv4) for the PNF itself. This is the IPv4 address that the PNF iself can be accessed at." />
34                                         </xml-properties>
35                                 </xml-element>
36                                 <xml-element java-attribute="pnfIpv6Address" name="pnf-ipv6-address" type="java.lang.String">
37                                         <xml-properties>
38                                                 <xml-property name="description" value="This is the IP address (IPv6) for the PNF itself. This is the IPv6 address that the PNF iself can be accessed at." />
39                                         </xml-properties>
40                                 </xml-element>
41                                 <xml-element java-attribute="softwareVersions" name="software-versions" type="inventory.aai.onap.org.v14.SoftwareVersions" />
42                         </java-attributes>
43                 </java-type>
44                 <java-type name="SoftwareVersions">
45                         <xml-properties>
46                                 <xml-property name="description" value="Collection of software versions." />
47                         </xml-properties>
48                         <xml-root-element name="software-versions" />
49                         <java-attributes>
50                                 <xml-element container-type="java.util.ArrayList" java-attribute="softwareVersion" name="software-version" type="inventory.aai.onap.org.v14.SoftwareVersion" />
51                         </java-attributes>
52                 </java-type>
53
54                 <java-type name="SoftwareVersion">
55                         <xml-root-element name="software-version" />
56                         <java-attributes>
57                                 <xml-element java-attribute="softwareVersionId" name="software-version-id" required="true" type="java.lang.String" xml-key="true">
58                                         <xml-properties>
59                                                 <xml-property name="description" value="Identifier of the software version" />
60                                         </xml-properties>
61                                 </xml-element>
62                                 <xml-element default-value="false" java-attribute="isActiveSwVer" name="is-active-sw-ver" required="true" type="java.lang.Boolean">
63                                         <xml-properties>
64                                                 <xml-property name="defaultValue" value="false"/>
65                                                 <xml-property name="description" value="used to indicate whether or not this software-version is the active one (activeSw = true)" />
66                                         </xml-properties>
67                                 </xml-element>
68                         </java-attributes>
69                         <xml-properties>
70                                 <xml-property name="description" value="Software Version" />
71                                 <xml-property name="indexedProps" value="softwareVersionId,isActiveSwVer" />
72                                 <xml-property name="dependentOn" value="pnf" />
73                                 <xml-property name="container" value="pnf" />
74                         </xml-properties>
75                 </java-type>
76         </java-types>
77 </xml-bindings>