blob: d012c8c356e383d44a1d628d75c8d29b9c439377 [file] [log] [blame]
<?xml version="1.0" encoding="US-ASCII"?>
<!--
Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0,
or the Eclipse Distribution License v. 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
-->
<xml-bindings xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/oxm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xml-schema namespace="http://www.example.com/employees" >
<xml-ns namespace-uri="http://www.example.com/contacts" prefix="c"/>
</xml-schema>
<java-types>
<java-type name="org.eclipse.persistence.testing.jaxb.externalizedmetadata.mappings.composite.Employee" xml-accessor-type="FIELD">
<xml-root-element name="employee" />
<java-attributes>
<xml-element java-attribute="foo" xml-path="." />
<xml-element java-attribute="homeAddress" xml-path="info/c:contact-info/home-address" />
<xml-element java-attribute="workAddress" xml-path="info/c:contact-info/work-address" />
<xml-element java-attribute="alternateAddress" xml-path="info/c:contact-info/alt-address" read-only="true" />
<xml-element java-attribute="phone1" xml-path="info/contact-info/phone[1]" />
<xml-element java-attribute="phone2" xml-path="info/contact-info/phone[2]" />
<xml-element java-attribute="privatePhone" name="private-phone" write-only="true" />
<xml-element java-attribute="department" xml-path=".">
<xml-access-methods get-method="getDepartment" set-method="setDepartment" />
</xml-element>
<xml-element java-attribute="aDept" name="a-dept">
<xml-access-methods get-method="getADept" set-method="setADept" />
<xml-null-policy xsi-nil-represents-null="false" empty-node-represents-null="false" null-representation-for-xml="EMPTY_NODE" is-set-performed-for-absent-node="true" />
</xml-element>
</java-attributes>
</java-type>
<java-type name="org.eclipse.persistence.testing.jaxb.externalizedmetadata.mappings.composite.Foo" xml-accessor-type="FIELD">
<java-attributes>
<xml-attribute java-attribute="foodata">
<!-- foodata will be write only -->
<xml-access-methods get-method="getFoodata" />
</xml-attribute>
</java-attributes>
</java-type>
</java-types>
</xml-bindings>