Package com.atlassian.json.schema.scanner.model

Examples of com.atlassian.json.schema.scanner.model.InterfaceList


public class InterfaceImplementationScanner
{
    public void scan(String basePackage, String classpath, File outputFile) throws Exception
    {
        InterfaceParser parser = new InterfaceParser();
        InterfaceList list = parser.parse(basePackage, classpath);

        Gson gson = new Gson();

        Files.write(gson.toJson(list),outputFile, Charsets.UTF_8);
    }
View Full Code Here


        for (Map.Entry<String, Set<String>> entry : ifaceToImpls.entrySet())
        {
            implementors.add(new InterfaceImplementors(entry.getKey(), entry.getValue()));
        }
        return new InterfaceList(implementors);
    }
View Full Code Here

            Gson gson = new GsonBuilder().setFieldNamingStrategy(new SchemaFieldNamingStrategy()).create();
            Gson prettyGson = new GsonBuilder().setPrettyPrinting().setFieldNamingStrategy(new SchemaFieldNamingStrategy()).create();
           
            JsonSchemaGeneratorProvider provider = getProvider();
            JsonSchemaDocs schemaDocs = new JsonSchemaDocs();
            InterfaceList interfaceList = new InterfaceList();
           
            File docsFile = new File(getDefaultDocsFile());
            File interfacesFile = new File(getDefaultInterfacesFile());

            if (docsFile.exists() && docsFile.canRead())
View Full Code Here

public class DefaultJsonSchemaGenerator extends AbstractJsonSchemaGenerator
{

    public DefaultJsonSchemaGenerator()
    {
        this(EnumCase.UPPER, new InterfaceList(), new JsonSchemaDocs(), null);
    }
View Full Code Here

TOP

Related Classes of com.atlassian.json.schema.scanner.model.InterfaceList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.