Package org.milyn.edisax.model.internal

Examples of org.milyn.edisax.model.internal.MappingNode


    private static void removeDuplicateMappingNodes(List mappingNodes, String nodeName) {
        int tagIndex = 1;

        for(Object mappingNodeObj : mappingNodes) {
            MappingNode mappingNode = (MappingNode) mappingNodeObj;
            String xmlTag = mappingNode.getXmltag();

            if(xmlTag != null && xmlTag.equals(nodeName)) {
                mappingNode.setXmltag(xmlTag + MappingNode.INDEXED_NODE_SEPARATOR + tagIndex);
                tagIndex++;
            }
        }
    }
View Full Code Here


    private JClass getCommonType(MappingNode mappingNode, String nodeTypeRef, Map<MappingNode, JClass> typeSet) {
        Set<Map.Entry<MappingNode, JClass>> commonTypes = typeSet.entrySet();

        for(Map.Entry<MappingNode, JClass> typeEntry : commonTypes) {
            MappingNode entryMappingNode = typeEntry.getKey();
            String entryNodeTypeRef = entryMappingNode.getNodeTypeRef();

            if(entryMappingNode instanceof Segment) {
                if(nodeTypeRef.equals(((Segment)entryMappingNode).getSegcode())) {
                    return typeEntry.getValue();
                }
            } else if(entryNodeTypeRef != null && entryMappingNode.getClass() == mappingNode.getClass()) {
                // Must be the same node type exactly...
                if(nodeTypeRef.equals(entryNodeTypeRef)) {
                    return typeEntry.getValue();
                }
            }
View Full Code Here

TOP

Related Classes of org.milyn.edisax.model.internal.MappingNode

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.