Package com.dtrules.automapping.access

Examples of com.dtrules.automapping.access.IAttribute


      try {
      MapType       mapType   = MapType.get(subtype);
      MapNodeObject parent    = (MapNodeObject) getParent();
      Label         labelObj  = parent.getSourceLabel();
     
      IAttribute a = labelObj.getAttribute(listname);
   
      if(a == null){
          a = JavaAttribute.newAttribute(
              labelObj,
              listname,
              null,
              null,
              Class.forName(subtype),
              MapType.get("list"),
              "list",
              mapType,
              subtype
              );
         
          labelObj.getAttributes().add(a);
      }
     
      MapNodeList mnl = new MapNodeList(a, parent);
     
      if(mapType.isPrimitive()){
          mnl.setSubType(a.getSubTypeText());
          mnl.setList((List<Object>)list);
      }else {
          mnl.setSubType(a.getSubTypeText());
          mnl.setList((List<Object>)list);
          if( list!=null ) for(Object obj2 : ((List)list)){
              loadObjects(mnl, currentGroup,(String) null, obj2);
          }
      }
View Full Code Here


      try {
      MapType       mapType   = MapType.get(subtype);
      MapNodeObject parent    = (MapNodeObject) getParent();
      Label         labelObj  = parent.getSourceLabel();
     
      IAttribute a = labelObj.getAttribute(listname);
   
      if(a == null){
          a = JavaAttribute.newAttribute(
              labelObj,
              listname,
              null,
              null,
              Class.forName(subtype),
              MapType.get("list"),
              "list",
              mapType,
              subtype
              );
         
          labelObj.getAttributes().add(a);
      }
     
      MapNodeList mnl = new MapNodeList(a, parent);
     
      if(mapType.isPrimitive()){
          mnl.setSubType(a.getSubTypeText());
          mnl.setList(list);
      }else {
          mnl.setSubType(a.getSubTypeText());
          mnl.setList(list);
          if( list!=null ) for(Object obj2 : list){
              loadObjects(mnl, currentGroup,(String) null, obj2);
          }
      }
View Full Code Here

     */
    public IAttribute findAttribute(String attributeName){
        this.sourceLabel.getAttributes();
        for(IMapNode node : getChildren()){
            if(node instanceof MapNodeAttribute){
                IAttribute ret = ((MapNodeAttribute)node).getAttribute();
                if(ret.getName().equals(attributeName)){
                    return ret;
                }
            }
        }
        return null;
View Full Code Here

TOP

Related Classes of com.dtrules.automapping.access.IAttribute

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.