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.XsETotalDigits; 21 import org.apache.ws.jaxme.xs.xml.XsObject; 22 import org.xml.sax.SAXException ; 23 24 25 48 public class XsETotalDigitsImpl extends XsTNumFacetImpl implements XsETotalDigits { 49 protected XsETotalDigitsImpl(XsObject pParent) { 50 super(pParent); 51 } 52 53 public void setValue(long pValue) throws SAXException { 54 if (pValue <= 0) { 55 throw new LocSAXException("The 'value' attribute must be > 0.", getLocator()); 56 } 57 super.setValue(pValue); 58 } 59 60 public String getFacetName() { 61 return "totalDigits"; 62 } 63 } 64 | Popular Tags |