|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.autodesk.objects.TextObject
public class TextObject
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 | |
|---|---|
TextObject(java.lang.String str)
Create a TextObject. |
|
TextObject(java.lang.String[] str)
Create a TextObject. |
|
| 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 another. |
java.lang.String[] |
getText()
Get the text 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 TextObject(java.lang.String[] str)
str - the String array of text that is to be used. This may be null.
The array is shallow copied (i.e. the array is copied but the Strings
referenced are not, since Strings are immutable).public TextObject(java.lang.String str)
str - the String of text that is to be used. This may be null.| 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 - another class to check.
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.
convertibleTo() will return true when
the conversion is possible and false otherwise.)IOObject.convert(Class)public java.lang.Class[] listClasses()
listClasses in interface IOObjectIOObject.listClasses()public java.lang.String[] getText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||