本文整理汇总了Java中com.esotericsoftware.yamlbeans.YamlConfig.setPropertyElementType方法的典型用法代码示例。如果您正苦于以下问题:Java YamlConfig.setPropertyElementType方法的具体用法?Java YamlConfig.setPropertyElementType怎么用?Java YamlConfig.setPropertyElementType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.esotericsoftware.yamlbeans.YamlConfig
的用法示例。
在下文中一共展示了YamlConfig.setPropertyElementType方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: adjustConfig
import com.esotericsoftware.yamlbeans.YamlConfig; //导入方法依赖的package包/类
/**
* Adjusts the {@link YamlConfig} to our UseCase.
*
* @param config The initial {@link YamlConfig}
*/
private void adjustConfig(YamlConfig config) {
config.setPropertyElementType(ServiceTemplate.class, "inputs", Input.class);
config.setPropertyElementType(ServiceTemplate.class, "node_templates", NodeTemplate.class);
config.setPropertyElementType(ServiceTemplate.class, "node_types", NodeType.class);
config.setPropertyElementType(ServiceTemplate.class, "capability_types", CapabilityType.class);
config.setPropertyElementType(ServiceTemplate.class, "relationship_types", RelationshipType.class);
config.setPropertyElementType(ServiceTemplate.class, "artifact_types", ArtifactType.class);
config.setPropertyElementType(ServiceTemplate.class, "groups", Group.class);
config.setPropertyElementType(ServiceTemplate.class, "outputs", Output.class);
config.setPropertyElementType(NodeType.class, "properties", PropertyDefinition.class);
config.setPropertyElementType(RelationshipType.class, "properties", PropertyDefinition.class);
config.setPropertyElementType(CapabilityType.class, "properties", PropertyDefinition.class);
config.setPropertyElementType(CapabilityDefinition.class, "properties", PropertyDefinition.class);
config.setPropertyElementType(ArtifactType.class, "properties", PropertyDefinition.class);
}
示例2: setRegisteredClasses
import com.esotericsoftware.yamlbeans.YamlConfig; //导入方法依赖的package包/类
private void setRegisteredClasses(YamlConfig config) {
for (ConfigReg configReg : registerList) {
if (configReg.getType() == Register.DEFAULT) {
config.setPropertyDefaultType(configReg.getParent(), configReg.getName(), configReg.getChild());
} else {
config.setPropertyElementType(configReg.getParent(), configReg.getName(), configReg.getChild());
}
}
for (Map.Entry<String, Class<?>> entry : tagMap.entrySet()) {
config.setClassTag(entry.getKey(), entry.getValue());
}
}
示例3: configure
import com.esotericsoftware.yamlbeans.YamlConfig; //导入方法依赖的package包/类
public static void configure(YamlConfig config) {
config.setPropertyElementType(ExperimentConfiguration.class, "projects", Project.class);
config.setPropertyElementType(ExperimentConfiguration.class, "files", ExpFile.class);
}