1 package jp.ac.aiit.xdf.component.common;
4 import java.net.URISyntaxException;
8 import jp.ac.aiit.xdf.application.TagReferences;
9 import jp.ac.aiit.xdf.core.exceptions.UnexpectedBehaviorException;
10 import jp.ac.aiit.xdf.core.tags.TagLoader;
11 import jp.ac.aiit.xdf.core.tags.Tagdef.Tag;
13 import org.slf4j.Logger;
14 import org.slf4j.LoggerFactory;
20 public class CommonTagReferences implements TagReferences {
21 private static final Logger log = LoggerFactory.getLogger(CommonTagReferences.class);
22 private static final String COMMON_TAGS = "xdf-commontags.xml";
25 public Map<String, Tag> getDefinedTags() {
27 URL url = ClassLoader.getSystemResource(COMMON_TAGS);
29 TagLoader loader = new TagLoader();
30 return loader.load(new File(url.toURI()));
31 } catch(URISyntaxException e) {
32 log.error("Common用タグ定義ファイルがロードできません。", e);
33 throw new UnexpectedBehaviorException("Common用タグ定義ファイルがロードできません。", e);
38 public String getReferenceId() {