kettle

阅读更多
	private static void getSubDir(RepositoryDirectoryInterface rootDir,List dataList)
	{
		Map map=new HashMap();
		map.put("id", rootDir.getName());
		map.put("text", rootDir.getPath());
		if(rootDir.getParent()!=null)
		{
			map.put("parentid", rootDir.getParent());
		}
		dataList.add(map);	
		if(rootDir.getNrSubdirectories()>0)
		{
			 Iterator it=rootDir.getChildren().iterator();
		     while(it.hasNext()){
		      getSubDir(it.next(),dataList);
		     }
		}
		
	}

 

System.out.println(element.getName());
        	System.out.println(element.getObjectType());
        	System.out.println(element.getObjectId());
        	System.out.println(element.getModifiedUser());
        	System.out.println(element.getModifiedDate());

 

博客地址:

http://www.cnblogs.com/wukenaihe/

你可能感兴趣的:(pentaho,kettle)