本文整理汇总了Java中org.eclipse.emf.ecore.xmi.XMLSave类的典型用法代码示例。如果您正苦于以下问题:Java XMLSave类的具体用法?Java XMLSave怎么用?Java XMLSave使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XMLSave类属于org.eclipse.emf.ecore.xmi包,在下文中一共展示了XMLSave类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: doSave
import org.eclipse.emf.ecore.xmi.XMLSave; //导入依赖的package包/类
@Override
public void doSave(OutputStream outputStream, Map<?, ?> options) throws IOException {
XMLSave xmlSave = createXMLSave(options);
if (options == null) {
options = Collections.EMPTY_MAP;
}
ResourceHandler handler = (ResourceHandler) options.get(OPTION_RESOURCE_HANDLER);
if (handler != null) {
handler.preSave(this, outputStream, options);
}
xmlSave.save(this, outputStream, options);
if (!CommonPlugin.isJunitRunning()) {
System.gc(); // SPF-6899: frees about 70MB on template plan
}
if (handler != null) {
handler.postSave(this, outputStream, options);
}
}
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:19,代码来源:PlanResourceImpl.java
示例2: createXMLSave
import org.eclipse.emf.ecore.xmi.XMLSave; //导入依赖的package包/类
@Override
protected XMLSave createXMLSave() {
prepareSave();
return new JBPMXMLSaveImpl(createXMLHelper()) {
@Override
protected boolean shouldSaveFeature(EObject o,
EStructuralFeature f) {
if (Bpmn2Package.eINSTANCE.getDocumentation_Text().equals(f)) {
return false;
}
if (Bpmn2Package.eINSTANCE.getFormalExpression_Body().equals(f)) {
return false;
}
return super.shouldSaveFeature(o,
f);
}
};
}
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:19,代码来源:JBPMBpmn2ResourceImpl.java
示例3: doSave
import org.eclipse.emf.ecore.xmi.XMLSave; //导入依赖的package包/类
/**
* @generated NOT
*/
@Override
public void doSave(OutputStream outputStream_, Map<?, ?> options_) throws IOException
{
final Map<Entry, Entry> textNodes_ = new HashMap<Entry, Entry>();
Collection<EObject> objects = EcoreUtil.copyAll(this.getContents());
SaturnResourceImpl s = new SaturnResourceImpl(this.uri);
s.init();
s.getContents().addAll(objects);
SaturnDocLoadSaveUtil.save(s, textNodes_);
XMLSave xmlSave = createXMLSave();
if (options_ == null)
{
options_ = Collections.EMPTY_MAP;
}
ResourceHandler handler = (ResourceHandler) options_.get(OPTION_RESOURCE_HANDLER);
if (handler != null)
{
handler.preSave(s, outputStream_, options_);
}
xmlSave.save(s, outputStream_, options_);
if (handler != null)
{
handler.postSave(s, outputStream_, options_);
}
}
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:37,代码来源:SaturnResourceImpl.java
示例4: createXMLSave
import org.eclipse.emf.ecore.xmi.XMLSave; //导入依赖的package包/类
protected XMLSave createXMLSave(Map options) {
if (options != null) {
Object object = options.get(XMLResource.OPTION_ROOT_OBJECTS);
if (object instanceof List) {
@SuppressWarnings("unchecked")
List<EObject> list = (List<EObject>) object;
return createXMLSave(list, false);
}
}
return createXMLSave();
}
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:12,代码来源:PlanResourceImpl.java
示例5: createXMLSave
import org.eclipse.emf.ecore.xmi.XMLSave; //导入依赖的package包/类
@Override
protected XMLSave createXMLSave() {
prepareSave();
return new XMLSaveImpl(createXMLHelper()) {
@Override
protected boolean shouldSaveFeature(EObject o, EStructuralFeature f) {
if (Bpmn2Package.eINSTANCE.getDocumentation_Text().equals(f))
return false;
if (Bpmn2Package.eINSTANCE.getFormalExpression_Body().equals(f))
return false;
return super.shouldSaveFeature(o, f);
}
};
}
开发者ID:fixteam,项目名称:fixflow,代码行数:15,代码来源:Bpmn2ResourceImpl.java
示例6: createXMLSave
import org.eclipse.emf.ecore.xmi.XMLSave; //导入依赖的package包/类
@Override
protected XMLSave createXMLSave() {
return new XMISaveImpl(createXMLHelper()) {
@Override
protected boolean shouldSaveFeature(EObject o, EStructuralFeature f) {
if (Bpmn2Package.eINSTANCE.getDocumentation_Mixed().equals(f))
return false;
if (Bpmn2Package.eINSTANCE.getFormalExpression_Mixed().equals(f))
return false;
return super.shouldSaveFeature(o, f);
}
};
}
开发者ID:fixteam,项目名称:fixflow,代码行数:14,代码来源:Bpmn2XMIResourceImpl.java
示例7: createXMLSave
import org.eclipse.emf.ecore.xmi.XMLSave; //导入依赖的package包/类
@Override
protected XMLSave createXMLSave() {
return new XMISaveImpl(createXMLHelper()) {
@Override
protected void saveHref(EObject remote, EStructuralFeature f) {
((MyXMLHelper) helper).currentFeature = f;
super.saveHref(remote, f);
}
};
}
开发者ID:markus1978,项目名称:emf-fragments,代码行数:11,代码来源:XMIFragmentImpl.java
注:本文中的org.eclipse.emf.ecore.xmi.XMLSave类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论