|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrendsite.engine.node.Node
rendsite.engine.node.Node_Directory
public class Node_Directory
Crawler node for a Directory.
10NOV09 - EPG - First package release.
| Field Summary | |
|---|---|
boolean |
copyOnly
|
java.lang.String |
description
Information about the file. |
boolean |
excluded
|
boolean |
ignored
|
java.lang.String |
type
|
| Constructor Summary | |
|---|---|
Node_Directory(java.io.File file,
FileContext fcontext)
Create a directory node. |
|
| Method Summary | |
|---|---|
void |
build()
Make sure the directory exists in the destination. |
void |
clean()
Clean the directory. |
void |
failCatalogWrite()
Note that the catalog write failed. |
java.lang.String |
getCatalogName()
Get the catalog name. |
java.lang.String |
getCatalogUrl(Node_Directory source,
boolean encode)
Get the URL to the catalog relative to this directory from the passes directory. |
java.lang.String |
getCatalogUrlAbsolute(boolean encoded)
Get the absolute URL to the catalog. |
java.io.File |
getFile()
Get a file representing this directory. |
java.util.List<Node_File> |
getFiles()
Get the files in this directory. |
java.util.List<Node_MetaFile> |
getLocalMetaFiles()
Get the local metafiles in this directory. |
java.util.List<Node_MetaFile> |
getMetaFiles()
Get the metafiles in this directory. |
long |
getMostRecentModified()
Get the most recent modified time for all files and subdirectories under this directory. |
java.lang.String |
getName()
Get the rendered name. |
java.lang.String |
getPath()
Get the absolute path to this directory. |
java.util.List<Node_Directory> |
getSubDirectories()
Get the subdirectories in this directory. |
java.lang.String |
getURLAbsolute(boolean encode)
Get the URL for this directory from the root. |
java.lang.String |
getURLRendering()
Get the URL for this directory from the root for rendering purposes only. |
java.lang.String |
getURLtoRoot(boolean encode)
Get the URL to the root from this directory. |
static boolean |
isLocalMetafile(java.io.File theFile)
Is this file a LOCAL METAFILE? |
static boolean |
isMetafile(java.io.File theFile)
Is this file a METAFILE? |
long |
lastModifiedCatalog()
Get the last modified date for the catalog. |
void |
modifiedTime(long datetime)
Potentially set the most recent modified time. |
java.io.OutputStream |
openCatalogForWrite()
Open for the catalog file for writing. |
void |
setCatalogName(java.lang.String name)
Set the catalog name. |
void |
setFiles(java.util.List<Node_File> newFileList)
Set the files. |
void |
setSubDirectories(java.util.List<Node_Directory> newSubList)
Set the sub directories. |
| Methods inherited from class rendsite.engine.node.Node |
|---|
getType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean copyOnly
public boolean ignored
public boolean excluded
public java.lang.String description
public java.lang.String type
| Constructor Detail |
|---|
public Node_Directory(java.io.File file,
FileContext fcontext)
throws java.lang.Throwable
file - the file representing the directory.fcontext - the file context.
java.lang.Throwable - either from bugs or because it can't process the contents of the directory.| Method Detail |
|---|
public void modifiedTime(long datetime)
datetime - the proposed modified time in milliseconds from epoch.public long getMostRecentModified()
public java.lang.String getName()
getName in class Node
public java.util.List<Node_Directory> getSubDirectories()
throws java.lang.Throwable
java.lang.Throwable
public java.util.List<Node_File> getFiles()
throws java.lang.Throwable
java.lang.Throwable
public java.util.List<Node_MetaFile> getMetaFiles()
throws java.lang.Throwable
java.lang.Throwable
public java.util.List<Node_MetaFile> getLocalMetaFiles()
throws java.lang.Throwable
java.lang.Throwablepublic java.io.File getFile()
public void setFiles(java.util.List<Node_File> newFileList)
throws java.lang.Throwable
newFileList - the files to set.
java.lang.Throwable
public void setSubDirectories(java.util.List<Node_Directory> newSubList)
throws java.lang.Throwable
newSubList - the files to set as the subs.
java.lang.Throwablepublic java.lang.String getCatalogName()
public void setCatalogName(java.lang.String name)
name - the name
public void build()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getPath()
public long lastModifiedCatalog()
throws things.common.ThingsException
things.common.ThingsException
public java.lang.String getCatalogUrlAbsolute(boolean encoded)
throws java.lang.Throwable
encoded - encode it for html?
java.lang.Throwable
public java.lang.String getCatalogUrl(Node_Directory source,
boolean encode)
throws java.lang.Throwable
source - from where this will point.encode - encode the URL properly. Set to false for it to be display worthy.
java.lang.Throwable
public java.lang.String getURLAbsolute(boolean encode)
throws java.lang.Throwable
encode - encode the URL properly. Set to false for it to be display worthy.
java.lang.Throwable - if there is a problem forming the URL or a bug.public java.lang.String getURLRendering()
public java.lang.String getURLtoRoot(boolean encode)
throws java.lang.Throwable
encode - encode the URL properly. Set to false for it to be display worthy.
java.lang.Throwable
public java.io.OutputStream openCatalogForWrite()
throws things.common.ThingsException
things.common.ThingsException
public void failCatalogWrite()
throws java.lang.Throwable
things.common.ThingsException - will only happen for bugs, which will be a panic.
java.lang.Throwablepublic static boolean isMetafile(java.io.File theFile)
theFile - the file. If null, it'll always return false.
public static boolean isLocalMetafile(java.io.File theFile)
theFile - the file. If null, it'll always return false.
public void clean()
throws java.lang.Throwable
java.lang.Throwable - for a wide range of offenses.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||