本文整理汇总了Java中net.n3.nanoxml.IXMLBuilder类的典型用法代码示例。如果您正苦于以下问题:Java IXMLBuilder类的具体用法?Java IXMLBuilder怎么用?Java IXMLBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IXMLBuilder类属于net.n3.nanoxml包,在下文中一共展示了IXMLBuilder类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getIds
import net.n3.nanoxml.IXMLBuilder; //导入依赖的package包/类
@Nullable
protected Map<String, Set<String>> getIds(String content, final VirtualFile file, Project project) {
if (!content.contains(JavaFXNamespaceProvider.JAVAFX_NAMESPACE)) {
return null;
}
final Map<String, Set<String>> map = new HashMap<String, Set<String>>();
final String path = file.getPath();
final IXMLBuilder handler = createParseHandler(path, map);
try {
NanoXmlUtil.parse(new StringReader(content), handler);
}
catch (StopException ignore) {}
final VirtualFile sourceRoot = ProjectRootManager.getInstance(project).getFileIndex().getSourceRootForFile(file);
endDocument(path, sourceRoot, map, handler);
return map;
}
示例2: getBuildProcessApplicationClasspath
import net.n3.nanoxml.IXMLBuilder; //导入依赖的package包/类
public static List<String> getBuildProcessApplicationClasspath(boolean isLauncherUsed) {
final Set<String> cp = ContainerUtil.newHashSet();
cp.add(getResourcePath(BuildMain.class));
cp.addAll(PathManager.getUtilClassPath()); // util
cp.add(getResourcePath(Message.class)); // protobuf
cp.add(getResourcePath(NetUtil.class)); // netty
cp.add(getResourcePath(ClassWriter.class)); // asm
cp.add(getResourcePath(ClassVisitor.class)); // asm-commons
cp.add(getResourcePath(JpsModel.class)); // jps-model-api
cp.add(getResourcePath(JpsModelImpl.class)); // jps-model-impl
cp.add(getResourcePath(JpsProjectLoader.class)); // jps-model-serialization
cp.add(getResourcePath(AlienFormFileException.class)); // forms-compiler
cp.add(getResourcePath(GridConstraints.class)); // forms-rt
cp.add(getResourcePath(CellConstraints.class)); // jGoodies-forms
cp.add(getResourcePath(NotNullVerifyingInstrumenter.class)); // not-null
cp.add(getResourcePath(IXMLBuilder.class)); // nano-xml
cp.add(getResourcePath(SequenceLock.class)); // jsr166
cp.add(getJpsPluginSystemClassesPath().getAbsolutePath().replace('\\', '/'));
//don't forget to update layoutCommunityJps() in layouts.gant accordingly
if (!isLauncherUsed) {
appendJavaCompilerClasspath(cp);
}
try {
final Class<?> cmdLineWrapper = Class.forName("com.intellij.rt.execution.CommandLineWrapper");
cp.add(getResourcePath(cmdLineWrapper)); // idea_rt.jar
}
catch (Throwable ignored) {
}
return ContainerUtil.newArrayList(cp);
}
示例3: createParseHandler
import net.n3.nanoxml.IXMLBuilder; //导入依赖的package包/类
protected IXMLBuilder createParseHandler(final String path, final Map<String, Set<String>> map) {
return new NanoXmlUtil.IXMLBuilderAdapter() {
@Override
public void addAttribute(String key, String nsPrefix, String nsURI, String value, String type) throws Exception {
if (value != null && FxmlConstants.FX_ID.equals(nsPrefix + ":" + key)) {
Set<String> paths = map.get(value);
if (paths == null) {
paths = new HashSet<String>();
map.put(value, paths);
}
paths.add(path);
}
}
};
}
示例4: getBuildProcessApplicationClasspath
import net.n3.nanoxml.IXMLBuilder; //导入依赖的package包/类
public static List<String> getBuildProcessApplicationClasspath() {
final Set<String> cp = ContainerUtil.newHashSet();
cp.add(getResourcePath(BuildMain.class));
cp.addAll(PathManager.getUtilClassPath()); // util
cp.add(getResourcePath(Message.class)); // protobuf
cp.add(getResourcePath(Version.class)); // netty
cp.add(getResourcePath(ClassWriter.class)); // asm
cp.add(getResourcePath(ClassVisitor.class)); // asm-commons
cp.add(getResourcePath(JpsModel.class)); // jps-model-api
cp.add(getResourcePath(JpsModelImpl.class)); // jps-model-impl
cp.add(getResourcePath(JpsProjectLoader.class)); // jps-model-serialization
cp.add(getResourcePath(AlienFormFileException.class)); // forms-compiler
cp.add(getResourcePath(GridConstraints.class)); // forms-rt
cp.add(getResourcePath(CellConstraints.class)); // jGoodies-forms
cp.add(getResourcePath(NotNullVerifyingInstrumenter.class)); // not-null
cp.add(getResourcePath(IXMLBuilder.class)); // nano-xml
final Class<StandardJavaFileManager> optimizedFileManagerClass = getOptimizedFileManagerClass();
if (optimizedFileManagerClass != null) {
cp.add(getResourcePath(optimizedFileManagerClass)); // optimizedFileManager
}
try {
final Class<?> cmdLineWrapper = Class.forName("com.intellij.rt.execution.CommandLineWrapper");
cp.add(getResourcePath(cmdLineWrapper)); // idea_rt.jar
}
catch (Throwable ignored) {
}
for (JavaCompiler javaCompiler : ServiceLoader.load(JavaCompiler.class)) { // Eclipse compiler
final String compilerResource = getResourcePath(javaCompiler.getClass());
final String name = PathUtilRt.getFileName(compilerResource);
if (name.startsWith("ecj-") && name.endsWith(".jar")) {
cp.add(compilerResource);
}
}
return ContainerUtil.newArrayList(cp);
}
示例5: endDocument
import net.n3.nanoxml.IXMLBuilder; //导入依赖的package包/类
protected void endDocument(String math, VirtualFile sourceRoot, Map<String, Set<String>> map, IXMLBuilder handler){}