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

top.marchand.xml.maven.catalog.model.RewriteSystemModel Maven / Gradle / Ivy

Go to download

This plugin generates a OASIS catalog, which redirects all <artifactId>: URLs to appropriate jar

There is a newer version: 4.0.0
Show newest version
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package top.marchand.xml.maven.catalog.model;

import java.io.Serializable;

/**
 *
 * @author cmarchand
 */
public class RewriteSystemModel implements Serializable {
    private String uriStartPrefix;
    private String rewritePrefix;
    
    public RewriteSystemModel() {
        super();
    }
    
    public RewriteSystemModel(String uriStartPrefix, String rewritePrefix) {
        this();
        this.uriStartPrefix=uriStartPrefix;
        this.rewritePrefix=rewritePrefix;
    }

    public String getUriStartPrefix() {
        return uriStartPrefix;
    }

    public void setUriStartPrefix(String uriStartPrefix) {
        this.uriStartPrefix = uriStartPrefix;
    }

    public String getRewritePrefix() {
        return rewritePrefix;
    }

    public void setRewritePrefix(String rewritePrefix) {
        this.rewritePrefix = rewritePrefix;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 47 * hash + (this.uriStartPrefix != null ? this.uriStartPrefix.hashCode() : 0);
        hash = 47 * hash + (this.rewritePrefix != null ? this.rewritePrefix.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final RewriteSystemModel other = (RewriteSystemModel) obj;
        if ((this.uriStartPrefix == null) ? (other.uriStartPrefix != null) : !this.uriStartPrefix.equals(other.uriStartPrefix)) {
            return false;
        }
        if ((this.rewritePrefix == null) ? (other.rewritePrefix != null) : !this.rewritePrefix.equals(other.rewritePrefix)) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "\tRewriteSystemModel{" + "uriStartPrefix=" + uriStartPrefix + ", rewritePrefix=" + rewritePrefix + "}\n";
    }
    
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy