1 14 15 package com.sun.facelets.tag; 16 17 23 public final class Tag { 24 private final TagAttributes attributes; 25 26 private final Location location; 27 28 private final String namespace; 29 30 private final String localName; 31 32 private final String qName; 33 34 public Tag(Location location, String namespace, String localName, 35 String qName, TagAttributes attributes) { 36 this.location = location; 37 this.namespace = namespace; 38 this.localName = localName; 39 this.qName = qName; 40 this.attributes = attributes; 41 } 42 43 public Tag(Tag orig, TagAttributes attributes) { 44 this(orig.getLocation(), orig.getNamespace(), orig.getLocalName(), orig 45 .getQName(), attributes); 46 } 47 48 53 public TagAttributes getAttributes() { 54 return attributes; 55 } 56 57 62 public String getLocalName() { 63 return localName; 64 } 65 66 71 public Location getLocation() { 72 return location; 73 } 74 75 80 public String getNamespace() { 81 return namespace; 82 } 83 84 89 public String getQName() { 90 return qName; 91 } 92 93 98 public String toString() { 99 return this.location + " <" + this.qName + ">"; 100 } 101 } 102 | Popular Tags |