On 7/3/07, Tjeerd Verhagen <[EMAIL PROTECTED]> wrote:
Hello, after looking into the following classes: - ArtifactId - ArtifactRevisionId - ModuleId - ModuleRevisionId What I understand from the classes: The Module is needed for all module specific stuff, organisation and module name. An Artifact represents the created product in the form of a xxx.jar / xxx-src.zip or so. An ArtifactRevision represent a release / version of a Artifact. Questions: What I don't get here is why every class-name contains Id at the end? Why is there ModuleRevision? Probably I'm making some incorrect observations by reading the code... A few words explaining these base classes would be appreciated!
First I don't know if you've had a look at this: http://wiki.apache.org/ivy/IvyDataModel It gives basic explanation about these classes. For the Id at the end, it's because those classes represents only identifiers, and not the model content. For instance a ModuleRevisionId is part of the description of a dependency of a module upon another module. In this dependency description, only the identifier of the dependency module with revision is used, the whole content of the metadata associated with it (a ModuleDescriptor) is not known yet. Does it help your understanding? Xavier Thx, Tjeerd
-- Xavier Hanin - Independent Java Consultant http://xhab.blogspot.com/ http://incubator.apache.org/ivy/ http://www.xoocode.org/
