public void forAllValues(SimpleTypeSG pController, JavaMethod pMethod, Object pValue, SGlet pSGlet) throws SAXException {
pSGlet.generate(pMethod, pValue);
}
public void addValidation(SimpleTypeSG pController, JavaMethod pMethod, DirectAccessible pValue) {
AtomicTypeSG atomicType = pController.getAtomicType();
Long totalDigits = atomicType.getTotalDigits();
if (totalDigits != null) {
pMethod.addIf(pValue, ".signum()", " == -1");
pMethod.addIf(pValue, ".toString().length() - 1", " > ", totalDigits);
pMethod.addThrowNew(IllegalArgumentException.class,
JavaSource.getQuoted("Length of " + totalDigits + " digits exceeded: "), " + " + pValue);