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

com.sun.tools.ws.processor.modeler.annotation.ModelBuilder Maven / Gradle / Ivy

Go to download

Open source Reference Implementation of JSR-224: Java API for XML Web Services

There is a newer version: 4.0.3
Show newest version
/*
 * Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Distribution License v. 1.0, which is available at
 * http://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

package com.sun.tools.ws.processor.modeler.annotation;

import com.sun.tools.ws.processor.modeler.ModelerException;
import com.sun.tools.ws.wscompile.WsgenOptions;

import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.Element;
import javax.lang.model.element.Name;
import javax.lang.model.element.TypeElement;
import javax.lang.model.type.TypeMirror;
import java.io.File;

/**
 * @author WS Development Team
 */
public interface ModelBuilder {

    ProcessingEnvironment getProcessingEnvironment();

    String getOperationName(Name methodName);

    TypeMirror getHolderValueType(TypeMirror type);

    boolean checkAndSetProcessed(TypeElement typeElement);

    /**
     * Checks if type is a service specific exception
     *
     * @param typeMirror the given element's type
     * @return true if is not a service specific exception as defined by JAX-WS specification
     */
    boolean isServiceException(TypeMirror typeMirror);

    boolean isRemote(TypeElement typeElement);

    boolean canOverWriteClass(String className);

    WsgenOptions getOptions();

    File getSourceDir();

    void log(String msg);

    void processWarning(String message);

    void processError(String message);

    void processError(String message, Element element) throws ModelerException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy