@Override public Collection<FreemarkerTransform> getTransforms() { String namespace = Context.getCurrentEnvironment().getOptions().get(EnunciateAnnotationProcessorFactory.FM_LIBRARY_NS_OPTION); Collection<FreemarkerTransform> transforms = super.getTransforms(); //jaxws transforms. transforms.add(new ForEachBindingTypeTransform(namespace)); transforms.add(new ForEachEndpointInterfaceTransform(namespace)); transforms.add(new ForEachThrownWebFaultTransform(namespace)); transforms.add(new ForEachWebFaultTransform(namespace)); transforms.add(new ForEachWebMessageTransform(namespace)); transforms.add(new ForEachWebMethodTransform(namespace)); transforms.add(new ForEachWsdlTransform(namespace)); //jaxb transforms. transforms.add(new ForEachSchemaTransform(namespace)); //rest transforms. transforms.add(new ForEachRESTEndpointTransform(namespace)); transforms.add(new ForEachRESTNounTransform(namespace)); //set up the enunciate file transform. EnunciateFileTransform fileTransform = new EnunciateFileTransform(namespace); transforms.add(fileTransform); return transforms; }
@Override public Collection<FreemarkerTransform> getTransforms() { String namespace = Context.getCurrentEnvironment().getOptions().get(EnunciateAnnotationProcessorFactory.FM_LIBRARY_NS_OPTION); Collection<FreemarkerTransform> transforms = super.getTransforms(); //common transforms. transforms.add(new ForEachServiceEndpointTransform(namespace)); //jaxws transforms. transforms.add(new ForEachBindingTypeTransform(namespace)); transforms.add(new ForEachEndpointInterfaceTransform(namespace)); transforms.add(new ForEachThrownWebFaultTransform(namespace)); transforms.add(new ForEachWebFaultTransform(namespace)); transforms.add(new ForEachWebMessageTransform(namespace)); transforms.add(new ForEachWebMethodTransform(namespace)); transforms.add(new ForEachWsdlTransform(namespace)); //schema/data transforms. transforms.add(new ForEachSchemaTransform(namespace)); transforms.add(new ForEachJsonSchemaTransform(namespace)); transforms.add(new ForAllAccessorsTransform(namespace)); //rest transforms. transforms.add(new ForEachResourceMethodListByPathTransform(namespace)); //set up the enunciate file transform. EnunciateFileTransform fileTransform = new EnunciateFileTransform(namespace); transforms.add(fileTransform); return transforms; }