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.XsObject; 21 import org.xml.sax.SAXException ; 22 23 24 39 public abstract class XsTFacetImpl extends XsTFixedFacetImpl { 40 private String value; 41 42 protected XsTFacetImpl(XsObject pParent) { 43 super(pParent); 44 } 45 46 public void setValue(String pValue) { 47 value = pValue; 48 } 49 50 public String getValue() { 51 return value; 52 } 53 54 public void validate() throws SAXException { 55 super.validate(); 56 if (value == null) { 57 throw new LocSAXException("Missing 'value' attribute", getLocator()); 58 } 59 } 60 } 61 | Popular Tags |