test_class.file: jersey-server/src/test/java/com/sun/jersey/server/wadl/generators/resourcedoc/WadlGeneratorResourceDocSupportTest.java
test_class.identifier: WadlGeneratorResourceDocSupportTest
test_case.body: @Test
      public void wadlIsGeneratedWithUnknownCustomParameterAnnotation() throws JAXBException, PrivilegedActionException
      {
          /* Set up a ClassDocType that has something for a custom-annotated parameter */
          ClassDocType cdt = new ClassDocType();
          cdt.setClassName(TestResource.class.getName());
  
          MethodDocType mdt = new MethodDocType();
          mdt.setMethodName("method");
          cdt.getMethodDocs().add(mdt);
  
          ParamDocType pdt = new ParamDocType("x", "comment about x");
          mdt.getParamDocs().add(pdt);
  
          AnnotationDocType adt = new AnnotationDocType();
          adt.setAnnotationTypeName(CustomParam.class.getName());
          adt.getAttributeDocs().add(new NamedValueType("value", "x"));
  
          pdt.getAnnotationDocs().add(adt);
  
          ResourceDocType rdt = new ResourceDocType();
          rdt.getDocs().add(cdt);
  
  
          /* Generate WADL for that class */
          WadlGenerator wg = new WadlGeneratorResourceDocSupport(new WadlGeneratorImpl(), rdt);
  
          WadlBuilder wb = new WadlBuilder(wg);
          AbstractResource resource = IntrospectionModeller.createResource(TestResource.class);
          ApplicationDescription app = wb.generate(null,null,null, Collections.singleton(resource));
  
  
          /* Confirm that it can be marshalled without error */
          StringWriter sw = new StringWriter();
  
          JAXBContext context =
                  AccessController.doPrivileged(new PrivilegedExceptionAction<JAXBContext>(){
  
                      @Override
                      public JAXBContext run() throws JAXBException {
                          return JAXBContext.newInstance(Application.class);
                      }
                  });
  
          Marshaller m = context.createMarshaller();
          m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
  
          m.marshal(app.getApplication(), sw);
      }
test_case.class_method_signature: WadlGeneratorResourceDocSupportTest.wadlIsGeneratedWithUnknownCustomParameterAnnotation()
test_case.full_signature: @Test public void wadlIsGeneratedWithUnknownCustomParameterAnnotation()
test_case.identifier: wadlIsGeneratedWithUnknownCustomParameterAnnotation
test_case.invocations: setClassName getName setMethodName add getMethodDocs add getParamDocs setAnnotationTypeName getName add getAttributeDocs add getAnnotationDocs add getDocs createResource generate singleton doPrivileged newInstance createMarshaller setProperty marshal getApplication
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void wadlIsGeneratedWithUnknownCustomParameterAnnotation()
focal_class.declarator: _delegate
focal_class.modifier: private
focal_class.original_string: private WadlGenerator _delegate;
focal_class.type: WadlGenerator
focal_class.var_name: _delegate
focal_class.declarator: resourceDocFile
focal_class.modifier: private
focal_class.original_string: private File resourceDocFile;
focal_class.type: File
focal_class.var_name: resourceDocFile
focal_class.declarator: resourceDocStream
focal_class.modifier: private
focal_class.original_string: private InputStream resourceDocStream;
focal_class.type: InputStream
focal_class.var_name: resourceDocStream
focal_class.declarator: resourceDoc
focal_class.modifier: private
focal_class.original_string: private ResourceDocAccessor resourceDoc;
focal_class.type: ResourceDocAccessor
focal_class.var_name: resourceDoc
focal_class.file: jersey-server/src/main/java/com/sun/jersey/server/wadl/generators/resourcedoc/WadlGeneratorResourceDocSupport.java
focal_class.identifier: WadlGeneratorResourceDocSupport
focal_class.interfaces: implements WadlGenerator
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.WadlGeneratorResourceDocSupport()
focal_class.full_signature: public  WadlGeneratorResourceDocSupport()
focal_class.identifier: WadlGeneratorResourceDocSupport
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  WadlGeneratorResourceDocSupport()
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.WadlGeneratorResourceDocSupport( WadlGenerator wadlGenerator, ResourceDocType resourceDoc )
focal_class.full_signature: public  WadlGeneratorResourceDocSupport( WadlGenerator wadlGenerator, ResourceDocType resourceDoc )
focal_class.identifier: WadlGeneratorResourceDocSupport
focal_class.modifiers: public
focal_class.parameters: ( WadlGenerator wadlGenerator, ResourceDocType resourceDoc )
focal_class.signature:  WadlGeneratorResourceDocSupport( WadlGenerator wadlGenerator, ResourceDocType resourceDoc )
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.setWadlGeneratorDelegate( WadlGenerator delegate )
focal_class.full_signature: public void setWadlGeneratorDelegate( WadlGenerator delegate )
focal_class.identifier: setWadlGeneratorDelegate
focal_class.modifiers: public
focal_class.parameters: ( WadlGenerator delegate )
focal_class.return: void
focal_class.signature: void setWadlGeneratorDelegate( WadlGenerator delegate )
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.setEnvironment(Environment env)
focal_class.full_signature: @Override public void setEnvironment(Environment env)
focal_class.identifier: setEnvironment
focal_class.modifiers: @Override public
focal_class.parameters: (Environment env)
focal_class.return: void
focal_class.signature: void setEnvironment(Environment env)
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.setResourceDocFile( File resourceDocFile )
focal_class.full_signature: public void setResourceDocFile( File resourceDocFile )
focal_class.identifier: setResourceDocFile
focal_class.modifiers: public
focal_class.parameters: ( File resourceDocFile )
focal_class.return: void
focal_class.signature: void setResourceDocFile( File resourceDocFile )
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.setResourceDocStream( InputStream resourceDocStream )
focal_class.full_signature: public void setResourceDocStream( InputStream resourceDocStream )
focal_class.identifier: setResourceDocStream
focal_class.modifiers: public
focal_class.parameters: ( InputStream resourceDocStream )
focal_class.return: void
focal_class.signature: void setResourceDocStream( InputStream resourceDocStream )
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.init()
focal_class.full_signature: public void init()
focal_class.identifier: init
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.getRequiredJaxbContextPath()
focal_class.full_signature: public String getRequiredJaxbContextPath()
focal_class.identifier: getRequiredJaxbContextPath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRequiredJaxbContextPath()
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.createApplication(UriInfo requestInfo)
focal_class.full_signature: public Application createApplication(UriInfo requestInfo)
focal_class.identifier: createApplication
focal_class.modifiers: public
focal_class.parameters: (UriInfo requestInfo)
focal_class.return: Application
focal_class.signature: Application createApplication(UriInfo requestInfo)
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.createResource( AbstractResource r, String path )
focal_class.full_signature: public Resource createResource( AbstractResource r, String path )
focal_class.identifier: createResource
focal_class.modifiers: public
focal_class.parameters: ( AbstractResource r, String path )
focal_class.return: Resource
focal_class.signature: Resource createResource( AbstractResource r, String path )
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.createMethod( AbstractResource r, AbstractResourceMethod m )
focal_class.full_signature: public Method createMethod( AbstractResource r, AbstractResourceMethod m )
focal_class.identifier: createMethod
focal_class.modifiers: public
focal_class.parameters: ( AbstractResource r, AbstractResourceMethod m )
focal_class.return: Method
focal_class.signature: Method createMethod( AbstractResource r, AbstractResourceMethod m )
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.createRequestRepresentation( AbstractResource r,
                                                         AbstractResourceMethod m, MediaType mediaType )
focal_class.full_signature: public Representation createRequestRepresentation( AbstractResource r,
                                                         AbstractResourceMethod m, MediaType mediaType )
focal_class.identifier: createRequestRepresentation
focal_class.modifiers: public
focal_class.parameters: ( AbstractResource r,
                                                         AbstractResourceMethod m, MediaType mediaType )
focal_class.return: Representation
focal_class.signature: Representation createRequestRepresentation( AbstractResource r,
                                                         AbstractResourceMethod m, MediaType mediaType )
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.createRequest( AbstractResource r, AbstractResourceMethod m )
focal_class.full_signature: public Request createRequest( AbstractResource r, AbstractResourceMethod m )
focal_class.identifier: createRequest
focal_class.modifiers: public
focal_class.parameters: ( AbstractResource r, AbstractResourceMethod m )
focal_class.return: Request
focal_class.signature: Request createRequest( AbstractResource r, AbstractResourceMethod m )
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.createResponses( AbstractResource r, AbstractResourceMethod m )
focal_class.full_signature: public List<Response> createResponses( AbstractResource r, AbstractResourceMethod m )
focal_class.identifier: createResponses
focal_class.modifiers: public
focal_class.parameters: ( AbstractResource r, AbstractResourceMethod m )
focal_class.return: List<Response>
focal_class.signature: List<Response> createResponses( AbstractResource r, AbstractResourceMethod m )
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.addDocForExample( final List<Doc> docs, final String example )
focal_class.full_signature: private void addDocForExample( final List<Doc> docs, final String example )
focal_class.identifier: addDocForExample
focal_class.modifiers: private
focal_class.parameters: ( final List<Doc> docs, final String example )
focal_class.return: void
focal_class.signature: void addDocForExample( final List<Doc> docs, final String example )
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.addDoc( final List<Doc> docs, final String text )
focal_class.full_signature: private void addDoc( final List<Doc> docs, final String text )
focal_class.identifier: addDoc
focal_class.modifiers: private
focal_class.parameters: ( final List<Doc> docs, final String text )
focal_class.return: void
focal_class.signature: void addDoc( final List<Doc> docs, final String text )
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.createParam(AbstractResource r,
                               AbstractMethod m, Parameter p)
focal_class.full_signature: public Param createParam(AbstractResource r,
                               AbstractMethod m, Parameter p)
focal_class.identifier: createParam
focal_class.modifiers: public
focal_class.parameters: (AbstractResource r,
                               AbstractMethod m, Parameter p)
focal_class.return: Param
focal_class.signature: Param createParam(AbstractResource r,
                               AbstractMethod m, Parameter p)
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.createResources()
focal_class.full_signature: public Resources createResources()
focal_class.identifier: createResources
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Resources
focal_class.signature: Resources createResources()
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.isEmpty( String text )
focal_class.full_signature: private boolean isEmpty( String text )
focal_class.identifier: isEmpty
focal_class.modifiers: private
focal_class.parameters: ( String text )
focal_class.return: boolean
focal_class.signature: boolean isEmpty( String text )
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.createExternalGrammar()
focal_class.full_signature: @Override public ExternalGrammarDefinition createExternalGrammar()
focal_class.identifier: createExternalGrammar
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ExternalGrammarDefinition
focal_class.signature: ExternalGrammarDefinition createExternalGrammar()
focal_class.class_method_signature: WadlGeneratorResourceDocSupport.attachTypes(ApplicationDescription egd)
focal_class.full_signature: @Override public void attachTypes(ApplicationDescription egd)
focal_class.identifier: attachTypes
focal_class.modifiers: @Override public
focal_class.parameters: (ApplicationDescription egd)
focal_class.return: void
focal_class.signature: void attachTypes(ApplicationDescription egd)
focal_method.body: public Resource createResource( AbstractResource r, String path ) {
          final Resource result = _delegate.createResource( r, path );
          final ClassDocType classDoc = resourceDoc.getClassDoc( r.getResourceClass() );
          if ( classDoc != null && !isEmpty( classDoc.getCommentText() ) ) {
              final Doc doc = new Doc();
              doc.getContent().add( classDoc.getCommentText() );
              result.getDoc().add( doc );
          }
          return result;
      }
focal_method.class_method_signature: WadlGeneratorResourceDocSupport.createResource( AbstractResource r, String path )
focal_method.full_signature: public Resource createResource( AbstractResource r, String path )
focal_method.identifier: createResource
focal_method.invocations: createResource getClassDoc getResourceClass isEmpty getCommentText add getContent getCommentText add getDoc
focal_method.modifiers: public
focal_method.parameters: ( AbstractResource r, String path )
focal_method.return: Resource
focal_method.signature: Resource createResource( AbstractResource r, String path )