|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.core.util.file.ContentFileInfo
public abstract class ContentFileInfo
Subclasses are responsible for examining a file to determine information about its content - like its version string and a description of the content.
| Constructor Summary | |
|---|---|
ContentFileInfo(File file)
The constructor that sets the file that this object will examine. |
|
| Method Summary | |
|---|---|
File |
getContentFile()
Get the file that this object examines. |
abstract String |
getDescription(String defaultValue)
Returns an appropriate description for the file content. |
abstract String |
getVersion(String defaultValue)
Returns an appropriate version of the file content. |
abstract boolean |
isValid()
Determines if the file can be processed
by the implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentFileInfo(File file)
file - the file whose info is managed by this object| Method Detail |
|---|
public File getContentFile()
public abstract boolean isValid()
file can be processed
by the implementation. In other words, if the implementation of this
interface can properly parse the file content to determine
its version (or other information),
this returns true. If the file is of an unknown
content type or is not valid for some reason, false is returned.
true if this object can process the content
to determine information about itpublic abstract String getVersion(String defaultValue)
defaultValue - the version string if it cannot be determined
public abstract String getDescription(String defaultValue)
defaultValue - the version string if it cannot be determined
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||