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