public class DefaultNutsElementFormat extends DefaultFormatBase<net.thevpc.nuts.NutsElementFormat> implements net.thevpc.nuts.NutsElementFormat
| Constructor and Description |
|---|
DefaultNutsElementFormat(DefaultNutsTextManagerModel model) |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.NutsElementPath |
compilePath(String pathExpression) |
boolean |
configureFirst(net.thevpc.nuts.NutsCommandLine cmdLine) |
<T> T |
convert(Object any,
Class<T> to) |
Object |
destruct(Object any) |
Object |
elementToObject(net.thevpc.nuts.NutsElement o,
Type type) |
net.thevpc.nuts.NutsArrayElementBuilder |
forArray() |
net.thevpc.nuts.NutsPrimitiveElement |
forBoolean(boolean value) |
net.thevpc.nuts.NutsPrimitiveElement |
forBoolean(String value) |
net.thevpc.nuts.NutsPrimitiveElement |
forByte(Byte value) |
net.thevpc.nuts.NutsPrimitiveElement |
forDouble(Double value) |
net.thevpc.nuts.NutsElementEntry |
forEntry(net.thevpc.nuts.NutsElement key,
net.thevpc.nuts.NutsElement value) |
net.thevpc.nuts.NutsPrimitiveElement |
forFalse() |
net.thevpc.nuts.NutsPrimitiveElement |
forFloat(Float value) |
net.thevpc.nuts.NutsPrimitiveElement |
forFloat(Short value) |
net.thevpc.nuts.NutsPrimitiveElement |
forInstant(Date value) |
net.thevpc.nuts.NutsPrimitiveElement |
forInstant(Instant instant) |
net.thevpc.nuts.NutsPrimitiveElement |
forInstant(String value) |
net.thevpc.nuts.NutsPrimitiveElement |
forInt(Integer value) |
net.thevpc.nuts.NutsPrimitiveElement |
forLong(Long value) |
net.thevpc.nuts.NutsPrimitiveElement |
forNull() |
net.thevpc.nuts.NutsPrimitiveElement |
forNumber(Number value) |
net.thevpc.nuts.NutsPrimitiveElement |
forNumber(String value) |
net.thevpc.nuts.NutsObjectElementBuilder |
forObject() |
net.thevpc.nuts.NutsPrimitiveElement |
forString(String str) |
net.thevpc.nuts.NutsPrimitiveElement |
forTrue() |
net.thevpc.nuts.NutsContentType |
getContentType() |
Predicate<Type> |
getDestructTypeFilter() |
NutsElementFactoryService |
getElementFactoryService() |
Object |
getValue() |
boolean |
isCompact() |
net.thevpc.nuts.NutsIterableFormat |
iter(net.thevpc.nuts.NutsPrintStream writer) |
net.thevpc.nuts.NutsElement |
parse(byte[] bytes) |
<T> T |
parse(byte[] bytes,
Class<T> clazz) |
net.thevpc.nuts.NutsElement |
parse(File file) |
<T> T |
parse(File file,
Class<T> clazz) |
net.thevpc.nuts.NutsElement |
parse(InputStream inputStream) |
<T> T |
parse(InputStream inputStream,
Class<T> clazz) |
net.thevpc.nuts.NutsElement |
parse(Path file) |
<T> T |
parse(Path file,
Class<T> clazz) |
net.thevpc.nuts.NutsElement |
parse(Reader reader) |
<T> T |
parse(Reader reader,
Class<T> clazz) |
net.thevpc.nuts.NutsElement |
parse(String string) |
<T> T |
parse(String string,
Class<T> clazz) |
net.thevpc.nuts.NutsElement |
parse(URL url) |
<T> T |
parse(URL url,
Class<T> clazz) |
void |
print(net.thevpc.nuts.NutsPrintStream out) |
net.thevpc.nuts.NutsElementFormat |
setCompact(boolean compact) |
net.thevpc.nuts.NutsElementFormat |
setContentType(net.thevpc.nuts.NutsContentType contentType) |
net.thevpc.nuts.NutsElementFormat |
setDestructTypeFilter(Predicate<Type> destructTypeFilter) |
void |
setMapper(Class type,
net.thevpc.nuts.NutsElementMapper mapper) |
net.thevpc.nuts.NutsElementFormat |
setValue(Object value) |
net.thevpc.nuts.NutsElement |
toElement(Object o) |
format, getValidPrintStream, getValidPrintStream, print, print, print, print, print, print, println, println, println, println, println, println, println, toStringcheckSession, configure, configure, getName, getSession, getWorkspace, isNtf, setNtf, setSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconfigure, of, setNtf, setSessionpublic DefaultNutsElementFormat(DefaultNutsTextManagerModel model)
public net.thevpc.nuts.NutsContentType getContentType()
getContentType in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsElementFormat setContentType(net.thevpc.nuts.NutsContentType contentType)
setContentType in interface net.thevpc.nuts.NutsElementFormatpublic boolean isCompact()
isCompact in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsElementFormat setCompact(boolean compact)
setCompact in interface net.thevpc.nuts.NutsElementFormatpublic <T> T parse(URL url, Class<T> clazz)
parse in interface net.thevpc.nuts.NutsElementFormatpublic <T> T parse(InputStream inputStream, Class<T> clazz)
parse in interface net.thevpc.nuts.NutsElementFormatpublic <T> T parse(String string, Class<T> clazz)
parse in interface net.thevpc.nuts.NutsElementFormatpublic <T> T parse(byte[] bytes,
Class<T> clazz)
parse in interface net.thevpc.nuts.NutsElementFormatpublic <T> T parse(Reader reader, Class<T> clazz)
parse in interface net.thevpc.nuts.NutsElementFormatpublic <T> T parse(Path file, Class<T> clazz)
parse in interface net.thevpc.nuts.NutsElementFormatpublic <T> T parse(File file, Class<T> clazz)
parse in interface net.thevpc.nuts.NutsElementFormatpublic boolean configureFirst(net.thevpc.nuts.NutsCommandLine cmdLine)
configureFirst in interface net.thevpc.nuts.NutsCommandLineConfigurablepublic Object getValue()
getValue in interface net.thevpc.nuts.NutsElementFormatgetValue in interface net.thevpc.nuts.NutsObjectFormatpublic net.thevpc.nuts.NutsElementFormat setValue(Object value)
setValue in interface net.thevpc.nuts.NutsElementFormatsetValue in interface net.thevpc.nuts.NutsObjectFormatpublic net.thevpc.nuts.NutsElementPath compilePath(String pathExpression)
compilePath in interface net.thevpc.nuts.NutsElementFormatpublic <T> T convert(Object any, Class<T> to)
convert in interface net.thevpc.nuts.NutsElementFormatpublic void print(net.thevpc.nuts.NutsPrintStream out)
print in interface net.thevpc.nuts.NutsFormatprint in class DefaultFormatBase<net.thevpc.nuts.NutsElementFormat>public Object destruct(Object any)
destruct in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsElement toElement(Object o)
toElement in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsElementEntry forEntry(net.thevpc.nuts.NutsElement key,
net.thevpc.nuts.NutsElement value)
forEntry in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsObjectElementBuilder forObject()
forObject in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsArrayElementBuilder forArray()
forArray in interface net.thevpc.nuts.NutsElementFormatpublic void setMapper(Class type, net.thevpc.nuts.NutsElementMapper mapper)
setMapper in interface net.thevpc.nuts.NutsElementFormatpublic NutsElementFactoryService getElementFactoryService()
public net.thevpc.nuts.NutsPrimitiveElement forString(String str)
forString in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsPrimitiveElement forBoolean(boolean value)
forBoolean in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsPrimitiveElement forBoolean(String value)
forBoolean in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsPrimitiveElement forTrue()
forTrue in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsPrimitiveElement forNull()
forNull in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsPrimitiveElement forInstant(Instant instant)
forInstant in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsPrimitiveElement forByte(Byte value)
forByte in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsPrimitiveElement forInt(Integer value)
forInt in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsPrimitiveElement forLong(Long value)
forLong in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsPrimitiveElement forDouble(Double value)
forDouble in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsPrimitiveElement forFloat(Float value)
forFloat in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsPrimitiveElement forFloat(Short value)
forFloat in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsPrimitiveElement forNumber(Number value)
forNumber in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsPrimitiveElement forFalse()
forFalse in interface net.thevpc.nuts.NutsElementFormatpublic Predicate<Type> getDestructTypeFilter()
getDestructTypeFilter in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsElementFormat setDestructTypeFilter(Predicate<Type> destructTypeFilter)
setDestructTypeFilter in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsPrimitiveElement forNumber(String value)
forNumber in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsPrimitiveElement forInstant(Date value)
forInstant in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsPrimitiveElement forInstant(String value)
forInstant in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsIterableFormat iter(net.thevpc.nuts.NutsPrintStream writer)
iter in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsElement parse(URL url)
parse in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsElement parse(InputStream inputStream)
parse in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsElement parse(String string)
parse in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsElement parse(byte[] bytes)
parse in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsElement parse(Reader reader)
parse in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsElement parse(Path file)
parse in interface net.thevpc.nuts.NutsElementFormatpublic net.thevpc.nuts.NutsElement parse(File file)
parse in interface net.thevpc.nuts.NutsElementFormatCopyright © 2021 vpc open source initiative. All rights reserved.