Package org.codehaus.enunciate.contract.jaxrs

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


        }
      }
      REFERENCE_STACK.get().removeFirst();
    }

    ResourceRepresentationMetadata outputPayload = resourceMethod.getRepresentationMetadata();
    if (outputPayload != null) {
      TypeMirror returnType = outputPayload.getDelegate();
      if (returnType instanceof ClassType) {
        REFERENCE_STACK.get().addFirst("return type");
        ClassDeclaration classDeclaration = ((ClassType) returnType).getDeclaration();
        if (classDeclaration != null) {
          if (classDeclaration.getAnnotation(XmlRootElement.class) != null) {
View Full Code Here


    }
    else if (object instanceof XmlType) {
      namespace = ((XmlType) object).getNamespace();
    }
    else if (object instanceof ResourceRepresentationMetadata) {
      ResourceRepresentationMetadata metadata = (ResourceRepresentationMetadata) object;
      ElementDeclaration element = metadata.getXmlElement();
      if (element == null) {
        return null;
      }

      namespace = element.getNamespace();
View Full Code Here

      final JsonType jsonType = model.findJsonTypeDefinition(typeName);
      return jsonSchemaForType(jsonType);
    }

    if (object instanceof ResourceRepresentationMetadata) {
      ResourceRepresentationMetadata metadata = (ResourceRepresentationMetadata) object;
      TypeMirror typeMirror = metadata.getDelegate();
      final JsonType jsonType = model.findJsonTypeDefinition(typeMirror.toString());
      return jsonSchemaForType(jsonType);
    }

    if (object instanceof TypeMirror) {
View Full Code Here

TOP

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

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.