1 57 58 package org.apache.wsif.schema; 59 60 import java.io.Serializable ; 61 import javax.xml.namespace.QName ; 62 63 import org.w3c.dom.Element ; 64 65 70 public class SimpleType extends SchemaType implements Serializable { 71 72 static final long serialVersionUID = 1L; 73 74 private String name = ""; 75 private QName typeName = null; 76 77 81 SimpleType(Element el, String tns) { 82 typeName = getAttributeQName(el, "name", tns); 83 84 if (typeName == null) return; 87 88 name = typeName.getLocalPart(); 89 } 90 91 94 public boolean isComplex() { 95 return false; 96 } 97 98 101 public QName getTypeName() { 102 return typeName; 103 } 104 105 108 public boolean isSimple() { 109 return true; 110 } 111 } 112 | Popular Tags |