All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.webcohesion.enunciate.modules.jaxws.api.impl.HttpHeaderParameter Maven / Gradle / Ivy

There is a newer version: 2.18.1
Show newest version
package com.webcohesion.enunciate.modules.jaxws.api.impl;

import com.webcohesion.enunciate.api.datatype.DataTypeReference;
import com.webcohesion.enunciate.api.services.Parameter;
import com.webcohesion.enunciate.javac.javadoc.JavaDoc;
import com.webcohesion.enunciate.modules.jaxb.api.impl.DataTypeReferenceImpl;
import com.webcohesion.enunciate.modules.jaxb.model.types.KnownXmlType;
import com.webcohesion.enunciate.modules.jaxws.model.HttpHeader;

import javax.lang.model.element.AnnotationMirror;
import java.lang.annotation.Annotation;
import java.util.Collections;
import java.util.Map;
import java.util.Set;

/**
 * @author Ryan Heaton
 */
public class HttpHeaderParameter implements Parameter {

  private final HttpHeader header;

  public HttpHeaderParameter(HttpHeader header) {
    this.header = header;
  }

  @Override
  public  A getAnnotation(Class annotationType) {
    return null;
  }

  @Override
  public Map getAnnotations() {
    return Collections.emptyMap();
  }

  @Override
  public Set getStyles() {
    return Collections.emptySet();
  }

  @Override
  public String getName() {
    return this.header.getName();
  }

  @Override
  public String getDescription() {
    return this.header.getDescription();
  }

  @Override
  public DataTypeReference getDataType() {
    return new DataTypeReferenceImpl(KnownXmlType.STRING, false, null);
  }

  @Override
  public JavaDoc getJavaDoc() {
    return new JavaDoc(getDescription(), null, null, null);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy