Package org.codehaus.enunciate.contract

Examples of org.codehaus.enunciate.contract.Facet


    this.statusCodes = statusCodes;
    this.warnings = warnings;
    this.representationMetadata = outputPayload;
    this.declaredEntityParameters = declaredEntityParameters;
    this.facets.addAll(Facet.gatherFacets(delegate));
    this.facets.add(new Facet("org.codehaus.enunciate.contract.jaxrs.Resource", parent.getSimpleName(), parent.getJavaDoc().toString())); //resource methods have an implicit facet for their declaring resource.
    this.facets.addAll(parent.getFacets());
  }
View Full Code Here


    if (FacetFilter.accept(decl)) {
      if (decl != null) {
        DocumentationGroup documentationGroup = decl.getAnnotation(DocumentationGroup.class);
        if (documentationGroup != null) {
          for (String name : documentationGroup.value()) {
            facets.add(new Facet(DocumentationGroup.class.getName(), name));
          }
        }
        else {
          gatherDocumentationGroupFacets(decl.getParent(), facets);
        }
View Full Code Here

  private void gatherDocumentationGroupFacets(Declaration decl, Set<Facet> facets) {
    if (decl != null) {
      DocumentationGroup documentationGroup = decl.getAnnotation(DocumentationGroup.class);
      if (documentationGroup != null) {
        for (String name : documentationGroup.value()) {
          facets.add(new Facet(DocumentationGroup.class.getName(), name, new JavaDoc(decl.getDocComment()).toString()));
        }
      }
      else if (decl instanceof TypeDeclaration) {
        PackageDeclaration pkg = ((TypeDeclaration)decl).getPackage();
        if (pkg != null) {
          documentationGroup = pkg.getAnnotation(DocumentationGroup.class);
          if (documentationGroup != null) {
            for (String name : documentationGroup.value()) {
              facets.add(new Facet(DocumentationGroup.class.getName(), name, new JavaDoc(pkg.getDocComment()).toString()));
            }
          }
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.codehaus.enunciate.contract.Facet

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.