public class RMFile
extends com.reportmill.base.RMObject
implements java.lang.Comparable
Modifier and Type | Method and Description |
---|---|
void |
addChild(RMFile aFile)
Adds a child.
|
void |
addChild(RMFile aFile,
int anIndex)
Adds a child at given index.
|
int |
compareTo(java.lang.Object anObj)
Used to sort files.
|
void |
delete()
Deletes the file.
|
byte[] |
getBytes()
Returns the file bytes.
|
RMFile |
getChild(int anIndex)
Returns the individual child at given index.
|
RMFile |
getChild(java.lang.String aName)
Returns the child with the given name.
|
int |
getChildCount()
Returns the number of children.
|
int |
getChildIndex(RMFile aFile)
Returns the index of a child.
|
java.util.List<? extends RMFile> |
getChildren()
Returns the directory children.
|
RMDataSource |
getDataSource()
Returns the datasource.
|
java.lang.String |
getDirectoryPath()
Returns the path as a directory (with trailing separator).
|
int |
getInsertIndex(RMFile aFile)
Returns the insert index to insert a file in this directory.
|
java.lang.String |
getName()
Returns the resource name.
|
RMFile |
getParent()
Returns the file parent directory.
|
java.lang.String |
getPath()
Returns the file path.
|
java.lang.String |
getSimpleName()
Returns the file simple name.
|
java.lang.String |
getType()
Returns the file type (extension without the '.').
|
RMFile |
getVisibleChild(int anIndex)
Returns the individual visible child at index.
|
int |
getVisibleChildCount()
Returns the number of visible children.
|
java.util.List<RMFile> |
getVisibleChildren()
Returns the visible children.
|
boolean |
isDirectory()
Returns whether resource is a directory.
|
boolean |
isVisible()
Returns whether file is visible (not hidden).
|
RMFile |
removeChild(int anIndex)
Removes a child at given index.
|
int |
removeChild(RMFile aFile)
Removes given child.
|
void |
save()
Saves the file.
|
void |
setBytes(byte[] theBytes)
Sets the file bytes.
|
void |
setDirectory(boolean aValue)
Sets whether resource is a directory.
|
void |
setPath(java.lang.String aPath)
Sets the file path.
|
void |
setVisible(boolean aValue)
Sets whether file is visible (not hidden).
|
java.lang.String |
toString()
Returns a string representation of file.
|
addListener, addPropertyChangeListener, animUpdate, clone, firePropertyChange, firePropertyChange, getListener, getListenerCount, getListeners, isFirePropertyChangeEnabled, isUndoing, removeListener, removePropertyChangeListener, setFirePropertyChangeEnabled, setUndoing
public RMDataSource getDataSource()
public java.lang.String getPath()
public void setPath(java.lang.String aPath)
public java.lang.String getName()
public java.lang.String getSimpleName()
public java.lang.String getType()
public java.lang.String getDirectoryPath()
public boolean isDirectory()
public void setDirectory(boolean aValue)
public RMFile getParent()
public int getChildCount()
public RMFile getChild(int anIndex)
public java.util.List<? extends RMFile> getChildren()
public void addChild(RMFile aFile)
public void addChild(RMFile aFile, int anIndex)
public RMFile removeChild(int anIndex)
public int removeChild(RMFile aFile)
public RMFile getChild(java.lang.String aName)
public int getChildIndex(RMFile aFile)
public int getInsertIndex(RMFile aFile)
public boolean isVisible()
public void setVisible(boolean aValue)
public int getVisibleChildCount()
public RMFile getVisibleChild(int anIndex)
public java.util.List<RMFile> getVisibleChildren()
public byte[] getBytes()
public void setBytes(byte[] theBytes)
public void save()
public void delete()
public int compareTo(java.lang.Object anObj)
compareTo
in interface java.lang.Comparable
public java.lang.String toString()
toString
in class com.reportmill.base.RMObject