package com.winterbe.javadoc;

import org.apache.commons.lang3.StringUtils;

/**
 * @author Benjamin Winterberg
 */
public class TypeInfo {
    private String name;
    private String packageName;
    private String path;

    private FileType fileType = FileType.UNKNOWN;
    private String version = "undefined";

    private String filterExtends = "";
    private String filterSuper = "";
    private String filterIs = "";
    private String filterHas = "";

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getFilterExtends() {
        return filterExtends;
    }

    public void setFilterExtends(String filterExtends) {
        this.filterExtends = filterExtends;
    }

    public String getFilterSuper() {
        return filterSuper;
    }

    public void setFilterSuper(String filterSuper) {
        this.filterSuper = filterSuper;
    }

    public String getFilterIs() {
        return filterIs;
    }

    public void setFilterIs(String filterIs) {
        this.filterIs = filterIs;
    }

    public String getFilterHas() {
        return filterHas;
    }

    public void setFilterHas(String filterHas) {
        this.filterHas = filterHas;
    }

    public FileType getFileType() {
        return fileType;
    }

    public void setFileType(FileType fileType) {
        this.fileType = fileType;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getId() {
        String id = packageName + name;
        return StringUtils.remove(id, '.');
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
@@ -28,54 +28,8 @@
 c;%0A%0A
-import org.apache.commons.lang3.StringUtils;%0A%0A
 /**%0A
@@ -1519,127 +1519,8 @@
  %7D%0A%0A
-    public String getId() %7B%0A        String id = packageName + name;%0A        return StringUtils.remove(id, '.');%0A    %7D%0A%0A
     

Remove unused id