本文整理汇总了Java中at.punkt.lodms.integration.ConfigurationException类的典型用法代码示例。如果您正苦于以下问题:Java ConfigurationException类的具体用法?Java ConfigurationException怎么用?Java ConfigurationException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ConfigurationException类属于at.punkt.lodms.integration包,在下文中一共展示了ConfigurationException类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: displayConfigWindow
import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
public void displayConfigWindow(final ConfigBeanProvider configBeanProvider, final ConfigSuccessHandler handler, Object config) {
configWindow.removeAllComponents();
configWindow.setCaption("Configuration: " + ((UIComponent) configBeanProvider).getName());
VerticalLayout configWinLayout = new VerticalLayout();
Form form = new Form(new VerticalLayout());
if (config == null) {
config = configBeanProvider.newDefaultConfig();
}
final BeanItem beanItem = new BeanItem(config);
form.setItemDataSource(beanItem);
form.setImmediate(true);
configWinLayout.addComponent(form);
Button configureButton = new Button("Configure");
configureButton.addListener(new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
try {
configBeanProvider.configure(beanItem.getBean());
handler.configured();
getMainWindow().removeWindow(configWindow);
} catch (ConfigurationException ex) {
getMainWindow().showNotification(ex.getMessage(), Notification.TYPE_ERROR_MESSAGE);
logger.error("Unable to configure component", ex);
}
}
});
Label configExplanation = new Label(CONFIG_INFO, Label.CONTENT_TEXT);
configExplanation.addStyleName("lodms-config-info");
configWinLayout.addComponent(configExplanation);
configWinLayout.addComponent(configureButton);
configWinLayout.setComponentAlignment(configureButton, Alignment.BOTTOM_CENTER);
configWindow.addComponent(configWinLayout);
getMainWindow().addWindow(configWindow);
}
示例2: configureInternal
import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(CkanExtractorConfig config) throws ConfigurationException {
subjectPrefix = config.getSubjectPrefix();
predicatePrefix = config.getPredicatePrefix();
baseUri = config.getBaseUri();
packageIds.clear();
packageIds.addAll(config.getPackageIds());
ignoredKeys = Arrays.asList(config.getIgnoredKeys().split("\\s*,\\s*"));
harvestAll = config.getAllDatasets();
}
示例3: configureInternal
import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(VirtuosoExtractorConfig config) throws ConfigurationException {
String connectionString = "jdbc:virtuoso://" + config.getHost() + ':' + config.getPort();
repository = new VirtuosoRepository(connectionString, config.getUserName(), config.getPassword(), true);
ValueFactory valueFactory = repository.getValueFactory();
if (config.getGraph() != null)
graph = valueFactory.createURI(config.getGraph());
if (config.getSubject() != null)
subject = valueFactory.createURI(config.getSubject());
if (config.getPredicate() != null)
predicate = valueFactory.createURI(config.getPredicate());
}
示例4: configureInternal
import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(Any23Config config) throws ConfigurationException {
try {
for (Any23Document doc : config.getDocuments()) {
DocumentSource source = new HTTPDocumentSource(runner.getHTTPClient(), doc.getUrl());
sources.add(source);
}
} catch (Exception ex) {
throw new ConfigurationException(ex);
}
}
示例5: configureInternal
import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(SPARQLConfig config) throws ConfigurationException {
try {
endpoint = new URL(config.getEndpoint());
query = config.getQuery();
} catch (MalformedURLException ex) {
throw new ConfigurationException(ex);
}
}
示例6: configureInternal
import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(RDFExtractorConfig config) throws ConfigurationException {
rdfLocation = config.getRdfLocation();
}
示例7: configureInternal
import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(ODSValueMapperConfig config) throws ConfigurationException {
}
示例8: configureInternal
import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@SuppressWarnings("ParameterHidesMemberVariable")
@Override
protected void configureInternal(ODSDcatGeneratorConfig config) throws ConfigurationException {
catalogIdentifier = config.getCatalogIdentifier();
}
示例9: configureInternal
import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(Object config) throws ConfigurationException {
}
示例10: configureInternal
import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(TranslatorConfig config) throws ConfigurationException {
}
示例11: configureInternal
import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(ODSModificationDetectorConfig config) throws ConfigurationException {
}
示例12: configureInternal
import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(MultipleSparqlUpdateConfig config) throws ConfigurationException {
}
示例13: configureInternal
import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(DBPediaDataConfig config) throws ConfigurationException {
}
示例14: configureInternal
import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(ThesaurusImportConfig config) throws ConfigurationException {
}
示例15: configureInternal
import at.punkt.lodms.integration.ConfigurationException; //导入依赖的package包/类
@Override
protected void configureInternal(PPXConfig config) throws ConfigurationException {
}