本文整理汇总了Java中net.opengis.eml.x001.EMLDocument.setEML方法的典型用法代码示例。如果您正苦于以下问题:Java EMLDocument.setEML方法的具体用法?Java EMLDocument.setEML怎么用?Java EMLDocument.setEML使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.opengis.eml.x001.EMLDocument
的用法示例。
在下文中一共展示了EMLDocument.setEML方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: generateOutput
import net.opengis.eml.x001.EMLDocument; //导入方法依赖的package包/类
@Override
public Object generateOutput(MapEposEvent resultEvent) {
this.eventMap = resultEvent;
if (this.eventMap.containsKey(MapEposEvent.ORIGNIAL_OBJECT_KEY)) {
this.resultEventDoc = EventDocument.Factory.newInstance();
this.resultEventType = this.resultEventDoc.addNewEvent();
}
else {
this.resultDerivedEventDoc = DerivedEventDocument.Factory.newInstance();
this.resultDerivedEventType = this.resultDerivedEventDoc.addNewDerivedEvent();
}
EMLDocument emlDoc = EMLDocument.Factory.newInstance();
emlDoc.setEML(eml);
return generateEventDocument(emlDoc);
}
示例2: generateEventDocument
import net.opengis.eml.x001.EMLDocument; //导入方法依赖的package包/类
/**
* @param eml if eml available put it in the procedure
* @return XmlObject holding the {@link EventType}
*/
public XmlObject generateEventDocument(EML eml) {
if (this.resultEventType != null) {
generateFromEventType(this.eventMap, this.resultEventType);
return this.resultEventDoc;
}
generateFromEventType(this.eventMap, this.resultDerivedEventType);
if (eml != null) {
EMLDocument doc = EMLDocument.Factory.newInstance();
doc.setEML(eml);
this.resultDerivedEventType.setProcedure(doc);
}
else {
this.resultDerivedEventType.addNewProcedure();
}
return this.resultDerivedEventDoc;
}
示例3: serialize
import net.opengis.eml.x001.EMLDocument; //导入方法依赖的package包/类
@Override
public CharSequence serialize(FilterSerialization serializer) {
if (serializer != null) {
return serializer.serializeFilter(this);
}
EMLDocument doc = EMLDocument.Factory.newInstance();
doc.setEML(this.eml);
return doc.xmlText();
}