org.quattor.pan.repository
Class SourceFile
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SourceFile
public SourceFile(java.lang.String name,
boolean isSource,
java.io.File path)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
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.