001/** 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017package org.apache.camel.component.extension.verifier; 018 019public class CatalogVerifierCustomizer { 020 private boolean includeUnknown = true; 021 private boolean includeRequired = true; 022 private boolean includeInvalidBoolean = true; 023 private boolean includeInvalidInteger = true; 024 private boolean includeInvalidNumber = true; 025 private boolean includeInvalidEnum = true; 026 027 public boolean isIncludeUnknown() { 028 return includeUnknown; 029 } 030 031 public void setIncludeUnknown(boolean includeUnknown) { 032 this.includeUnknown = includeUnknown; 033 } 034 035 public boolean isIncludeRequired() { 036 return includeRequired; 037 } 038 039 public void setIncludeRequired(boolean includeRequired) { 040 this.includeRequired = includeRequired; 041 } 042 043 public boolean isIncludeInvalidBoolean() { 044 return includeInvalidBoolean; 045 } 046 047 public void setIncludeInvalidBoolean(boolean includeInvalidBoolean) { 048 this.includeInvalidBoolean = includeInvalidBoolean; 049 } 050 051 public boolean isIncludeInvalidInteger() { 052 return includeInvalidInteger; 053 } 054 055 public void setIncludeInvalidInteger(boolean includeInvalidInteger) { 056 this.includeInvalidInteger = includeInvalidInteger; 057 } 058 059 public boolean isIncludeInvalidNumber() { 060 return includeInvalidNumber; 061 } 062 063 public void setIncludeInvalidNumber(boolean includeInvalidNumber) { 064 this.includeInvalidNumber = includeInvalidNumber; 065 } 066 067 public boolean isIncludeInvalidEnum() { 068 return includeInvalidEnum; 069 } 070 071 public void setIncludeInvalidEnum(boolean includeInvalidEnum) { 072 this.includeInvalidEnum = includeInvalidEnum; 073 } 074 075 public CatalogVerifierCustomizer excludeUnknown() { 076 this.includeUnknown = false; 077 return this; 078 } 079 080 public CatalogVerifierCustomizer excludeRequired() { 081 this.includeRequired = false; 082 return this; 083 } 084 085 public CatalogVerifierCustomizer excludeInvalidBoolean() { 086 this.includeInvalidBoolean = false; 087 return this; 088 } 089 090 public CatalogVerifierCustomizer excludeInvalidInteger() { 091 this.includeInvalidInteger = false; 092 return this; 093 } 094 095 public CatalogVerifierCustomizer excludeInvalidNumber() { 096 this.includeInvalidNumber = false; 097 return this; 098 } 099 100 public CatalogVerifierCustomizer excludeInvalidEnum() { 101 this.includeInvalidEnum = false; 102 return this; 103 } 104}