Example #1
0
 def create(properties):
     destination = properties.destination
     field = Node.jointwo(properties.source_type, properties.source_field)
     result = ExplicitReference(name="er_{field}_{destination}".format(
         field=field.replace(Node.PATH_SEPARATOR, '_'),
         destination=destination.replace(Node.PATH_SEPARATOR, '_')),
                                properties=properties)
     result.insert(ResourceReference(name=destination))
     result.insert(FieldReference(name=field))
     result.insert(StructureReference(name=properties.source_type))
     return result
Example #2
0
 def create_references(self):
     return [StructureReference(name=self._type)]
Example #3
0
 def create_references(self):
     return [StructureReference(name=t) for t in self._types]