desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_random", "random", org.exolab.castor.xml.NodeType.Attribute);
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(Boolean.TYPE, "_random", "random", org.exolab.castor.xml.NodeType.Attribute);
    public RootTypeDescriptor()      {        super();        setExtendsWithoutFlatten(new org.exolab.castor.tests.framework.testDescriptor.StringTypeDescriptor());        nsURI = "http://castor.exolab.org/Test";        xmlName = "RootType";        elementDefinition = false;        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;        org.exolab.castor.mapping.FieldHandler             handler        = null;        org.exolab.castor.xml.FieldValidator               fieldValidator = null;        //-- _content        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);        desc.setImmutable(true);        handler = new org.exolab.castor.xml.XMLFieldHandler() {            public java.lang.Object getValue( java.lang.Object object )                 throws IllegalStateException            {                RootType target = (RootType) object;                return target.getContent();            }            public void setValue( java.lang.Object object, java.lang.Object value)                 throws IllegalStateException, IllegalArgumentException            {                try {                    RootType target = (RootType) object;                    target.setContent( (java.lang.String) value);                }                catch (java.lang.Exception ex) {                    throw new IllegalStateException(ex.toString());                }            }            public java.lang.Object newInstance( java.lang.Object parent ) {                return null;            }        };        desc.setHandler(handler);        addFieldDescriptor(desc);                //-- validation code for: _content        fieldValidator = new org.exolab.castor.xml.FieldValidator();        { //-- local scope            org.exolab.castor.xml.validators.StringValidator typeValidator = new org.exolab.castor.xml.validators.StringValidator();            typeValidator.setWhiteSpace("preserve");            fieldValidator.setValidator(typeValidator);        }        desc.setValidator(fieldValidator);        //-- initialize attribute descriptors                //-- _random        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_random", "random", org.exolab.castor.xml.NodeType.Attribute);        handler = new org.exolab.castor.xml.XMLFieldHandler() {            public java.lang.Object getValue( java.lang.Object object )                 throws IllegalStateException            {                RootType target = (RootType) object;                if(!target.hasRandom())                    return null;                return (target.getRandom() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);            }            public void setValue( java.lang.Object object, java.lang.Object value)                 throws IllegalStateException, IllegalArgumentException            {                try {                    RootType target = (RootType) object;                    // if null, use delete method for optional primitives                     if (value == null) {                        target.deleteRandom();                        return;                    }                    target.setRandom( ((java.lang.Boolean)value).booleanValue());                }                catch (java.lang.Exception ex) {                    throw new IllegalStateException(ex.toString());                }            }            public java.lang.Object newInstance( java.lang.Object parent ) {                return null;            }        };        desc.setHandler(handler);        desc.setMultivalued(false);        addFieldDescriptor(desc);                //-- validation code for: _random        fieldValidator = new org.exolab.castor.xml.FieldValidator();        { //-- local scope            org.exolab.castor.xml.validators.BooleanValidator typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();            fieldValidator.setValidator(typeValidator);        }        desc.setValidator(fieldValidator);        //-- _dump        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_dump", "dump", org.exolab.castor.xml.NodeType.Attribute);        handler = new org.exolab.castor.xml.XMLFieldHandler() {            public java.lang.Object getValue( java.lang.Object object )                 throws IllegalStateException            {                RootType target = (RootType) object;                if(!target.hasDump())                    return null;                return (target.getDump() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);            }            public void setValue( java.lang.Object object, java.lang.Object value)                 throws IllegalStateException, IllegalArgumentException            {                try {                    RootType target = (RootType) object;                    // if null, use delete method for optional primitives                     if (value == null) {                        target.deleteDump();                        return;                    }                    target.setDump( ((java.lang.Boolean)value).booleanValue());                }                catch (java.lang.Exception ex) {                    throw new IllegalStateException(ex.toString());                }            }            public java.lang.Object newInstance( java.lang.Object parent ) {                return null;            }        };        desc.setHandler(handler);        desc.setMultivalued(false);        addFieldDescriptor(desc);                //-- validation code for: _dump        fieldValidator = new org.exolab.castor.xml.FieldValidator();        { //-- local scope            org.exolab.castor.xml.validators.BooleanValidator typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();            fieldValidator.setValidator(typeValidator);        }        desc.setValidator(fieldValidator);        //-- initialize element descriptors            } //-- org.exolab.castor.tests.framework.testDescriptor.RootTypeDescriptor()