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

org.objectweb.celtix.tools.common.model.JavaModel Maven / Gradle / Ivy

The newest version!
package org.objectweb.celtix.tools.common.model;

import java.util.*;
import org.objectweb.celtix.tools.extensions.jaxws.JAXWSBinding;

public class JavaModel {

    private final Map interfaces;
    private final Map exceptionClasses;
    private final Map serviceClasses;
    
    private String location;
    private JAXWSBinding jaxwsBinding;
    
    public JavaModel() {
        interfaces = new HashMap();
        exceptionClasses = new HashMap();
        serviceClasses = new HashMap();
        jaxwsBinding = new JAXWSBinding();
    }

    public void addInterface(String name, JavaInterface i) {
        this.interfaces.put(name, i);
    }

    public Map getInterfaces() {
        return this.interfaces;
    }


    public void addExceptionClass(String name, JavaExceptionClass ex) {
        this.exceptionClasses.put(name, ex);
    }
    
    public Map getExceptionClasses() {
        return this.exceptionClasses;
    }

    public void addServiceClass(String name, JavaServiceClass service) {
        this.serviceClasses.put(name, service);
    }
    
    public Map getServiceClasses() {
        return this.serviceClasses;
    }

    public void setLocation(String l) {
        this.location = l;
    }

    public String getLocation() {
        return this.location;
    }

    public JAXWSBinding getJAXWSBinding() {
        return this.jaxwsBinding;
    }
    
    public void setJAXWSBinding(JAXWSBinding binding) {
        if (binding != null) {
            this.jaxwsBinding = binding;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy