本文整理了Java中org.milyn.yaml.handler.YamlEventStreamHandler
类的一些代码示例,展示了YamlEventStreamHandler
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YamlEventStreamHandler
类的具体详情如下:
包路径:org.milyn.yaml.handler.YamlEventStreamHandler
类名称:YamlEventStreamHandler
[英]Takes a iterable yaml event stream and handles the events of the stream.
[中]获取一个iterable yaml事件流并处理该流的事件。
代码示例来源:origin: org.milyn/milyn-smooks-yaml
@Initialize
public void initialize() {
ElementNameFormatter elementNameFormatter = new ElementNameFormatter(initKeyMap(), keyWhitspaceReplacement, keyPrefixOnNumeric, illegalElementNameCharReplacement);
yamlEventStreamParser = new YamlEventStreamHandler(elementNameFormatter, documentName, arrayElementName);
}
/*
代码示例来源:origin: org.milyn/milyn-smooks-all
yamlEventStreamParser.handle(eventHandler, yamlEventStream);
代码示例来源:origin: smooks/smooks
ScalarEvent es = (ScalarEvent) e;
if(isNextElementName && !lastTypeIsArray(typeStack)) {
String name = nameFormatter.format(es.getValue());
String elementName = lastTypeIsArray(typeStack) ? arrayElementName : elementNameStack.peek();
eventHandler.startStructureEvent(cse, elementName);
typeStack.pop();
boolean typeStackPeekIsArray = lastTypeIsArray(typeStack);
String elementName = lastTypeIsArray(typeStack) ? arrayElementName : elementNameStack.pop();
代码示例来源:origin: smooks/smooks
yamlEventStreamParser.handle(eventHandler, yamlEventStream);
代码示例来源:origin: org.virtuslab/milyn-smooks-yaml
@Initialize
public void initialize() {
ElementNameFormatter elementNameFormatter = new ElementNameFormatter(initKeyMap(), keyWhitspaceReplacement, keyPrefixOnNumeric, illegalElementNameCharReplacement);
yamlEventStreamParser = new YamlEventStreamHandler(elementNameFormatter, documentName, arrayElementName);
}
/*
代码示例来源:origin: org.milyn/milyn-smooks-all
ScalarEvent es = (ScalarEvent) e;
if(isNextElementName && !lastTypeIsArray(typeStack)) {
String name = nameFormatter.format(es.getValue());
String elementName = lastTypeIsArray(typeStack) ? arrayElementName : elementNameStack.peek();
eventHandler.startStructureEvent(cse, elementName);
typeStack.pop();
boolean typeStackPeekIsArray = lastTypeIsArray(typeStack);
String elementName = lastTypeIsArray(typeStack) ? arrayElementName : elementNameStack.pop();
代码示例来源:origin: org.milyn/milyn-smooks-yaml
yamlEventStreamParser.handle(eventHandler, yamlEventStream);
代码示例来源:origin: smooks/smooks
@Initialize
public void initialize() {
ElementNameFormatter elementNameFormatter = new ElementNameFormatter(initKeyMap(), keyWhitspaceReplacement, keyPrefixOnNumeric, illegalElementNameCharReplacement);
yamlEventStreamParser = new YamlEventStreamHandler(elementNameFormatter, documentName, arrayElementName);
}
/*
代码示例来源:origin: org.virtuslab/milyn-smooks-yaml
ScalarEvent es = (ScalarEvent) e;
if(isNextElementName && !lastTypeIsArray(typeStack)) {
String name = nameFormatter.format(es.getValue());
String elementName = lastTypeIsArray(typeStack) ? arrayElementName : elementNameStack.peek();
eventHandler.startStructureEvent(cse, elementName);
typeStack.pop();
boolean typeStackPeekIsArray = lastTypeIsArray(typeStack);
String elementName = lastTypeIsArray(typeStack) ? arrayElementName : elementNameStack.pop();
代码示例来源:origin: org.virtuslab/milyn-smooks-yaml
yamlEventStreamParser.handle(eventHandler, yamlEventStream);
代码示例来源:origin: org.milyn/milyn-smooks-all
@Initialize
public void initialize() {
ElementNameFormatter elementNameFormatter = new ElementNameFormatter(initKeyMap(), keyWhitspaceReplacement, keyPrefixOnNumeric, illegalElementNameCharReplacement);
yamlEventStreamParser = new YamlEventStreamHandler(elementNameFormatter, documentName, arrayElementName);
}
/*
代码示例来源:origin: org.milyn/milyn-smooks-yaml
ScalarEvent es = (ScalarEvent) e;
if(isNextElementName && !lastTypeIsArray(typeStack)) {
String name = nameFormatter.format(es.getValue());
String elementName = lastTypeIsArray(typeStack) ? arrayElementName : elementNameStack.peek();
eventHandler.startStructureEvent(cse, elementName);
typeStack.pop();
boolean typeStackPeekIsArray = lastTypeIsArray(typeStack);
String elementName = lastTypeIsArray(typeStack) ? arrayElementName : elementNameStack.pop();
代码示例来源:origin: org.milyn/milyn-smooks-all
contentHandler.startElementStructure(name, getAnchorName(event), false);
eventStreamParser.handle(this, anchor.getEvents());
代码示例来源:origin: org.virtuslab/milyn-smooks-yaml
contentHandler.startElementStructure(name, getAnchorName(event), false);
eventStreamParser.handle(this, anchor.getEvents());
代码示例来源:origin: smooks/smooks
contentHandler.startElementStructure(name, getAnchorName(event), false);
eventStreamParser.handle(this, anchor.getEvents());
代码示例来源:origin: org.milyn/milyn-smooks-yaml
contentHandler.startElementStructure(name, getAnchorName(event), false);
eventStreamParser.handle(this, anchor.getEvents());
内容来源于网络,如有侵权,请联系作者删除!