blob: 6ed3f1dc0d276d0746ac20fb006131bf3a6eb391 [file] [log] [blame]
/**
* Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf), Loetz GmbH&Co.KG (Heidelberg)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Florian Pirchner - Initial implementation
*/
partner root
partner.deliveryInfo root/deliveryInfo
partner.invoiceInfo root/invoiceInfo
partner.invoiceInfo.customer.address.country root/invoiceInfo/customer/address/country
Version 1:
UI
YText isocode view://bean/root#invoiceInfo.customer.address.country.isocode
...
..
30x
..
...
BeansObservable.observeDetail(root, "invoiceInfo.customer.address.country.isocode")
...
..
30x
...
...
Version 2:
UI
YText paymentTerm bindsTo = view://bean/root#invoiceInfo.customer.address.country.isocode
dbc.bind(ContextObservable.observe(view://bean/root#invoiceInfo), ContextObservable.observe(view://bean/root/invoiceInfo#value)
dbc.bind(ContextObservable.observe(view://bean/root/invoiceInfo#customer), ContextObservable.observe(view://bean/root/invoiceInfo/customer#value)
Transformation:
a = view://bean/root#invoiceInfo.customer.address.country.isocode
a' = view://bean/root/invoiceInfo/customer/address/country#isocode
mapping = URIMapper.addURI(a)
a' = mapping.getPathedURI()
a = mapping.getFragmentedURI()
URIMapper.getMappings()
URIMapper.activate()
view://bean/root/invoiceInfo/customer/address/country#isocode
view://bean/root/invoiceInfo/customer/address#country
view://bean/root/invoiceInfo/customer#address
view://bean/root/invoiceInfo#customer
view://bean/root#invoiceInfo
view://bean/root
URIMapper.deactivate()