Class UonParser.Builder<SELF extends UonParser.Builder<SELF>>
- Direct Known Subclasses:
OpenApiParser.Builder,UonParser.DefaultBuilder,UrlEncodingParser.Builder
- Enclosing class:
- UonParser
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder()Constructor, default settings.protectedCopy constructor.protectedBuilder(UonParser.Builder<?> copyFrom) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the object.abstract SELFcopy()Copy creator.decoding()Decode"%xx" sequences.decoding(boolean value) Same asdecoding()but allows you to explicitly specify the value.hashKey()Returns the hashkey of this builder.Validate end.validateEnd(boolean value) Same asvalidateEnd()but allows you to explicitly specify the value.Methods inherited from class org.apache.juneau.marshall.parser.ReaderParser.Builder
streamCharsetMethods inherited from class org.apache.juneau.marshall.parser.Parser.Builder
autoCloseStreams, autoCloseStreams, consumes, debugOutputLines, getConsumes, getNulls, listener, nulls, trimStrings, trimStrings, unbuffered, unbufferedMethods inherited from class org.apache.juneau.marshall.MarshallingContextable.Builder
activeView, annotations, beanClassVisibility, beanConstructorVisibility, beanDictionary, beanFieldVisibility, beanInterceptor, beanMapPutReturnsOldValue, beanMethodVisibility, beanProperties, beanProperties, beanProperties, beanPropertiesExcludes, beanPropertiesExcludes, beanPropertiesExcludes, beanPropertiesReadOnly, beanPropertiesReadOnly, beanPropertiesReadOnly, beanPropertiesWriteOnly, beanPropertiesWriteOnly, beanPropertiesWriteOnly, beansRequireDefaultConstructor, beansRequireSerializable, beansRequireSettersForGetters, bigNumberFormat, binaryFormat, bitSetFormat, booleanFormat, calendarFormat, classFormat, classLoader, currencyFormat, dateFormat, debug, dictionaryOn, disableBeansRequireSomeProperties, disableDefaultViewInclusion, disableIgnoreMissingSetters, disableIgnoreTransientFields, disableIgnoreUnknownNullBeanProperties, disableInterfaceProxies, durationFormat, enumFormat, example, example, findFluentSetters, findFluentSetters, floatFormat, ignoreInvocationExceptionsOnGetters, ignoreInvocationExceptionsOnSetters, ignoreUnknownBeanProperties, ignoreUnknownEnumValues, implClass, implClasses, interfaceClass, interfaces, locale, localeFormat, marshallingContext, marshallingContext, marshallingContext, marshallingContext, mediaType, notBeanClasses, notBeanPackages, periodFormat, propertyNamer, propertyNamer, recordComponentOrder, stopClass, swap, swap, swaps, swaps, temporalFormat, timeZone, timeZoneFormat, typeName, typePropertyName, typePropertyName, unsortedProperties, unsortedProperties, useJavaBeanIntrospector, uuidFormat, validateSchema, validateSchemaMethods inherited from class org.apache.juneau.marshall.Context.Builder
annotations, apply, applyAnnotations, applyAnnotations, asSubtype, build, cache, canApply, copyOrNull, debug, getApplied, getType, impl, isDebug, registerBuilders, self, type
-
Constructor Details
-
Builder
protected Builder()Constructor, default settings. -
Builder
Copy constructor.- Parameters:
copyFrom- The builder to copy from.
Cannot benull .
-
Builder
Copy constructor.- Parameters:
copyFrom- The bean to copy from.
Cannot benull .
-
-
Method Details
-
build
Description copied from class:Context.BuilderBuild the object.- Overrides:
buildin classReaderParser.Builder<SELF extends UonParser.Builder<SELF>>- Returns:
- The built object.
-
copy
Description copied from class:Context.BuilderCopy creator.- Specified by:
copyin classReaderParser.Builder<SELF extends UonParser.Builder<SELF>>- Returns:
- A new mutable copy of this builder.
-
decoding
Decode"%xx" sequences.When enabled, URI encoded characters will be decoded. Otherwise it's assumed that they've already been decoded before being passed to this parser.
Example:
// Create a decoding UON parser. ReaderParserparser = UonParser. .create () .decoding() .build();// Produces: ["foo bar", "baz quz"]. String[]foo =parser .read("@(foo%20bar,baz%20qux)" , String[].class );- Returns:
- This object.
-
decoding
Same asdecoding()but allows you to explicitly specify the value.- Parameters:
value- The value for this setting.- Returns:
- This object.
-
hashKey
Description copied from class:Context.BuilderReturns the hashkey of this builder.Used to return previously instantiated context beans that have matching hashkeys. The
HashKeyobject is suitable for use as a hashmap key of a map of context beans. A context bean is considered equivalent if theHashKey.equals(Object)method is the same.- Overrides:
hashKeyin classReaderParser.Builder<SELF extends UonParser.Builder<SELF>>- Returns:
- The hashkey of this builder.
-
validateEnd
Validate end.When enabled, after parsing a POJO from the input, verifies that the remaining input in the stream consists of only comments or whitespace.
Example:
// Create a parser using strict mode. ReaderParserparser = UonParser. .create () .validateEnd() .build();// Should fail because input has multiple POJOs. Stringin ="(foo=bar)(baz=qux)" ; MyBeanmyBean =parser .read(in , MyBean.class );- Returns:
- This object.
-
validateEnd
Same asvalidateEnd()but allows you to explicitly specify the value.- Parameters:
value- The value for this setting.- Returns:
- This object.
-