Package com.dtrules.automapping.nodes

Examples of com.dtrules.automapping.nodes.IMapNode


      if(start == null) {        // DataMap until we find the starting point.
        searching = true;      // (a null node means start at the start).
      }                // Then we return the first match after that.
   
      for (IMapNode node : dataMap){
        IMapNode result = find(node, start, searching, name);
        if(result != null ){
          if(result == start){
            searching = true;
          }else{
              return result;
View Full Code Here


            searching = true;
          }
        }
      }
      for (IMapNode child : node.getChildren()){
        IMapNode result = find(child,start,searching,name);
        if(result != null ){
          if(result == start){
            searching = true;
          }else{
              return result;
View Full Code Here

     */
    public void pushLabel(String label, Object key){
        Label labelObj = Label.newLabel(currentGroup,label,label,label+"Id",null);
        MapNodeObject mno = new MapNodeObject(currentGroup, labelObj, getParent());
        mno.setKey(key);
        IMapNode parent = getParent();
        if(parent == null){
            dataMap.add(mno);
        }
        mapNodeStack.push(mno);
    }
View Full Code Here

     * @param type          The attribute type;  Needed for producing a valid dataload file.
     * @param attributeName The attribute name.
     * @param value         The value for the attribute.
     */
    public void setValue(String attributeName, String type, Object value){
        IMapNode          parent    = getParent();
        if(parent == null || !(parent instanceof MapNodeObject)){
            throw new RuntimeException("Attributes must have Objects to hold them");
        }
        String            labelname = ((MapNodeObject)parent).getLabel();
        new MapNodeAttribute(parent,labelname,type,attributeName,value);
View Full Code Here

      if(start == null) {        // DataMap until we find the starting point.
        searching = true;      // (a null node means start at the start).
      }                // Then we return the first match after that.
   
      for (IMapNode node : dataMap){
        IMapNode result = find(node, start, searching, name);
        if(result != null ){
          if(result == start){
            searching = true;
          }else{
              return result;
View Full Code Here

            searching = true;
          }
        }
      }
      for (IMapNode child : node.getChildren()){
        IMapNode result = find(child,start,searching,name);
        if(result != null ){
          if(result == start){
            searching = true;
          }else{
              return result;
View Full Code Here

     */
    public void pushLabel(String label, Object key){
        Label labelObj = Label.newLabel(currentGroup,label,label,label+"Id",null);
        MapNodeObject mno = new MapNodeObject(currentGroup, labelObj, getParent());
        mno.setKey(key);
        IMapNode parent = getParent();
        if(parent == null){
            dataMap.add(mno);
        }
        mapNodeStack.push(mno);
    }
View Full Code Here

     * @param type          The attribute type;  Needed for producing a valid dataload file.
     * @param attributeName The attribute name.
     * @param value         The value for the attribute.
     */
    public void setValue(String attributeName, String type, Object value){
        IMapNode          parent    = getParent();
        if(parent == null || !(parent instanceof MapNodeObject)){
            throw new RuntimeException("Attributes must have Objects to hold them");
        }
        String            labelname = ((MapNodeObject)parent).getLabel();
        new MapNodeAttribute(parent,labelname,type,attributeName,value);
View Full Code Here

TOP

Related Classes of com.dtrules.automapping.nodes.IMapNode

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.