1 19 20 package org.netbeans.modules.xml.wsdl.model.impl; 21 22 import org.netbeans.modules.xml.xam.dom.Attribute; 23 24 28 public enum WSDLAttribute implements Attribute { 29 BINDING("binding"), 30 ELEMENT("element"), 31 LOCATION("location"), 32 MESSAGE("message"), 33 NAME("name"), 34 NAMESPACE_URI("namespace"), 35 TARGET_NAMESPACE("targetNamespace"), 36 PARAMETER_ORDER("parameterOrder"), 37 PORT_TYPE("type"), 38 TYPE("type"); 39 40 private String name; 41 private Class type; 42 private Class subtype; 43 44 45 WSDLAttribute(String name) { 46 this(name, String .class); 47 } 48 WSDLAttribute(String name, Class type) { 49 this(name, type, null); 50 } 51 WSDLAttribute(String name, Class type, Class subtype) { 52 this.name = name; 53 this.type = type; 54 this.subtype = subtype; 55 } 56 57 public String toString() { return name; } 58 59 public Class getType() { 60 return type; 61 } 62 63 public String getName() { return name; } 64 65 public Class getMemberType() { return subtype; } 66 } 67 | Popular Tags |