org.milyn.javabean.ext
Class SelectorPropertyResolver
java.lang.Object
org.milyn.javabean.ext.SelectorPropertyResolver
- All Implemented Interfaces:
- org.milyn.delivery.ContentHandler, org.milyn.delivery.dom.DOMVisitBefore, org.milyn.delivery.dom.DOMVisitor, org.milyn.delivery.Visitor
public class SelectorPropertyResolver
- extends Object
- implements org.milyn.delivery.dom.DOMVisitBefore
Selector Property Resolver.
Some binding selectors can be of the form "order/customer/@customerNumber", where the
last token in the selector represents an attribute on the customer element (for example). This
extension visitor translates this type of selector into "order/customer" plus a new property
on the BeanInstancePopulator config named "valueAttributeName" containing a value of
"customerNumber".
- Author:
- tom.fennelly@gmail.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectorPropertyResolver
public SelectorPropertyResolver()
visitBefore
public void visitBefore(Element element,
org.milyn.container.ExecutionContext executionContext)
throws org.milyn.SmooksException
- Specified by:
visitBefore in interface org.milyn.delivery.dom.DOMVisitBefore
- Throws:
org.milyn.SmooksException
resolveSelectorTokens
public static void resolveSelectorTokens(org.milyn.cdr.SmooksResourceConfiguration populatorConfig)
getSelectorProperty
public static String getSelectorProperty(String[] selectorTokens)
Copyright © 2018. All rights reserved.