| de.schlund.pfixcore.editor2.core.dom.IncludeFile
All known Subclasses: de.schlund.pfixcore.editor2.core.dom.AbstractIncludeFile,
createPart | IncludePart createPart(String name)(Code) | | Creates a new IncludePart. The part is not actually created in the file,
but only in memory. Changes on the filesystem are first made, when
content is assigned to the part. If there is already a part with the
specified name, the existing part is returned.
Parameters: name - Name of the part IncludePart object representing the new IncludePart |
getContentXML | Document getContentXML()(Code) | | Returns a DOM Document representing the content of this IncludeFile. If
this IncludeFile is not yet existing on filesystem, null
is returned. This call equals to
IncludeFile.getContentXML(boolean) with
forceUpdate set to false .
DOM Document with content of this IncludeFile ornull if file is not yet existing. |
getContentXML | Document getContentXML(boolean forceUpdate)(Code) | | Returns a DOM Document representing the content of this IncludeFile. If
this IncludeFile is not yet existing on filesystem, null
is returned.
Parameters: forceUpdate - if set to true , the content will be read fromthe filesystem, otherwise the cache might be used DOM Document with content of this IncludeFile ornull if file is not yet existing. |
getPart | IncludePart getPart(String name)(Code) | | Returns IncludePart stored in this IncludeFile identified by name
Parameters: name - Name of the IncludePart to return IncludePart object corresponding to name ornull if no IncludePart for this name can be foundwithin this IncludeFile |
getParts | Collection<IncludePart> getParts()(Code) | | Returns all parts which are stored in this IncludeFile.
Iterator iterating over all parts stored in this file |
getPath | String getPath()(Code) | | Returns path and filename of this IncludeFile (relative to docroot)
Path to this IncludeFile |
getSerial | long getSerial()(Code) | | Returns a number that is incremented each time a changed version of this
file is loaded. Please note that this serial is not persistent through
restarts of the application.
Number identifying the current version |
hasPart | boolean hasPart(String name)(Code) | | Returns true if there is a part with the specified name, whereas this
does not necessarily mean, that this part is also already stored on
filesystem.
Parameters: name - Name of the part to look for true true if the part is existing,false otherwise. |
|
|