Schema query class that searches for attributeGroup references in the specified schema.
| 170 | |
| 171 | |
| 172 | class AttrGroupQuery(Query): |
| 173 | """ |
| 174 | Schema query class that searches for attributeGroup references in |
| 175 | the specified schema. |
| 176 | """ |
| 177 | |
| 178 | def execute(self, schema): |
| 179 | result = schema.agrps.get(self.ref) |
| 180 | if self.filter(result): |
| 181 | result = None |
| 182 | return self.result(result) |
| 183 | |
| 184 | |
| 185 | class ElementQuery(Query): |