Package org.codehaus.enunciate.contract.jaxrs

Examples of org.codehaus.enunciate.contract.jaxrs.ResourceEntityParameter


   */
  protected void addReferencedTypeDefinitions(ResourceMethod resourceMethod) {
    REFERENCE_STACK.get().addFirst("\"see also\" annotation");
    addSeeAlsoTypeDefinitions(resourceMethod);
    REFERENCE_STACK.get().removeFirst();
    ResourceEntityParameter ep = resourceMethod.getEntityParameter();
    if (ep != null) {
      REFERENCE_STACK.get().addFirst("entity parameter " + ep.getSimpleName());
      TypeMirror type = ep.getType();
      if (type instanceof ClassType) {
        ClassDeclaration classDeclaration = ((ClassType) type).getDeclaration();
        if (classDeclaration != null) {
          if (classDeclaration.getAnnotation(XmlRootElement.class) != null) {
            //only add referenced type definitions for root elements.
View Full Code Here


      final JsonType jsonType = (JsonType) object;
      return jsonSchemaForType(jsonType);
    }

    if (object instanceof ResourceEntityParameter) {
      final ResourceEntityParameter restResourcePayload = (ResourceEntityParameter) object;
      final JsonType jsonType = restResourcePayload.getJsonType();
      return jsonSchemaForType(jsonType);
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.codehaus.enunciate.contract.jaxrs.ResourceEntityParameter

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.