本文整理了Java中org.eclipse.vorto.codegen.utils.Utils.getReferencedEntities()
方法的一些代码示例,展示了Utils.getReferencedEntities()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.getReferencedEntities()
方法的具体详情如下:
包路径:org.eclipse.vorto.codegen.utils.Utils
类名称:Utils
方法名:getReferencedEntities
暂无
代码示例来源:origin: org.eclipse.vorto/org.eclipse.vorto.codegen.arduino
_and = false;
} else {
EList<Entity> _referencedEntities = Utils.getReferencedEntities(fb);
boolean _isEmpty = _referencedEntities.isEmpty();
boolean _not = (!_isEmpty);
EList<Entity> _referencedEntities_1 = Utils.getReferencedEntities(fb);
for (final Entity entity : _referencedEntities_1) {
boolean _and_1 = false;
代码示例来源:origin: org.eclipse.vorto/org.eclipse.vorto.codegen.examples.prosystfi
Set<String> imports = new HashSet<>();
FunctionBlock fb = fbp.getType().getFunctionblock();
for (Entity entity : Utils.getReferencedEntities(fb)) {
if (! visited.contains(entity)) {
generateForEntity(infomodel, ctx, entity, zipOutputter);
代码示例来源:origin: org.eclipse.vorto/boschiotsuite-gateway
Set<String> imports = new HashSet<>();
FunctionBlock fb = fbp.getType().getFunctionblock();
for (Entity entity : Utils.getReferencedEntities(fb)) {
if (!visited.contains(entity)) {
generateForEntity(ctx, entity, zipOutputter);
代码示例来源:origin: org.eclipse.vorto/org.eclipse.vorto.codegen.arduino
public EList<Property> getEntity(final FunctionBlock fb, final PropertyType type) {
EList<Entity> _referencedEntities = Utils.getReferencedEntities(fb);
for (final Entity entity : _referencedEntities) {
boolean _and = false;
String _displayname = entity.getDisplayname();
Type _type = ((ObjectPropertyType) type).getType();
String _name = _type.getName();
boolean _equals = _displayname.equals(_name);
if (!_equals) {
_and = false;
} else {
String _namespace = entity.getNamespace();
Type _type_1 = ((ObjectPropertyType) type).getType();
String _namespace_1 = _type_1.getNamespace();
boolean _equals_1 = _namespace.equals(_namespace_1);
_and = _equals_1;
}
if (_and) {
return entity.getProperties();
}
}
return null;
}
}
代码示例来源:origin: org.eclipse.vorto/org.eclipse.vorto.codegen.javabean
public IGenerationResult generate(InformationModel infomodel, InvocationContext invocationContext,
IVortoCodeGenProgressMonitor monitor) throws VortoCodeGeneratorException {
GenerationResultZip zipOutputter = new GenerationResultZip(infomodel,getServiceKey());
for (FunctionblockProperty fbp : infomodel.getProperties()) {
this.generateForFunctionBlock(infomodel, fbp.getType(), zipOutputter);
FunctionBlock fb = fbp.getType().getFunctionblock();
for (Entity entity : Utils.getReferencedEntities(fb)) {
generateForEntity(infomodel, entity, zipOutputter);
}
for (Enum en : Utils.getReferencedEnums(fb)) {
generateForEnum(infomodel, en, zipOutputter);
}
}
new GeneratorTaskFromFileTemplate<InformationModel>(new PomFileTemplate()).generate(infomodel, invocationContext,zipOutputter);
return zipOutputter;
}
代码示例来源:origin: org.eclipse.vorto/org.eclipse.vorto.codegen.arduino
EList<Entity> _referencedEntities = Utils.getReferencedEntities(_functionblock_2);
for(final Entity dataEntity : _referencedEntities) {
_builder.append("#include \"../datatype/entity/");
代码示例来源:origin: org.eclipse.vorto/org.eclipse.vorto.codegen.arduino
EList<Entity> _referencedEntities = Utils.getReferencedEntities(_functionblock_1);
for (final Entity entityProperty : _referencedEntities) {
代码示例来源:origin: org.eclipse.vorto/org.eclipse.vorto.codegen.latex
EList<Entity> _referencedEntities = Utils.getReferencedEntities(_functionblock);
for(final Entity type : _referencedEntities) {
_builder.append("\t");
代码示例来源:origin: org.eclipse.vorto/org.eclipse.vorto.codegen.examples.coap
for (Entity entity : Utils.getReferencedEntities(fb)) {
generateForEntity(entity, zipOutputter);
for (Entity entity : Utils.getReferencedEntities(fb)) {
generateForEntity(entity, zipOutputter);
代码示例来源:origin: org.eclipse.vorto/org.eclipse.vorto.codegen.coap
for (Entity entity : Utils.getReferencedEntities(fb)) {
generateForEntity(entity, zipOutputter);
for (Entity entity : Utils.getReferencedEntities(fb)) {
generateForEntity(entity, zipOutputter);
内容来源于网络,如有侵权,请联系作者删除!