1 14 15 package com.sun.facelets.compiler; 16 17 import com.sun.facelets.FaceletHandler; 18 import com.sun.facelets.tag.Tag; 19 import com.sun.facelets.tag.TagConfig; 20 import com.sun.facelets.tag.TagLibrary; 21 22 27 class TagUnit extends CompilationUnit implements TagConfig { 28 29 private final TagLibrary library; 30 31 private final String id; 32 33 private final Tag tag; 34 35 private final String namespace; 36 37 private final String name; 38 39 public TagUnit(TagLibrary library, String namespace, String name, Tag tag, String id) { 40 this.library = library; 41 this.tag = tag; 42 this.namespace = namespace; 43 this.name = name; 44 this.id = id; 45 } 46 47 public FaceletHandler createFaceletHandler() { 48 return this.library.createTagHandler(this.namespace, this.name, this); 49 } 50 51 public FaceletHandler getNextHandler() { 52 return this.getNextFaceletHandler(); 53 } 54 55 public Tag getTag() { 56 return this.tag; 57 } 58 59 public String getTagId() { 60 return this.id; 61 } 62 63 public String toString() { 64 return this.tag.toString(); 65 } 66 67 } 68 | Popular Tags |