|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.codex.Codex
public class Codex
A codex is an object-oriented, version-controlled database with rich metadata. What References What? Codex -- CodexSection -- CodexResource -- CodexResourceModel :rootFile CodexNode <-- CodexEdit The gui references everything in the Codex hierarchy, but the gui is transient and goes away after every page load. Since CodexBrowser reloads itself after every CodexStructuralEdit, a CodexStructuralEdit can do whatever it wants to the Codex hierarchy, because we know that the gui will get reloaded after the edit is applied. The only File we refer to is the Codex's root file. CodexEdits refer to everything in the Codex hierarchy as well, and unlike the gui the edits stay around between CodexStructuralEdits. A CodexEdit's reference to the Codex hierarchy has to stay valid for the life of the program, so once a Codex object is created it cannot be dereferenced.
| Constructor Summary | |
|---|---|
protected |
Codex(java.lang.String name,
java.io.File rootDirectory,
ConfigLevel configLevel,
CodexType codexType)
|
| Method Summary | |
|---|---|
CodexArchive |
archive()
|
protected java.io.File |
createFile()
|
void |
deleteCodex()
|
java.lang.String |
getArchivePath()
|
Codex |
getCodex()
|
java.lang.String |
getCodexNodeName()
|
CodexNode |
getCodexParent()
|
CodexResource |
getCodexResource()
|
CodexSection |
getCodexSection()
|
CodexType |
getCodexType()
|
ConfigLevel |
getConfigLevel()
|
java.lang.String |
getName()
|
CodexSection |
getRoot()
Get the root of the section tree. |
java.io.File |
getRootDirectory()
|
Workspace |
getWorkspace()
Copies the Codex to another config level. |
void |
install(java.io.File zipfile)
Installs the given zipfile. |
java.util.List<CodexArchive> |
listArchives()
|
protected void |
loadRoot()
|
void |
rename(java.lang.String newName)
|
CodexResource |
resourceAt(Path path)
|
CodexResource |
resourceAt(java.lang.String path)
|
void |
restore(CodexArchive archive)
|
CodexSection |
sectionAt(Path path)
|
CodexSection |
sectionAt(java.lang.String path)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Codex(java.lang.String name,
java.io.File rootDirectory,
ConfigLevel configLevel,
CodexType codexType)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
protected java.io.File createFile()
protected void loadRoot()
throws java.io.IOException
java.io.IOExceptionpublic Workspace getWorkspace()
getWorkspace in interface CodexNodenewConfigLevel -
java.io.IOExceptionpublic Codex getCodex()
getCodex in interface CodexNodepublic CodexSection getCodexSection()
getCodexSection in interface CodexNodepublic CodexResource getCodexResource()
getCodexResource in interface CodexNode
public void deleteCodex()
throws java.io.IOException
java.io.IOExceptionpublic CodexNode getCodexParent()
getCodexParent in interface CodexNodepublic CodexType getCodexType()
public ConfigLevel getConfigLevel()
public java.lang.String getName()
public java.lang.String getCodexNodeName()
getCodexNodeName in interface CodexNodepublic CodexSection getRoot()
public java.io.File getRootDirectory()
public void rename(java.lang.String newName)
throws java.io.IOException
java.io.IOExceptionpublic CodexResource resourceAt(java.lang.String path)
public CodexResource resourceAt(Path path)
public CodexSection sectionAt(java.lang.String path)
public CodexSection sectionAt(Path path)
public java.lang.String toString()
toString in class java.lang.Object
public java.util.List<CodexArchive> listArchives()
throws java.io.IOException
java.io.IOException
public CodexArchive archive()
throws java.io.IOException
java.io.IOException
public void restore(CodexArchive archive)
throws java.io.IOException
java.io.IOException
public void install(java.io.File zipfile)
throws java.io.IOException
zipfile -
java.io.IOExceptionpublic java.lang.String getArchivePath()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||