Package com.carma.swagger.doclet.translator

Examples of com.carma.swagger.doclet.translator.FirstNotNullTranslator


    this.resourcePriorityTags.add("resourceOrder");

    this.resourceDescriptionTags = new ArrayList<String>();
    this.resourceDescriptionTags.add("resourceDescription");

    FirstNotNullTranslator fnnTranslator =

    new FirstNotNullTranslator();
    for (String paramAnnotation : ParserHelper.JAXRS_PARAM_ANNOTATIONS) {
      fnnTranslator.addNext(new AnnotationAwareTranslator(this).element(paramAnnotation, "value"));
    }

    fnnTranslator
        .addNext(
            new AnnotationAwareTranslator(this).ignore("javax.xml.bind.annotation.XmlTransient")
                .element("javax.xml.bind.annotation.XmlElement", "name").rootElement("javax.xml.bind.annotation.XmlRootElement", "name"))

        .addNext(
            new AnnotationAwareTranslator(this).ignore("com.fasterxml.jackson.annotation.JsonIgnore")
                .element("com.fasterxml.jackson.annotation.JsonProperty", "value")
                .rootElement("com.fasterxml.jackson.annotation.JsonRootName", "value"))

        .addNext(
            new AnnotationAwareTranslator(this).ignore("org.codehaus.jackson.map.annotate.JsonIgnore")
                .element("org.codehaus.jackson.map.annotate.JsonProperty", "value")
                .rootElement("org.codehaus.jackson.map.annotate.JsonRootName", "value")).addNext(new NameBasedTranslator(this));

    fnnTranslator.addNext(new NameBasedTranslator(this));

    this.translator = fnnTranslator;
  }
View Full Code Here

TOP

Related Classes of com.carma.swagger.doclet.translator.FirstNotNullTranslator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.