Package org.codehaus.enunciate.doc

Examples of org.codehaus.enunciate.doc.DocumentationExample.exclude()


  protected void generateExampleXml(Attribute attribute, org.jdom.Element parent, String defaultNs) {
    if (!includeDeprecatedFieldsInExample && attribute.getAnnotation(Deprecated.class) != null) {
      return;
    }
    DocumentationExample exampleInfo = attribute.getAnnotation(DocumentationExample.class);
    if (exampleInfo == null || !exampleInfo.exclude()) {
      String namespace = attribute.getNamespace();
      String prefix = namespace == null ? null : ((EnunciateFreemarkerModel) FreemarkerModel.get()).getNamespacesToPrefixes().get(namespace);
      String exampleValue = exampleInfo == null || "##default".equals(exampleInfo.value()) ? "..." : exampleInfo.value();
      Namespace jdomNS;
      if (Namespace.XML_NAMESPACE.getURI().equals(namespace)) {
View Full Code Here


    }
  }

  protected void generateExampleXml(Value value, org.jdom.Element parent) {
    DocumentationExample exampleInfo = value.getAnnotation(DocumentationExample.class);
    if (exampleInfo == null || !exampleInfo.exclude()) {
      parent.setContent(new Text(exampleInfo == null || "##default".equals(exampleInfo.value()) ? "..." : exampleInfo.value()));
    }
  }

  protected void generateExampleXml(Element element, org.jdom.Element parent, String defaultNs, int maxDepth) {
View Full Code Here

    if (!includeDeprecatedFieldsInExample && element.getAnnotation(Deprecated.class) != null) {
      return;
    }

    DocumentationExample exampleInfo = element.getAnnotation(DocumentationExample.class);
    if (exampleInfo == null || !exampleInfo.exclude()) {
      if (element.isWrapped()) {
        String namespace = element.getWrapperNamespace();
        String prefix = namespace == null ? null : ((EnunciateFreemarkerModel) FreemarkerModel.get()).getNamespacesToPrefixes().get(namespace);
        Namespace jdomNS;
        if (Namespace.XML_NAMESPACE.getURI().equals(namespace)) {
View Full Code Here

    if (!includeDeprecatedFieldsInExample && attribute.getAnnotation(Deprecated.class) != null) {
      return;
    }

    DocumentationExample exampleInfo = attribute.getAnnotation(DocumentationExample.class);
    if (exampleInfo == null || !exampleInfo.exclude()) {
      JsonNode valueNode = generateExampleJson(attribute.getBaseType(), exampleInfo == null || "##default".equals(exampleInfo.value()) ? null : exampleInfo.value(), maxDepth);
      jsonNode.put(attribute.getJsonMemberName(), valueNode);
    }
  }
View Full Code Here

    if (TYPE_DEF_STACK.get().size() > maxDepth) {
      return;
    }

    DocumentationExample exampleInfo = value.getAnnotation(DocumentationExample.class);
    if (exampleInfo == null || !exampleInfo.exclude()) {
      JsonNode valueNode = generateExampleJson(value.getBaseType(), exampleInfo == null || "##default".equals(exampleInfo.value()) ? null : exampleInfo.value(), maxDepth);
      jsonNode.put(value.getJsonMemberName(), valueNode);
    }
  }
View Full Code Here

    if (!includeDeprecatedFieldsInExample && element.getAnnotation(Deprecated.class) != null) {
      return;
    }

    DocumentationExample exampleInfo = element.getAnnotation(DocumentationExample.class);
    if (exampleInfo == null || !exampleInfo.exclude()) {
      String name = element.getJsonMemberName();
      JsonNode elementNode;
      if (!element.isCollectionType()) {
        String exampleValue = exampleInfo == null || "##default".equals(exampleInfo.value()) ? "..." : exampleInfo.value();
        if (!element.isElementRefs() && element.getRef() == null) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.