org.xoe.core.content
Class StashDirectory

java.lang.Object
  |
  +--org.xoe.core.dom.XNode
        |
        +--org.xoe.core.dom.ParentNode
              |
              +--org.xoe.core.dom.XElement
                    |
                    +--org.xoe.core.content.ContentElement
                          |
                          +--org.xoe.core.content.FileContentElement
                                |
                                +--org.xoe.core.content.StashDirectory
All Implemented Interfaces:
org.xoe.core.dom.Cacheable, Cloneable, Constants, org.w3c.dom.Element, org.w3c.dom.Node, org.w3c.dom.NodeList

public class StashDirectory
extends org.xoe.core.content.FileContentElement

StashDirectory is a simple DOM element that represents a direcotory in the stash VFS. The fist time a directory is accessed expand () will be called which triggers the reading of the directories contents from the stash location on disk.


Field Summary
protected  File file
          The file on disk that the FileContentElement represents.
 
Fields inherited from class org.xoe.core.content.ContentElement
lastModified
 
Fields inherited from class org.xoe.core.dom.XNode
callbacks
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Fields inherited from interface org.xoe.core.Constants
ACTION_ATTR, ADD, ADD_APP, AMPERSAND_KEY, AMPERSAND_SYMBOL, AMPERSAND_SYMBOL_STRING, APOSTROPHE_KEY, APOSTROPHE_SYMBOL, ASCENDING_SORT, BACK, BANNER_ATTR, BEEP, BEEP_PROPERTY, CONTEXT_ATTR, COPYRIGHT_KEY, COPYRIGHT_SYMBOL, COUNTRY_PROPERTY, DATA_DOC, DEFAULT_BOOTSTRAP, DEFAULT_NAMESPACE, DEFAULT_THEME, DEFAULT_THEMES_DIR, DEFAULT_VIEW, DELETE, DESCENDING_SORT, DISPLAY, DISPLAY_VIEW, DOCTYPE_NAME_NS_XHTML, DOUBLE_QUOTE_KEY, DOUBLE_QUOTE_SYMBOL, EDIT, EDIT_ITEM_VIEW, EXTENSION_ALL, EXTENSION_DTD, EXTENSION_HTML, EXTENSION_LNK, EXTENSION_WML, EXTENSION_XHTML, EXTENSION_XML, EXTENSION_XOE, EXTENSION_XOE_CONFIG, EXTENSION_ZIP, FEATURE_DOCTYPE_NAME_NS, FEATURE_EXTENSION, FEATURE_MIMETYPE, FILE_PROTOCOL, FORWARD, FUNCTION_CONTENT_HANDLER, GREATER_THAN_KEY, GREATER_THAN_SYMBOL, HIDE_IF_ATTR, HOMEDIR_PROPERTY, HREF_ATTR, INSERT_BEFORE_ATTR, LANGUAGE_PROPERTY, LAUNCH, LESSER_THAN_KEY, LESSER_THAN_SYMBOL, LOADTHEME, LOGGING_PROPERTY, MID_DOT_KEY, MID_DOT_SYMBOL, MIMETYPE_ALL, MIMETYPE_APPLICATION_XOE, MIMETYPE_APPLICATION_ZIP, MIMETYPE_STASHDIR, MIMETYPE_TEXT_HTML, MIMETYPE_TEXT_PLAIN, MIMETYPE_TEXT_VND_TVT_LNK, MIMETYPE_TEXT_WML, MIMETYPE_TEXT_XML, MIMETYPE_TEXT_XML_DTD, MIMETYPE_UNKNOWN, NAME_ATTR, NAMESPACE_SEPARATOR, NEW, NEW_ITEM_VIEW, NO_PATH, NON_BREAKING_SPACE_KEY, NON_BREAKING_SPACE_SYMBOL, NUM_LAST_APPS, ONCHANGE_ATTR, ONCLICK_ATTR, ONKEYPRESS_ATTR, ONLOAD_ATTR, ONMOUSEDOWN_ATTR, ONMOUSEOUT_ATTR, ONMOUSEOVER_ATTR, ONMOUSEUP_ATTR, PACKAGE_ARCHIVE_ROOT, PARENT_FRAME, PKG_ARCHIVE_ATTR, PKG_URI_ATTR, PKG_WORKSPACE_ATTR, PREVIOUS_DIR, PROPERTY_PREFIX, QUERY_DELIMITER, REFRESH, RESET, SAVE, SCREEN_COLORS_PROPERTY, SCREEN_HEIGHT_PROPERTY, SCREEN_TYPE_PROPERTY, SCREEN_WIDTH_PROPERTY, SCRIPT_PROPERTY, SCRIPT_SUPPORT, SELECT, SORT_BANNER_ATTR, SORT_ORDER_ATTR, SRC_ATTR, STASH_DIR_PROPERTY, STASH_FILE_SEPARATOR, STASH_PROTOCOL, STOP, STYLE_ATTR, TEMP_DIR, THEME_PROPERTY, THEMES_DIR_PROPERTY, TOP, TRIGGER_ATTR, UNICODE_DECIMAL_SYMBOL, UNICODE_HEX_SYMBOL, UNKNOWN_ICON, UNSET_NODE_TYPE, URL_CONTEXT_ATTR, USER_NAME, USERDIR_PROPERTY, VALUE_ATTR, WML_NAMESPACE, XHTML_NAMESPACE, XML, XML_PREFIX_NAMESPACE, XMLNS, XMLNS_NAMESPACE, XOE_CONFIG_DOCTYPE_NAME_NS, XOE_LOCALIZE, XPATH_ATTR
 
Method Summary
 org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
           
 org.w3c.dom.Node cloneNode(boolean deep)
           
 org.w3c.dom.Node getFirstChild()
           
 InputStream getInputStream()
          Return an InputStream from the File.
 org.w3c.dom.Node getLastChild()
           
 int getLength()
           
 boolean hasChildNodes()
           
 org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild)
           
 org.w3c.dom.Node item(int index)
           
 org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
           
 org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild)
           
 
Methods inherited from class org.xoe.core.content.ContentElement
clearCachedData, encodeName, getContentLength, getLastModified, getType, getURL, setLength
 
Methods inherited from class org.xoe.core.dom.XElement
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getElementsByTagName, getElementsByTagNameNS, getLocalName, getNamespaceURI, getNodeName, getNodeType, getPrefix, getTagName, hasAttribute, hasAttributeNS, hasAttributes, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setNodeName, setPrefix
 
Methods inherited from class org.xoe.core.dom.ParentNode
getChildNodes, reset
 
Methods inherited from class org.xoe.core.dom.XNode
getCallback, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, isSupported, setCallback, setNodeValue, setParentNode, supports, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
getChildNodes, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, isSupported, setNodeValue
 

Field Detail

file

protected File file
The file on disk that the FileContentElement represents.
Method Detail

getFirstChild

public org.w3c.dom.Node getFirstChild()
Overrides:
getFirstChild in class org.xoe.core.dom.ParentNode

getLastChild

public org.w3c.dom.Node getLastChild()
Overrides:
getLastChild in class org.xoe.core.dom.ParentNode

insertBefore

public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
                                     org.w3c.dom.Node refChild)
                              throws org.xoe.core.dom.DOMException
Overrides:
insertBefore in class org.xoe.core.dom.ParentNode

replaceChild

public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
                                     org.w3c.dom.Node oldChild)
                              throws org.xoe.core.dom.DOMException
Overrides:
replaceChild in class org.xoe.core.dom.ParentNode

removeChild

public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
                             throws org.xoe.core.dom.DOMException
Overrides:
removeChild in class org.xoe.core.dom.ParentNode

appendChild

public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
                             throws org.xoe.core.dom.DOMException
Overrides:
appendChild in class org.xoe.core.dom.ParentNode

hasChildNodes

public boolean hasChildNodes()
Overrides:
hasChildNodes in class org.xoe.core.dom.ParentNode

cloneNode

public org.w3c.dom.Node cloneNode(boolean deep)
Overrides:
cloneNode in class ContentElement

item

public org.w3c.dom.Node item(int index)
Overrides:
item in class org.xoe.core.dom.ParentNode

getLength

public int getLength()
Overrides:
getLength in class org.xoe.core.dom.ParentNode

getInputStream

public InputStream getInputStream()
Return an InputStream from the File.
Overrides:
getInputStream in class ContentElement
Following copied from class: org.xoe.core.content.ContentElement
Returns:
the InputStream associated with this content
Throws:
IOException - if an I/O error occurs