|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.autodesk.objects.FilesObject
public class FilesObject
This class represents a collection of files or directories. The files may be absolute or relative. If they are relative then there is a single directory given that the files are relative to.
| Constructor Summary | |
|---|---|
FilesObject(java.io.File base,
java.io.File[] files)
Create a FilesObject. |
|
FilesObject(java.lang.String base,
java.lang.String[] files)
Create a FilesObject. |
|
| Method Summary | |
|---|---|
static boolean |
classConvertibleTo(java.lang.Class otherClass)
Determine if this class is convertible to another IOObject class. |
IOObject |
convert(java.lang.Class otherClass)
Convert this object to an object of another class. |
boolean |
convertibleTo(java.lang.Class otherClass)
Check if this object can be converted to some other class. |
java.io.File |
getBaseDirectory()
Get the base directory. |
java.io.File[] |
getFiles()
Get the files this object references. |
java.lang.Class[] |
listClasses()
Return a Class array of classes that this object is capable of converting itself into. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilesObject(java.io.File base,
java.io.File[] files)
files array may only be null
when base is also null. If you need to return a single
diretory set base to null and create a single element
array containing the directory for files.
base - the base directory that the files are relative to. This
may be null in which case the files are all absolute references.files - an array of files. This may only be null if
base is also null. If base is not null the files should
be below the directory specified by base. The array is copied though
File objects contained within are not.
public FilesObject(java.lang.String base,
java.lang.String[] files)
files array may only be null
when base is also null. If you need to return a single
diretory set base to null and create a single element
array containing the directory for files.
base - the base directory that the files are relative to. This
may be null in which case the files are all absolute references.files - an Array of Strings that contain filenames.
This may only be null if
base is also null. If base is not null the files
should be below the directory specified by base.| Method Detail |
|---|
public static boolean classConvertibleTo(java.lang.Class otherClass)
otherClass - class to test.
true is returned if this
object can be converted to the given class, false otherwise.IOObjectpublic boolean convertibleTo(java.lang.Class otherClass)
convertibleTo in interface IOObjectotherClass - class to test.
true is returned if this
object can be converted to the given class, false otherwise.IOObject.convertibleTo(Class)public IOObject convert(java.lang.Class otherClass)
convert in interface IOObjectotherClass - another class to cast the object to.
castableTo() will return true when
the cast is
possible and false otherwise.)IOObject.convert(Class)public java.lang.Class[] listClasses()
listClasses in interface IOObjectIOObject.listClasses()public java.io.File getBaseDirectory()
public java.io.File[] getFiles()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||