1 14 15 package com.sun.facelets.compiler; 16 17 import java.util.HashMap ; 18 import java.util.Map ; 19 20 import com.sun.facelets.FaceletHandler; 21 import com.sun.facelets.tag.TagLibrary; 22 23 28 final class NamespaceUnit extends CompilationUnit { 29 30 private final Map ns = new HashMap (); 31 private final TagLibrary library; 32 33 public NamespaceUnit(TagLibrary library) { 34 this.library = library; 35 } 36 37 public FaceletHandler createFaceletHandler() { 38 FaceletHandler next = this.getNextFaceletHandler(); 39 return new NamespaceHandler(next, this.library, this.ns); 40 } 41 42 public void setNamespace(String prefix, String uri) { 43 this.ns.put(prefix, uri); 44 } 45 46 } 47 | Popular Tags |