1 19 20 package org.netbeans.modules.websvc.wsitmodelext.addressing.impl; 21 22 import org.netbeans.modules.xml.xam.dom.Attribute; 23 24 28 public enum AddressingAttribute implements Attribute { 29 PORTNAME("PortName"); 30 31 private String name; 32 private Class type; 33 private Class subtype; 34 35 38 AddressingAttribute(String name) { 39 this(name, String .class); 40 } 41 AddressingAttribute(String name, Class type) { 42 this(name, type, null); 43 } 44 AddressingAttribute(String name, Class type, Class subtype) { 45 this.name = name; 46 this.type = type; 47 this.subtype = subtype; 48 } 49 50 @Override 51 public String toString() { return name; } 52 53 public Class getType() { 54 return type; 55 } 56 57 public String getName() { return name; } 58 59 public Class getMemberType() { return subtype; } 60 } 61 | Popular Tags |