All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lunatech.doclets.jax.jaxrs.JAXRSConfiguration Maven / Gradle / Ivy

Go to download

jax-doclets allows you to generate JavaDoc documentation for specific Java annotation-based extensions.

The newest version!
package com.lunatech.doclets.jax.jaxrs;

import java.util.regex.Pattern;
import java.util.ArrayList;
import java.util.List;

import com.lunatech.doclets.jax.JAXConfiguration;
import com.lunatech.doclets.jax.Utils;
import com.sun.tools.doclets.formats.html.ConfigurationImpl;

public class JAXRSConfiguration extends JAXConfiguration {

  public String jaxrscontext;

  public boolean enableHTTPExample;

  public boolean enableJavaScriptExample;
  
  public List pathExcludeFilters = new ArrayList();

  public boolean enablePojoJsonDataObjects ;

  public Pattern onlyOutputPojosMatching;

  public Pattern onlyOutputResourcesMatching;

  public JAXRSConfiguration(ConfigurationImpl conf) {
    super(conf);
  }

  public void setOptions() {
    super.setOptions();
    String[][] options = parentConfiguration.root.options();
    jaxrscontext = Utils.getOption(options, "-jaxrscontext");
    enableHTTPExample = !Utils.hasOption(options, "-disablehttpexample");
    enableJavaScriptExample = !Utils.hasOption(options, "-disablejavascriptexample");
    List excludeFilters = Utils.getOptions(options, "-pathexcludefilter");
    for(String excludeFilter : excludeFilters){
      pathExcludeFilters.add(Pattern.compile(excludeFilter));
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy