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 MetricPropertiesDescriptor 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 MetricPropertiesDescriptor() { 57 super(); 58 xmlName = "MetricProperties"; 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.MetricProperty.class, "_metricPropertyList", "MetricProperty", 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 MetricProperties target = (MetricProperties) object; 76 return target.getMetricProperty(); 77 } 78 public void setValue( java.lang.Object object, java.lang.Object value) 79 throws IllegalStateException , IllegalArgumentException 80 { 81 try { 82 MetricProperties target = (MetricProperties) object; 83 target.addMetricProperty( (com.calipso.reportgenerator.reportdefinitions.MetricProperty) 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.MetricProperty(); 91 } 92 } ); 93 desc.setHandler(handler); 94 desc.setMultivalued(true); 95 addFieldDescriptor(desc); 96 97 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 99 fieldValidator.setMinOccurs(0); 100 { } 102 desc.setValidator(fieldValidator); 103 } 105 106 110 113 public org.exolab.castor.mapping.AccessMode getAccessMode() 114 { 115 return null; 116 } 118 121 public org.exolab.castor.mapping.ClassDescriptor getExtends() 122 { 123 return null; 124 } 126 129 public org.exolab.castor.mapping.FieldDescriptor getIdentity() 130 { 131 return identity; 132 } 134 137 public java.lang.Class getJavaClass() 138 { 139 return com.calipso.reportgenerator.reportdefinitions.MetricProperties.class; 140 } 142 145 public java.lang.String getNameSpacePrefix() 146 { 147 return nsPrefix; 148 } 150 153 public java.lang.String getNameSpaceURI() 154 { 155 return nsURI; 156 } 158 161 public org.exolab.castor.xml.TypeValidator getValidator() 162 { 163 return this; 164 } 166 169 public java.lang.String getXMLName() 170 { 171 return xmlName; 172 } 174 } 175 | Popular Tags |