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

org.drools.scm.DefaultScmEntry Maven / Gradle / Ivy

There is a newer version: 5.1.1
Show newest version
package org.drools.scm;

import java.io.File;
import java.util.Date;

import org.tmatesoft.svn.core.SVNDirEntry;
import org.tmatesoft.svn.core.SVNNodeKind;

public class DefaultScmEntry
    implements
    ScmEntry {
//    private SVNDirEntry entry;
    
    private String author;
    private Date date;
    private String name;
    private String path;
    private long revision;
    private long size;
    private int type;
   
    public DefaultScmEntry() {
        
    }       
    
    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getAuthor() {
        return author;
    }
    public void setAuthor(String author) {
        this.author = author;
    }
    public Date getDate() {
        return date;
    }
    public void setDate(Date date) {
        this.date = date;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getPath() {
        return path;
    }
    public void setPath(String path) {
        this.path = path;
    }
    public long getRevision() {
        return revision;
    }
    public void setRevision(long revision) {
        this.revision = revision;
    }
    public long getSize() {
        return size;
    }
    public void setSize(long size) {
        this.size = size;
    }
      
    public boolean isFile() {
        return this.type == ScmEntry.FILE;
    }
    
    public boolean isDirectory() {
        return this.type == ScmEntry.DIRECTORY;
    }
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy