1 17 package org.apache.ws.jaxme.xs.jaxb.impl; 18 19 import org.apache.ws.jaxme.xs.jaxb.JAXBClass; 20 import org.apache.ws.jaxme.xs.jaxb.JAXBJavadoc; 21 import org.apache.ws.jaxme.xs.xml.XsObject; 22 23 24 28 public class JAXBClassImpl extends JAXBXsObjectImpl implements JAXBClass { 29 31 protected JAXBClassImpl(XsObject pParent) { 32 super(pParent); 33 } 34 35 private String name; 36 private String implClass; 37 private JAXBJavadoc javadoc; 38 39 43 public void setName(String pName) { 44 name = pName; 45 } 46 47 51 public String getName() { 52 return name; 53 } 54 55 58 public void setImplClass(String pImplClass) { 59 implClass = pImplClass; 60 } 61 62 65 public String getImplClass() { 66 return implClass; 67 } 68 69 71 public JAXBJavadoc createJavadoc() { 72 if (javadoc == null) { 73 javadoc = getJAXBXsObjectFactory().newJAXBJavadoc(this); 74 return javadoc; 75 } else { 76 throw new IllegalStateException ("Multiple Javadoc elements are not supported."); 77 } 78 } 79 80 82 public JAXBJavadoc getJavadoc() { 83 return javadoc; 84 } 85 } 86 | Popular Tags |