public class DefaultTreeFormat extends DefaultFormatBase<NutsTreeFormat> implements NutsTreeFormat
| Modifier and Type | Field and Description |
|---|---|
static NutsTreeLinkFormat |
LINK_ASCII_FORMATTER |
static NutsTreeLinkFormat |
LINK_SPACE_FORMATTER |
static NutsTreeLinkFormat |
LINK_UNICODE_FORMATTER |
NutsTreeNodeFormat |
TO_STRING_FORMATTER |
| Constructor and Description |
|---|
DefaultTreeFormat(NutsWorkspace ws) |
DefaultTreeFormat(NutsWorkspace ws,
NutsTreeModel tree) |
DefaultTreeFormat(NutsWorkspace ws,
NutsTreeModel tree,
NutsTreeNodeFormat formatter,
NutsTreeLinkFormat linkFormatter) |
| Modifier and Type | Method and Description |
|---|---|
DefaultTreeFormat |
addMultilineProperty(String property,
String separator) |
boolean |
configureFirst(NutsCommandLine cmdLine) |
NutsTreeLinkFormat |
getLinkFormat() |
NutsTreeModel |
getModel() |
NutsTreeNodeFormat |
getNodeFormat() |
Object |
getValue() |
boolean |
isEffectiveOmitRoot() |
boolean |
isOmitRoot() |
void |
print(NutsPrintStream out) |
DefaultTreeFormat |
setLinkFormat(NutsTreeLinkFormat linkFormatter) |
DefaultTreeFormat |
setNodeFormat(NutsTreeNodeFormat formatter) |
void |
setOmitRoot(boolean hideRoot) |
DefaultTreeFormat |
setValue(Object value) |
String |
toString() |
format, getValidPrintStream, getValidPrintStream, print, print, print, print, print, print, println, println, println, println, println, println, printlncheckSession, configure, configure, getName, getSession, getWorkspace, isNtf, setNtf, setSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconfigure, setNtf, setSessionformat, getSession, isNtf, print, print, print, print, print, print, println, println, println, println, println, println, printlnconfigure, configureLastpublic static final NutsTreeLinkFormat LINK_ASCII_FORMATTER
public static final NutsTreeLinkFormat LINK_SPACE_FORMATTER
public static final NutsTreeLinkFormat LINK_UNICODE_FORMATTER
public final NutsTreeNodeFormat TO_STRING_FORMATTER
public DefaultTreeFormat(NutsWorkspace ws)
public DefaultTreeFormat(NutsWorkspace ws, NutsTreeModel tree)
public DefaultTreeFormat(NutsWorkspace ws, NutsTreeModel tree, NutsTreeNodeFormat formatter, NutsTreeLinkFormat linkFormatter)
public NutsTreeNodeFormat getNodeFormat()
getNodeFormat in interface NutsTreeFormatpublic DefaultTreeFormat setNodeFormat(NutsTreeNodeFormat formatter)
setNodeFormat in interface NutsTreeFormatpublic NutsTreeLinkFormat getLinkFormat()
getLinkFormat in interface NutsTreeFormatpublic DefaultTreeFormat setLinkFormat(NutsTreeLinkFormat linkFormatter)
setLinkFormat in interface NutsTreeFormatpublic NutsTreeModel getModel()
getModel in interface NutsTreeFormatpublic DefaultTreeFormat setValue(Object value)
setValue in interface NutsObjectFormatsetValue in interface NutsTreeFormatpublic boolean isEffectiveOmitRoot()
public boolean isOmitRoot()
public void setOmitRoot(boolean hideRoot)
public String toString()
toString in interface NutsFormattoString in class DefaultFormatBase<NutsTreeFormat>public void print(NutsPrintStream out)
print in interface NutsFormatprint in class DefaultFormatBase<NutsTreeFormat>public boolean configureFirst(NutsCommandLine cmdLine)
configureFirst in interface NutsCommandLineConfigurablepublic Object getValue()
getValue in interface NutsObjectFormatpublic DefaultTreeFormat addMultilineProperty(String property, String separator)
Copyright © 2021 vpc open source initiative. All rights reserved.