Jpa/Hibernate W actions with ERD support (without attributes)
[fedora-idea.git] / openapi / src / com / intellij / util / descriptors / ConfigFileFactory.java
blob3e92f8d999ea1b2b7c79c9a08b8e2ce38c3b742e
1 /*
2 * Copyright 2000-2007 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 package com.intellij.util.descriptors;
20 import com.intellij.openapi.components.ServiceManager;
21 import com.intellij.openapi.project.Project;
22 import com.intellij.openapi.vfs.VirtualFile;
23 import org.jetbrains.annotations.Nullable;
25 /**
26 * @author nik
28 public abstract class ConfigFileFactory {
30 public static ConfigFileFactory getInstance() {
31 return ServiceManager.getService(ConfigFileFactory.class);
35 public abstract ConfigFileMetaDataProvider createMetaDataProvider(ConfigFileMetaData... metaDatas);
37 public abstract ConfigFileInfoSet createConfigFileInfoSet(ConfigFileMetaDataProvider metaDataProvider);
39 public abstract ConfigFileContainer createConfigFileContainer(Project project, ConfigFileMetaDataProvider metaDataProvider,
40 ConfigFileInfoSet configuration);
42 public abstract ConfigFileMetaDataRegistry createMetaDataRegistry();
44 public abstract CustomConfigFileSet createCustomConfigFileSet();
46 @Nullable
47 public abstract VirtualFile createFile(Project project, String url, ConfigFileVersion version, final boolean forceNew);
49 public abstract ConfigFileContainer createSingleFileContainer(Project project, ConfigFileMetaData metaData);