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 MetricSourceDefinitionsDescriptor 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 MetricSourceDefinitionsDescriptor() { 57 super(); 58 xmlName = "MetricSourceDefinitions"; 59 60 setCompositorAsSequence(); 62 org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; 63 org.exolab.castor.xml.XMLFieldHandler handler = null; 64 org.exolab.castor.xml.FieldValidator fieldValidator = null; 65 67 69 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinition.class, "_metricSourceDefinitionList", "MetricSourceDefinition", org.exolab.castor.xml.NodeType.Element); 71 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 72 public java.lang.Object getValue( java.lang.Object object ) 73 throws IllegalStateException 74 { 75 MetricSourceDefinitions target = (MetricSourceDefinitions) object; 76 return target.getMetricSourceDefinition(); 77 } 78 public void setValue( java.lang.Object object, java.lang.Object value) 79 throws IllegalStateException , IllegalArgumentException 80 { 81 try { 82 MetricSourceDefinitions target = (MetricSourceDefinitions) object; 83 target.addMetricSourceDefinition( (com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinition) value); 84 } 85 catch (java.lang.Exception ex) { 86 throw new IllegalStateException (ex.toString()); 87 } 88 } 89 public java.lang.Object newInstance( java.lang.Object parent ) { 90 return new com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinition(); 91 } 92 } ); 93 desc.setHandler(handler); 94 desc.setRequired(true); 95 desc.setMultivalued(true); 96 addFieldDescriptor(desc); 97 98 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 100 fieldValidator.setMinOccurs(1); 101 { } 103 desc.setValidator(fieldValidator); 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.MetricSourceDefinitions.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 |