4 public class TempDescriptor extends Descriptor {
5 static int currentid=0;
11 public TempDescriptor(String name) {
16 public TempDescriptor(String name, TypeDescriptor td) {
21 public TempDescriptor(String name, TypeDescriptor type, TagDescriptor td) {
27 public TempDescriptor createNew() {
29 return new TempDescriptor(name, type);
31 return new TempDescriptor(name, type, tag);
34 public static TempDescriptor tempFactory() {
35 return new TempDescriptor("temp_"+currentid);
38 public static TempDescriptor tempFactory(String name) {
39 return new TempDescriptor(name+currentid);
42 public static TempDescriptor tempFactory(String name, TypeDescriptor td) {
43 return new TempDescriptor(name+currentid,td);
46 public static TempDescriptor tempFactory(String name, TypeDescriptor type, TagDescriptor tag) {
47 return new TempDescriptor(name+currentid,type,tag);
50 public static TempDescriptor paramtempFactory(String name, TypeDescriptor td) {
51 return new TempDescriptor(name,td);
54 public static TempDescriptor paramtempFactory(String name, TypeDescriptor tagtype, TagDescriptor tag) {
55 return new TempDescriptor(name, tagtype, tag);
58 public String toString() {
62 public void setType(TypeDescriptor td) {
66 public TypeDescriptor getType() {
70 public TagDescriptor getTag() {
74 public void setTag(TagDescriptor tag) {