org.quattor.pan.repository
Class SourceFile

java.lang.Object
  extended by org.quattor.pan.repository.SourceFile
All Implemented Interfaces:
java.lang.Comparable<SourceFile>

@Immutable
public class SourceFile
extends java.lang.Object
implements java.lang.Comparable<SourceFile>


Constructor Summary
SourceFile(java.lang.String name, boolean isSource, java.io.File path)
           
 
Method Summary
 int compareTo(SourceFile o)
           
 boolean equals(java.lang.Object o)
           
 java.io.InputStream getInputStream()
           
 java.io.File getLocation()
           
 java.lang.String getName()
           
 java.io.File getPath()
           
 java.io.Reader getReader()
           
 SourceType getType()
           
 int hashCode()
           
 boolean isAbsent()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceFile

public SourceFile(java.lang.String name,
                  boolean isSource,
                  java.io.File path)
           throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException
Method Detail

getName

public java.lang.String getName()

getType

public SourceType getType()

getLocation

public java.io.File getLocation()

getPath

public java.io.File getPath()

isAbsent

public boolean isAbsent()

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Throws:
java.io.IOException

getReader

public java.io.Reader getReader()
                         throws java.io.IOException
Throws:
java.io.IOException

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(SourceFile o)
Specified by:
compareTo in interface java.lang.Comparable<SourceFile>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011 Quattor. All Rights Reserved.