IBM®
跳转到主要内容
    中国 [选择]    使用条款
 
 
Select a scope: Search for:    
    首页    产品    服务与解决方案     支持与下载    个性化服务    
跳转到主要内容

developerWorks 中国  >  XML  >

Working XML: Wrapping up XM version 1

Managing a list of links and the table of contents

developerWorks

Return to article.


Listing 6. MoversSupervisor has two copies of StylingMover
        
public MoversSupervisor(Messenger messenger,
                        TemplatesManager templates,
                        boolean build)
   throws XMException
{
   try
   {
      movers = new HashMap();
      // eventually, there will be more options here
      movers.put("xml",new StylingMover(messenger,this,templates,build));
      XMLReader xmlReader = JAXPHelper.createXMLReader(true);
      XMLFilter filter = new WalkFilter(xmlReader,messenger);
      movers.put("xm", new StylingMover(messenger,this,templates,filter,build));
      copier = new CopyingMover(messenger,build);
   }
   catch(SAXException e)
   {
      throw new XMException(e);
   }
}
      

Return to article.

    关于 IBM 隐私条约 联系 IBM 使用条款