1 17 package org.apache.ws.jaxme.xs.xml.impl; 18 19 import org.apache.ws.jaxme.xs.parser.impl.LocSAXException; 20 import org.apache.ws.jaxme.xs.xml.*; 21 import org.xml.sax.SAXException ; 22 23 24 41 public class XsTTopLevelComplexTypeImpl extends XsTComplexTypeImpl implements XsTTopLevelComplexType { 42 private XsNCName name; 43 private boolean isMixed, isAbstract; 44 private XsDerivationSet finalSet; 45 private XsDerivationSet blockSet; 46 47 protected XsTTopLevelComplexTypeImpl(XsObject pParent) { 48 super(pParent); 49 } 50 51 public void setName(XsNCName pName) { 52 name = pName; 53 } 54 55 public XsNCName getName() { 56 return name; 57 } 58 59 public void setMixed(boolean pMixed) { 60 isMixed = pMixed; 61 } 62 63 public boolean isMixed() { 64 return isMixed; 65 } 66 67 public void setAbstract(boolean pAbstract) { 68 isAbstract = pAbstract; 69 } 70 71 public boolean isAbstract() { 72 return isAbstract; 73 } 74 75 public void setFinal(XsDerivationSet pFinal) { 76 finalSet = pFinal; 77 } 78 79 public XsDerivationSet getFinal() { 80 return finalSet; 81 } 82 83 public void setBlock(XsDerivationSet pBlock) { 84 blockSet = pBlock; 85 } 86 87 public XsDerivationSet getBlock() { 88 return blockSet; 89 } 90 91 public void validate() throws SAXException { 92 super.validate(); 93 if (name == null) { 94 throw new LocSAXException("Missing attribute: 'name'", getLocator()); 95 } 96 } 97 } 98 | Popular Tags |