1 17 package org.apache.ws.jaxme.xs.xml.impl; 18 19 import org.apache.ws.jaxme.xs.xml.*; 20 21 22 45 public class XsTAnnotatedImpl extends XsTOpenAttrsImpl implements XsTAnnotated { 46 private XsEAnnotation annotation; 47 private XsID id; 48 49 protected XsTAnnotatedImpl(XsObject pParent) { 50 super(pParent); 51 } 52 53 public XsEAnnotation createAnnotation() { 54 if (annotation != null) { 55 throw new NullPointerException ("Multiple 'annotation' elements are forbidden."); 56 } 57 return annotation = getObjectFactory().newXsEAnnotation(this); 58 } 59 60 public XsEAnnotation getAnnotation() { 61 return annotation; 62 } 63 64 public void setId(XsID pId) { 65 id = pId; 66 } 67 68 public XsID getId() { 69 return id; 70 } 71 } 72 | Popular Tags |