1 17 package org.apache.ws.jaxme.xs.xml.impl; 18 19 import org.apache.ws.jaxme.xs.xml.*; 20 import org.xml.sax.SAXException ; 21 22 23 45 public class XsTGroupImpl extends XsTAnnotatedImpl implements XsTGroup { 46 private final XsAGDefRef defRef; 47 private final XsAGOccurs occurs; 48 private final XsGParticle particle; 49 50 protected XsTGroupImpl(XsObject pParent) { 51 super(pParent); 52 defRef = getObjectFactory().newXsAGDefRef(this); 53 occurs = getObjectFactory().newXsAGOccurs(this); 54 particle = getObjectFactory().newXsGParticle(this); 55 } 56 57 public void setName(XsNCName pName) { 58 defRef.setName(pName); 59 } 60 61 public XsNCName getName() { 62 return defRef.getName(); 63 } 64 65 public void setRef(XsQName pRef) { 66 defRef.setRef(pRef); 67 } 68 69 public void setRef(String pRef) throws SAXException { 70 setRef(asXsQName(pRef)); 71 } 72 73 public XsQName getRef() { 74 return defRef.getRef(); 75 } 76 77 public void setMaxOccurs(String pMaxOccurs) { 78 occurs.setMaxOccurs(pMaxOccurs); 79 } 80 81 public int getMaxOccurs() { 82 return occurs.getMaxOccurs(); 83 } 84 85 public void setMinOccurs(int pMinOccurs) { 86 occurs.setMinOccurs(pMinOccurs); 87 } 88 89 public int getMinOccurs() { 90 return occurs.getMinOccurs(); 91 } 92 93 public XsTLocalElement createElement() { 94 return particle.createElement(); 95 } 96 97 public XsTGroupRef createGroup() { 98 return particle.createGroup(); 99 } 100 101 public XsTAll createAll() { 102 return particle.createAll(); 103 } 104 105 public XsESequence createSequence() { 106 return particle.createSequence(); 107 } 108 109 public XsEChoice createChoice() { 110 return particle.createChoice(); 111 } 112 113 public XsEAny createAny() { 114 return particle.createAny(); 115 } 116 117 public XsTParticle[] getParticles() { 118 return particle.getParticles(); 119 } 120 } 121 | Popular Tags |