Package org.adfemg.datacontrol.xml.handler

Examples of org.adfemg.datacontrol.xml.handler.HandlerRegistry


     */
    public XMLDCElement(final DataControl dc, final StructureDefinition structDef, final Element element) {
        this.dc = dc;
        this.structDef = structDef;
        this.element = element;
        this.handlers = new HandlerRegistry((StructureDef) structDef);

        // wrap attributes and accessors with their own class for lazy resolving
        for (Iterator iter = structDef.getAttributeDefinitions().iterator(); iter.hasNext();) {
            Object obj = iter.next();
            if (obj instanceof AttributeDef) {
View Full Code Here


     *        {@link Element#getChildNodes()} and put them on hte collection.
     */
    XMLDCCollection(final DataControl dc, final AccessorDefinition accessorDef, final Element parentElement) {
        this.dc = dc;
        this.accessorDef = accessorDef;
        this.handlers = new HandlerRegistry((StructureDef)accessorDef.getStructure());
        this.parentElement = parentElement;
        this.childElemNamespace = (String) accessorDef.getProperty(DataControlDefinition.ACCPROP_NAMESPACE);
        this.childElemName = (String) accessorDef.getProperty(DataControlDefinition.ACCPROP_NAME);

        List<Element> children = Utils.findChildElements(parentElement, childElemNamespace, childElemName);
View Full Code Here

                        throw new RuntimeException(e);
                    }
                    adopter.adjustStructure(structure, annotation, method);
                    Collection<? extends Handler> handlers = adopter.createHandlers(annotation, method, customization);
                    if (handlers != null && !handlers.isEmpty()) {
                        HandlerRegistry registryHelper = new HandlerRegistry(structure);
                        for (Handler handler : handlers) {
                            registryHelper.add(handler);
                        }
                    }
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.adfemg.datacontrol.xml.handler.HandlerRegistry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.