org.milyn.javabean.ext
Class SelectorPropertyResolver
java.lang.Object
org.milyn.javabean.ext.SelectorPropertyResolver
- All Implemented Interfaces:
- ContentHandler, DOMVisitBefore, DOMVisitor, Visitor
public class SelectorPropertyResolver
- extends Object
- implements 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,
ExecutionContext executionContext)
throws SmooksException
- Specified by:
visitBefore in interface DOMVisitBefore
- Throws:
SmooksException
resolveSelectorTokens
public static void resolveSelectorTokens(SmooksResourceConfiguration populatorConfig)
getSelectorProperty
public static String getSelectorProperty(String[] selectorTokens)
Copyright © 2010. All Rights Reserved.