public class DefaultNutsTreeFormat extends DefaultFormatBase<net.thevpc.nuts.NutsTreeFormat> implements net.thevpc.nuts.NutsTreeFormat
| Modifier and Type | Field and Description |
|---|---|
static net.thevpc.nuts.NutsTreeLinkFormat |
LINK_ASCII_FORMATTER |
static net.thevpc.nuts.NutsTreeLinkFormat |
LINK_SPACE_FORMATTER |
static net.thevpc.nuts.NutsTreeLinkFormat |
LINK_UNICODE_FORMATTER |
net.thevpc.nuts.NutsTreeNodeFormat |
TO_STRING_FORMATTER |
| Constructor and Description |
|---|
DefaultNutsTreeFormat(net.thevpc.nuts.NutsSession session) |
DefaultNutsTreeFormat(net.thevpc.nuts.NutsSession ws,
net.thevpc.nuts.NutsTreeModel tree) |
DefaultNutsTreeFormat(net.thevpc.nuts.NutsSession ws,
net.thevpc.nuts.NutsTreeModel tree,
net.thevpc.nuts.NutsTreeNodeFormat formatter,
net.thevpc.nuts.NutsTreeLinkFormat linkFormatter) |
| Modifier and Type | Method and Description |
|---|---|
DefaultNutsTreeFormat |
addMultilineProperty(String property,
String separator) |
boolean |
configureFirst(net.thevpc.nuts.NutsCommandLine cmdLine) |
net.thevpc.nuts.NutsTreeLinkFormat |
getLinkFormat() |
net.thevpc.nuts.NutsTreeModel |
getModel() |
net.thevpc.nuts.NutsTreeNodeFormat |
getNodeFormat() |
int |
getSupportLevel(net.thevpc.nuts.spi.NutsSupportLevelContext context) |
Object |
getValue() |
boolean |
isEffectiveOmitRoot() |
boolean |
isOmitRoot() |
void |
print(net.thevpc.nuts.NutsPrintStream out) |
DefaultNutsTreeFormat |
setLinkFormat(net.thevpc.nuts.NutsTreeLinkFormat linkFormatter) |
DefaultNutsTreeFormat |
setNodeFormat(net.thevpc.nuts.NutsTreeNodeFormat formatter) |
void |
setOmitRoot(boolean hideRoot) |
DefaultNutsTreeFormat |
setValue(Object value) |
String |
toString() |
format, getValidPrintStream, getValidPrintStream, print, print, print, print, print, print, print, println, println, println, println, println, println, println, printlncheckSession, configure, configure, getName, getSession, getWorkspace, isNtf, setNtf, setSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final net.thevpc.nuts.NutsTreeLinkFormat LINK_ASCII_FORMATTER
public static final net.thevpc.nuts.NutsTreeLinkFormat LINK_SPACE_FORMATTER
public static final net.thevpc.nuts.NutsTreeLinkFormat LINK_UNICODE_FORMATTER
public final net.thevpc.nuts.NutsTreeNodeFormat TO_STRING_FORMATTER
public DefaultNutsTreeFormat(net.thevpc.nuts.NutsSession session)
public DefaultNutsTreeFormat(net.thevpc.nuts.NutsSession ws,
net.thevpc.nuts.NutsTreeModel tree)
public DefaultNutsTreeFormat(net.thevpc.nuts.NutsSession ws,
net.thevpc.nuts.NutsTreeModel tree,
net.thevpc.nuts.NutsTreeNodeFormat formatter,
net.thevpc.nuts.NutsTreeLinkFormat linkFormatter)
public net.thevpc.nuts.NutsTreeNodeFormat getNodeFormat()
getNodeFormat in interface net.thevpc.nuts.NutsTreeFormatpublic DefaultNutsTreeFormat setNodeFormat(net.thevpc.nuts.NutsTreeNodeFormat formatter)
setNodeFormat in interface net.thevpc.nuts.NutsTreeFormatpublic net.thevpc.nuts.NutsTreeLinkFormat getLinkFormat()
getLinkFormat in interface net.thevpc.nuts.NutsTreeFormatpublic DefaultNutsTreeFormat setLinkFormat(net.thevpc.nuts.NutsTreeLinkFormat linkFormatter)
setLinkFormat in interface net.thevpc.nuts.NutsTreeFormatpublic net.thevpc.nuts.NutsTreeModel getModel()
getModel in interface net.thevpc.nuts.NutsTreeFormatpublic DefaultNutsTreeFormat setValue(Object value)
setValue in interface net.thevpc.nuts.NutsContentTypeFormatsetValue in interface net.thevpc.nuts.NutsTreeFormatpublic boolean isEffectiveOmitRoot()
public boolean isOmitRoot()
public void setOmitRoot(boolean hideRoot)
public String toString()
toString in interface net.thevpc.nuts.NutsFormattoString in class DefaultFormatBase<net.thevpc.nuts.NutsTreeFormat>public void print(net.thevpc.nuts.NutsPrintStream out)
print in interface net.thevpc.nuts.NutsFormatprint in class DefaultFormatBase<net.thevpc.nuts.NutsTreeFormat>public boolean configureFirst(net.thevpc.nuts.NutsCommandLine cmdLine)
configureFirst in interface net.thevpc.nuts.NutsCommandLineConfigurablepublic Object getValue()
getValue in interface net.thevpc.nuts.NutsContentTypeFormatpublic DefaultNutsTreeFormat addMultilineProperty(String property, String separator)
public int getSupportLevel(net.thevpc.nuts.spi.NutsSupportLevelContext context)
getSupportLevel in interface net.thevpc.nuts.spi.NutsComponentCopyright © 2022 vpc open source initiative. All rights reserved.