[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[tigerstripe-dev] Containment
|
All,
(especially
John)
as part of the work
to add Packages to the list of supported Artifacts, we are proposing to add some
methods to IModelComponent.
Does the following
list look reasonable/complete.
public void
setContainingModelComponent(IModelComponent containingComponent) throws
TigerstripeException;
public
IModelComponent
getContainingModelComponent();
public void
addContainedModelComponents(Collection<IModelComponent> components)
throws
TigerstripeException;
public void
addContainedModelComponent(IModelComponent component) throws TigerstripeException;
public Collection<IModelComponent> getContainedModelComponents();
The basic idea is
that Package Artifacts will contain instances of packageArtifacts and the
existing ArtifactTypes.
Existing Artifacts
will contain Fields, Methods, Literals etc
Methods could in
turn contain Arguments (if they were properly Modelled!) this might need to wait
for EMF before we make that change!
Adding an invalid thing (eg saying a Field
contains an Artifact) would throw an Exception.
Cheers,
Richard