|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.codex.CodexSection
public class CodexSection
A subsection of a codex, occupying a branch in the tree structure similar to a directory in a filesystem. A CodexSection can contain one or more subsections itself, and may also contain one or more CodexDocuments.
| Field Summary | |
|---|---|
protected ResourceFactory |
resourceFactory
|
protected Naming<CodexResource> |
resources
|
protected Naming<CodexSection> |
subsections
|
| Method Summary | |
|---|---|
CodexResource |
createBlankResource(java.lang.String name)
Doesn't need a resource factory to create a resource. |
java.io.File |
createFile()
|
CodexResource |
createResource(java.lang.String name)
|
CodexResource |
createResource(java.lang.String name,
byte[] contents)
|
protected static CodexSection |
createRoot(Codex codex,
ResourceFactory resourceFactory,
java.lang.Class... modelClasses)
Used by Codex to create its root subsection. |
Codex |
getCodex()
|
java.lang.String |
getCodexNodeName()
|
CodexNode |
getCodexParent()
|
CodexResource |
getCodexResource()
|
CodexSection |
getCodexSection()
|
java.lang.String |
getDefaultExtension()
|
java.lang.String |
getName()
|
protected CodexSection |
getOrCreateCodexSubsection(java.lang.String name,
ResourceFactory resourceFactory,
java.lang.Class... modelClasses)
Used by CodexManager to add the subsections for a given Codex type. |
CodexSection |
getParent()
|
Path |
getPath()
|
Naming<CodexResource> |
getResources()
|
Naming |
getSubsections()
|
Workspace |
getWorkspace()
|
java.util.Iterator<CodexResource> |
iterateResources()
|
java.util.Iterator<CodexSection> |
iterator()
|
void |
moveSection(java.lang.String newFullPath)
|
protected void |
notifyMove(java.lang.String newFullPath)
|
protected void |
notifyRemoveResource(CodexResource resource)
|
CodexResource |
resourceAt(Path path)
|
CodexResource |
resourceAt(java.lang.String path)
|
CodexSection |
sectionAt(Path path)
|
CodexSection |
sectionAt(java.lang.String path)
|
CodexSection |
subsectionNamed(java.lang.String name)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ResourceFactory resourceFactory
protected Naming<CodexResource> resources
protected Naming<CodexSection> subsections
| Method Detail |
|---|
public java.io.File createFile()
protected void notifyRemoveResource(CodexResource resource)
protected void notifyMove(java.lang.String newFullPath)
public CodexResource createBlankResource(java.lang.String name)
throws java.io.IOException
name -
java.io.IOException
public CodexResource createResource(java.lang.String name)
throws java.io.IOException
java.io.IOException
public CodexResource createResource(java.lang.String name,
byte[] contents)
throws java.io.IOException
java.io.IOExceptionpublic CodexNode getCodexParent()
getCodexParent in interface CodexNodepublic java.lang.String getDefaultExtension()
public Path getPath()
public java.util.Iterator<CodexResource> iterateResources()
public java.util.Iterator<CodexSection> iterator()
public void moveSection(java.lang.String newFullPath)
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 CodexSection subsectionNamed(java.lang.String name)
public Workspace getWorkspace()
getWorkspace in interface CodexNodepublic Codex getCodex()
getCodex in interface CodexNodepublic CodexSection getCodexSection()
getCodexSection in interface CodexNodepublic CodexResource getCodexResource()
getCodexResource in interface CodexNodepublic java.lang.String getName()
public java.lang.String getCodexNodeName()
getCodexNodeName in interface CodexNodepublic CodexSection getParent()
public Naming<CodexResource> getResources()
public Naming getSubsections()
protected static CodexSection createRoot(Codex codex,
ResourceFactory resourceFactory,
java.lang.Class... modelClasses)
throws java.io.IOException
java.io.IOException
protected CodexSection getOrCreateCodexSubsection(java.lang.String name,
ResourceFactory resourceFactory,
java.lang.Class... modelClasses)
throws java.io.IOException
name -
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||