/** * getBeanWriter * * @param emitter * @param type * @param base * @return */ protected JavaWriter getBeanWriter(Emitter emitter, TypeEntry type, TypeEntry base) { // CONTAINED_ELEM_AND_ATTR Vector elements = type.getContainedElements(); Vector attributes = type.getContainedAttributes(); // If this complexType is referenced in a // fault context, emit a bean-like exception // class Boolean isComplexFault = (Boolean) type.getDynamicVar( JavaGeneratorFactory.COMPLEX_TYPE_FAULT); if ((isComplexFault != null) && isComplexFault.booleanValue()) { return new JavaBeanFaultWriter(emitter, type, elements, base, attributes, getBeanHelperWriter(emitter, type, elements, base, attributes, true)); } return new JavaBeanWriter(emitter, type, elements, base, attributes, getBeanHelperWriter(emitter, type, elements, base, attributes, false)); }
/** * getBeanWriter * * @param emitter * @param type * @param base * @return */ protected JavaWriter getBeanWriter(Emitter emitter, TypeEntry type, TypeEntry base) { // CONTAINED_ELEM_AND_ATTR Vector elements = type.getContainedElements(); Vector attributes = type.getContainedAttributes(); // If this complexType is referenced in a // fault context, emit a bean-like exception // class Boolean isComplexFault = (Boolean) type.getDynamicVar( JavaGeneratorFactory.COMPLEX_TYPE_FAULT); if ((isComplexFault != null) && isComplexFault.booleanValue()) { return new JavaBeanFaultWriter(emitter, type, elements, base, attributes, getBeanHelperWriter(emitter, type, elements, base, attributes, true)); } return new JavaBeanWriter(emitter, type, elements, base, attributes, getBeanHelperWriter(emitter, type, elements, base, attributes, false)); }
/** * getBeanWriter * * @param emitter * @param type * @param base * @return */ protected JavaWriter getBeanWriter(Emitter emitter, TypeEntry type, TypeEntry base) { // CONTAINED_ELEM_AND_ATTR Vector elements = type.getContainedElements(); Vector attributes = type.getContainedAttributes(); // If this complexType is referenced in a // fault context, emit a bean-like exception // class Boolean isComplexFault = (Boolean) type.getDynamicVar( JavaGeneratorFactory.COMPLEX_TYPE_FAULT); if ((isComplexFault != null) && isComplexFault.booleanValue()) { return new JavaBeanFaultWriter(emitter, type, elements, base, attributes, getBeanHelperWriter(emitter, type, elements, base, attributes, true)); } return new JavaBeanWriter(emitter, type, elements, base, attributes, getBeanHelperWriter(emitter, type, elements, base, attributes, false)); }
Boolean isComplexFault = (Boolean) type.getDynamicVar( JavaGeneratorFactory.COMPLEX_TYPE_FAULT);
Boolean isComplexFault = (Boolean) te.getDynamicVar( JavaGeneratorFactory.COMPLEX_TYPE_FAULT);
Boolean isComplexFault = (Boolean) te.getDynamicVar( JavaGeneratorFactory.COMPLEX_TYPE_FAULT);
Boolean isComplexFault = (Boolean) te.getDynamicVar( JavaGeneratorFactory.COMPLEX_TYPE_FAULT);