All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.juneau.uon.UonParserBuilder Maven / Gradle / Ivy

There is a newer version: 9.0.1
Show newest version
// ***************************************************************************************************************************
// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.  See the NOTICE file *
// * distributed with this work for additional information regarding copyright ownership.  The ASF licenses this file        *
// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance            *
// * with the License.  You may obtain a copy of the License at                                                              *
// *                                                                                                                         *
// *  http://www.apache.org/licenses/LICENSE-2.0                                                                             *
// *                                                                                                                         *
// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an  *
// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the License for the        *
// * specific language governing permissions and limitations under the License.                                              *
// ***************************************************************************************************************************
package org.apache.juneau.uon;

import static org.apache.juneau.uon.UonParser.*;

import java.util.*;

import org.apache.juneau.*;
import org.apache.juneau.http.*;
import org.apache.juneau.parser.*;
import org.apache.juneau.urlencoding.*;

/**
 * Builder class for building instances of UON parsers.
 */
public class UonParserBuilder extends ParserBuilder {

	/**
	 * Constructor, default settings.
	 */
	public UonParserBuilder() {
		super();
	}

	/**
	 * Constructor.
	 *
	 * @param propertyStore The initial configuration settings for this builder.
	 */
	public UonParserBuilder(PropertyStore propertyStore) {
		super(propertyStore);
	}

	@Override /* CoreObjectBuilder */
	public UonParser build() {
		return new UonParser(propertyStore);
	}


	//--------------------------------------------------------------------------------
	// Properties
	//--------------------------------------------------------------------------------

	/**
	 * Configuration property: Decode "%xx" sequences.
	 *
	 * 
    *
  • Name: "UonParser.decodeChars" *
  • Data type: Boolean *
  • Default: false for {@link UonParser}, true for {@link UrlEncodingParser} *
  • Session-overridable: true *
* *

* Specify true if URI encoded characters should be decoded, false if they've already been * decoded before being passed to this parser. * *

Notes:
*
    *
  • This is equivalent to calling property(UON_decodeChars, value). *
* * @param value The new value for this property. * @return This object (for method chaining). * @see UonParser#UON_decodeChars */ public UonParserBuilder decodeChars(boolean value) { return property(UON_decodeChars, value); } /** * Shortcut for calling decodeChars(true). * * @return This object (for method chaining). */ public UonParserBuilder decoding() { return decodeChars(true); } @Override /* ParserBuilder */ public UonParserBuilder trimStrings(boolean value) { super.trimStrings(value); return this; } @Override /* ParserBuilder */ public UonParserBuilder strict(boolean value) { super.strict(value); return this; } @Override /* ParserBuilder */ public UonParserBuilder strict() { super.strict(); return this; } @Override /* ParserBuilder */ public UonParserBuilder inputStreamCharset(String value) { super.inputStreamCharset(value); return this; } @Override /* ParserBuilder */ public UonParserBuilder fileCharset(String value) { super.fileCharset(value); return this; } @Override /* ParserBuilder */ public UonParserBuilder listener(Class value) { super.listener(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder beansRequireDefaultConstructor(boolean value) { super.beansRequireDefaultConstructor(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder beansRequireSerializable(boolean value) { super.beansRequireSerializable(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder beansRequireSettersForGetters(boolean value) { super.beansRequireSettersForGetters(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder beansRequireSomeProperties(boolean value) { super.beansRequireSomeProperties(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder beanMapPutReturnsOldValue(boolean value) { super.beanMapPutReturnsOldValue(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder beanConstructorVisibility(Visibility value) { super.beanConstructorVisibility(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder beanClassVisibility(Visibility value) { super.beanClassVisibility(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder beanFieldVisibility(Visibility value) { super.beanFieldVisibility(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder methodVisibility(Visibility value) { super.methodVisibility(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder useJavaBeanIntrospector(boolean value) { super.useJavaBeanIntrospector(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder useInterfaceProxies(boolean value) { super.useInterfaceProxies(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder ignoreUnknownBeanProperties(boolean value) { super.ignoreUnknownBeanProperties(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder ignoreUnknownNullBeanProperties(boolean value) { super.ignoreUnknownNullBeanProperties(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder ignorePropertiesWithoutSetters(boolean value) { super.ignorePropertiesWithoutSetters(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder ignoreInvocationExceptionsOnGetters(boolean value) { super.ignoreInvocationExceptionsOnGetters(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder ignoreInvocationExceptionsOnSetters(boolean value) { super.ignoreInvocationExceptionsOnSetters(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder sortProperties(boolean value) { super.sortProperties(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder notBeanPackages(String...values) { super.notBeanPackages(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder notBeanPackages(Collection values) { super.notBeanPackages(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder setNotBeanPackages(String...values) { super.setNotBeanPackages(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder setNotBeanPackages(Collection values) { super.setNotBeanPackages(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder removeNotBeanPackages(String...values) { super.removeNotBeanPackages(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder removeNotBeanPackages(Collection values) { super.removeNotBeanPackages(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder notBeanClasses(Class...values) { super.notBeanClasses(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder notBeanClasses(Collection> values) { super.notBeanClasses(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder setNotBeanClasses(Class...values) { super.setNotBeanClasses(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder setNotBeanClasses(Collection> values) { super.setNotBeanClasses(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder removeNotBeanClasses(Class...values) { super.removeNotBeanClasses(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder removeNotBeanClasses(Collection> values) { super.removeNotBeanClasses(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder beanFilters(Class...values) { super.beanFilters(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder beanFilters(Collection> values) { super.beanFilters(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder setBeanFilters(Class...values) { super.setBeanFilters(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder setBeanFilters(Collection> values) { super.setBeanFilters(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder removeBeanFilters(Class...values) { super.removeBeanFilters(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder removeBeanFilters(Collection> values) { super.removeBeanFilters(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder pojoSwaps(Class...values) { super.pojoSwaps(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder pojoSwaps(Collection> values) { super.pojoSwaps(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder setPojoSwaps(Class...values) { super.setPojoSwaps(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder setPojoSwaps(Collection> values) { super.setPojoSwaps(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder removePojoSwaps(Class...values) { super.removePojoSwaps(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder removePojoSwaps(Collection> values) { super.removePojoSwaps(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder implClasses(Map,Class> values) { super.implClasses(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder implClass(Class interfaceClass, Class implClass) { super.implClass(interfaceClass, implClass); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder beanDictionary(Class...values) { super.beanDictionary(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder beanDictionary(Collection> values) { super.beanDictionary(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder setBeanDictionary(Class...values) { super.setBeanDictionary(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder setBeanDictionary(Collection> values) { super.setBeanDictionary(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder removeFromBeanDictionary(Class...values) { super.removeFromBeanDictionary(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder removeFromBeanDictionary(Collection> values) { super.removeFromBeanDictionary(values); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder beanTypePropertyName(String value) { super.beanTypePropertyName(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder defaultParser(Class value) { super.defaultParser(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder locale(Locale value) { super.locale(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder timeZone(TimeZone value) { super.timeZone(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder mediaType(MediaType value) { super.mediaType(value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder debug() { super.debug(); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder property(String name, Object value) { super.property(name, value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder properties(Map properties) { super.properties(properties); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder addToProperty(String name, Object value) { super.addToProperty(name, value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder putToProperty(String name, Object key, Object value) { super.putToProperty(name, key, value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder putToProperty(String name, Object value) { super.putToProperty(name, value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder removeFromProperty(String name, Object value) { super.removeFromProperty(name, value); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder classLoader(ClassLoader classLoader) { super.classLoader(classLoader); return this; } @Override /* CoreObjectBuilder */ public UonParserBuilder apply(PropertyStore copyFrom) { super.apply(copyFrom); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy