/** */ package ua.ansymo.hintco; import org.eclipse.emf.common.util.EList; /** * * A representation of the model object 'Decomposition Port Adaptation'. * * *
* The following features are supported: *
** If the meaning of the 'Children' containment reference list isn't clear, * there really should be more of a description here... *
* * @return the value of the 'Children' containment reference list. * @see ua.ansymo.hintco.HintcoPackage#getDecompositionPortAdaptation_Children() * @see ua.ansymo.hintco.PortAdaptation#getParent * @model opposite="parent" containment="true" * @generated */ EList* If the meaning of the 'Name' attribute isn't clear, * there really should be more of a description here... *
* * @return the value of the 'Name' attribute. * @see ua.ansymo.hintco.HintcoPackage#getDecompositionPortAdaptation_Name() * @model unique="false" transient="true" changeable="false" volatile="true" derived="true" * annotation="http://www.eclipse.org/emf/2002/GenModel get='int _weight = this.getWeight();\n<%java.lang.String%> _plus = (\"(w=\" + <%java.lang.Integer%>.valueOf(_weight));\nreturn (_plus + \")\");'" * @generated */ String getName(); /** * * * @model unique="false" * annotation="http://www.eclipse.org/emf/2002/GenModel body='int _size = this.getChildren().size();\nfinal <%org.eclipse.emf.common.util.BasicEList%><<%ua.ansymo.hintco.PortAdaptation%>> res = new <%org.eclipse.emf.common.util.BasicEList%><<%ua.ansymo.hintco.PortAdaptation%>>(_size);\nfinal <%org.eclipse.xtext.xbase.lib.Functions.Function1%><<%ua.ansymo.hintco.PortAdaptation%>, <%java.lang.Boolean%>> _function = new <%org.eclipse.xtext.xbase.lib.Functions.Function1%><<%ua.ansymo.hintco.PortAdaptation%>, <%java.lang.Boolean%>>()\n{\n\tpublic <%java.lang.Boolean%> apply(final <%ua.ansymo.hintco.PortAdaptation%> a)\n\t{\n\t\treturn <%java.lang.Boolean%>.valueOf(a.isSelected());\n\t}\n};\n<%java.lang.Iterable%><<%ua.ansymo.hintco.PortAdaptation%>> _filter = <%org.eclipse.xtext.xbase.lib.IterableExtensions%>.<<%ua.ansymo.hintco.PortAdaptation%>>filter(this.getChildren(), _function);\nfor (final <%ua.ansymo.hintco.PortAdaptation%> c : _filter)\n{\n\tif ((c instanceof <%ua.ansymo.hintco.DecompositionPortAdaptation%>))\n\t{\n\t\tres.addAll(((<%ua.ansymo.hintco.DecompositionPortAdaptation%>)c).selectedAdaptations());\n\t}\n\telse\n\t{\n\t\tres.add(c);\n\t}\n}\nreturn res;'" * @generated */ EList