1 7 8 package com.calipso.reportgenerator.reportdefinitions; 9 10 14 import org.exolab.castor.mapping.AccessMode; 15 import org.exolab.castor.xml.TypeValidator; 16 import org.exolab.castor.xml.XMLFieldDescriptor; 17 import org.exolab.castor.xml.validators.*; 18 19 24 public class ExcludeValueDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl { 25 26 27 31 34 private java.lang.String nsPrefix; 35 36 39 private java.lang.String nsURI; 40 41 44 private java.lang.String xmlName; 45 46 49 private org.exolab.castor.xml.XMLFieldDescriptor identity; 50 51 52 56 public ExcludeValueDescriptor() { 57 super(); 58 xmlName = "ExcludeValue"; 59 org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; 60 org.exolab.castor.xml.XMLFieldHandler handler = null; 61 org.exolab.castor.xml.FieldValidator fieldValidator = null; 62 64 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_value", "Value", org.exolab.castor.xml.NodeType.Attribute); 66 desc.setImmutable(true); 67 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 68 public java.lang.Object getValue( java.lang.Object object ) 69 throws IllegalStateException 70 { 71 ExcludeValue target = (ExcludeValue) object; 72 return target.getValue(); 73 } 74 public void setValue( java.lang.Object object, java.lang.Object value) 75 throws IllegalStateException , IllegalArgumentException 76 { 77 try { 78 ExcludeValue target = (ExcludeValue) object; 79 target.setValue( (java.lang.String ) value); 80 } 81 catch (java.lang.Exception ex) { 82 throw new IllegalStateException (ex.toString()); 83 } 84 } 85 public java.lang.Object newInstance( java.lang.Object parent ) { 86 return null; 87 } 88 } ); 89 desc.setHandler(handler); 90 desc.setRequired(true); 91 addFieldDescriptor(desc); 92 93 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 95 fieldValidator.setMinOccurs(1); 96 { StringValidator typeValidator = new StringValidator(); 98 typeValidator.setWhiteSpace("preserve"); 99 fieldValidator.setValidator(typeValidator); 100 } 101 desc.setValidator(fieldValidator); 102 104 } 106 107 111 114 public org.exolab.castor.mapping.AccessMode getAccessMode() 115 { 116 return null; 117 } 119 122 public org.exolab.castor.mapping.ClassDescriptor getExtends() 123 { 124 return null; 125 } 127 130 public org.exolab.castor.mapping.FieldDescriptor getIdentity() 131 { 132 return identity; 133 } 135 138 public java.lang.Class getJavaClass() 139 { 140 return com.calipso.reportgenerator.reportdefinitions.ExcludeValue.class; 141 } 143 146 public java.lang.String getNameSpacePrefix() 147 { 148 return nsPrefix; 149 } 151 154 public java.lang.String getNameSpaceURI() 155 { 156 return nsURI; 157 } 159 162 public org.exolab.castor.xml.TypeValidator getValidator() 163 { 164 return this; 165 } 167 170 public java.lang.String getXMLName() 171 { 172 return xmlName; 173 } 175 } 176 | Popular Tags |