1 17 package org.apache.ws.jaxme.xs.xml.impl; 18 19 import org.apache.ws.jaxme.xs.xml.*; 20 21 22 39 public class XsTGroupRefImpl extends XsTRealGroupImpl implements XsTGroupRef { 40 protected XsTGroupRefImpl(XsObject pParent) { 41 super(pParent); 42 } 43 44 public void validate() { 45 super.validate(); 46 if (getName() != null) { 47 throw new IllegalStateException ("A group reference must not have a 'name' attribute."); 48 } 49 if (getRef() == null) { 50 throw new NullPointerException ("A group reference must have a nonempty 'ref' attribute."); 51 } 52 if (getParticles().length != 0) { 53 throw new NullPointerException ("A group reference must not have any 'all', 'sequence', or 'choice' elements."); 54 } 55 } 56 } 57 | Popular Tags |