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.runtimecatalog; 018 019/** 020 * Pluggable resolver to load JSon schema files for components, data formats, languages etc. 021 */ 022public interface JSonSchemaResolver { 023 024 /** 025 * Returns the component information as JSon format. 026 * 027 * @param name the component name 028 * @return component details in JSon 029 */ 030 String getComponentJSonSchema(String name); 031 032 /** 033 * Returns the data format information as JSon format. 034 * 035 * @param name the data format name 036 * @return data format details in JSon 037 */ 038 String getDataFormatJSonSchema(String name); 039 040 /** 041 * Returns the language information as JSon format. 042 * 043 * @param name the language name 044 * @return language details in JSon 045 */ 046 String getLanguageJSonSchema(String name); 047 048 /** 049 * Returns the other (miscellaneous) information as JSon format. 050 * 051 * @param name the other (miscellaneous) name 052 * @return other (miscellaneous) details in JSon 053 */ 054 String getOtherJSonSchema(String name); 055 056 /** 057 * Returns the model information as JSon format. 058 * 059 * @param name the model name 060 * @return model details in JSon 061 */ 062 String getModelJSonSchema(String name); 063 064}