public IScope scope_FaultSource_property(final FaultSource exp, final EReference ref) { FunctionblockModel _model = exp.getModel(); FunctionblockModel model = ((FunctionblockModel) _model); FunctionBlock _functionblock = model.getFunctionblock(); Fault _fault = _functionblock.getFault(); EList<Property> _properties = _fault.getProperties(); return Scopes.scopeFor(_properties); }
private void generateFault(InvocationContext context, String jsonFileExt, IGeneratedWriter outputter, String stateTargetPath, Fault fault) { if (fault != null) { generateTask(fault, context, outputter, ValidationTaskFactory.getPropertiesFaultValidationTask(jsonFileExt, stateTargetPath)); for (Property property : fault.getProperties()) { generateTask(property, context, outputter, ValidationTaskFactory.getPropertiesSinglePropertyValidationTask( "-fault-" + property.getName() + jsonFileExt, stateTargetPath)); } } }
public static EList<Type> getReferencedTypes(FunctionBlock fb) { EList<Type> types = new BasicEList<Type>(); if (fb != null) { // Analyze the status properties... if (fb.getStatus() != null) { for (Property property : fb.getStatus().getProperties()) { types.addAll(getReferencedTypes(property)); } } // Analyze the configuration properties... if (fb.getConfiguration() != null) { for (Property property : fb.getConfiguration().getProperties()) { types.addAll(getReferencedTypes(property)); } } // Analyze the fault properties... if (fb.getFault() != null) { for (Property property : fb.getFault().getProperties()) { types.addAll(getReferencedTypes(property)); } } } return types; } }
public static EList<Type> getReferencedTypes(FunctionBlock fb) { EList<Type> types = new BasicEList<Type>(); if (fb != null) { // Analyze the status properties... if (fb.getStatus() != null) { for (Property property : fb.getStatus().getProperties()) { types.addAll(getReferencedTypes(property)); } } // Analyze the configuration properties... if (fb.getConfiguration() != null) { for (Property property : fb.getConfiguration().getProperties()) { types.addAll(getReferencedTypes(property)); } } // Analyze the fault properties... if (fb.getFault() != null) { for (Property property : fb.getFault().getProperties()) { types.addAll(getReferencedTypes(property)); } } } return types; } }
if (_notEquals_3) { Fault _fault_1 = fb.getFault(); EList<Property> _properties_2 = _fault_1.getProperties(); for (final Property property_2 : _properties_2) { EList<Type> _referencedTypes_2 = Utils.getReferencedTypes(property_2);
for (Property property : fb.getFault().getProperties()) { transformProperty(service, property);
_builder.newLine(); _builder.append("\t\t"); EList<Property> _properties = fault.getProperties(); CharSequence _handleProperties = EntityValidationTemplate.handleProperties(_properties, invocationContext); String _string = _handleProperties.toString(); _builder.newLine(); _builder.append("\t"); EList<Property> _properties_1 = fault.getProperties(); CharSequence _calculateRequired = EntityValidationTemplate.calculateRequired(_properties_1); _builder.append(_calculateRequired, "\t");
} else { Fault _fault_1 = fb.getFault(); EList<Property> _properties_4 = _fault_1.getProperties(); boolean _tripleNotEquals_5 = (_properties_4 != null); _and_2 = _tripleNotEquals_5; EList<Property> _properties_5 = _fault_2.getProperties(); for (final Property property_2 : _properties_5) { faultProperties.add(property_2);
EList<Property> _properties = _fault_1.getProperties(); for(final Property property : _properties) { _builder.append("\t"); EList<Property> _properties_1 = _fault_2.getProperties(); for(final Property property_1 : _properties_1) { _builder.append("\t");
EList<Property> _properties_2 = _fault_1.getProperties(); for(final Property property_2 : _properties_2) {
EList<Property> _properties_2 = _fault_1.getProperties(); for(final Property property_2 : _properties_2) { _builder.append("\t");
EList<Property> _properties_2 = _fault_1.getProperties(); for(final Property property_2 : _properties_2) { _builder.append("\t");
EList<Property> _properties_2 = _fault_1.getProperties(); for(final Property property_2 : _properties_2) { _builder.append("\t");
EList<Property> _properties_2 = _fault_1.getProperties(); for(final Property property_2 : _properties_2) { _builder.append("\t");
EList<Property> _properties_2 = _fault_1.getProperties(); for(final Property property_2 : _properties_2) { _builder.append("\t");
EList<Property> _properties_2 = _fault_1.getProperties(); for(final Property property_2 : _properties_2) { _builder.append("\t");
EList<Property> _properties_2 = _fault_1.getProperties(); for(final Property property_2 : _properties_2) { _builder.append("\t");
EList<Property> _properties_2 = _fault_1.getProperties(); for(final Property property_2 : _properties_2) { _builder.append("\t");