incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r531654 - in /incubator/nmaven/branches/SI_XPT/components/dotnet-embedder/src/main/java/org/apache/maven/dotnet/embedder: Artifact.java impl/ArtifactImpl.java
Date Mon, 23 Apr 2007 23:32:08 GMT
Author: sisbell
Date: Mon Apr 23 16:32:07 2007
New Revision: 531654

URL: http://svn.apache.org/viewvc?view=rev&rev=531654
Log:
Artifact classes used for returning repository artifact information back to the web service
client.

Added:
    incubator/nmaven/branches/SI_XPT/components/dotnet-embedder/src/main/java/org/apache/maven/dotnet/embedder/Artifact.java
  (with props)
    incubator/nmaven/branches/SI_XPT/components/dotnet-embedder/src/main/java/org/apache/maven/dotnet/embedder/impl/ArtifactImpl.java
  (with props)

Added: incubator/nmaven/branches/SI_XPT/components/dotnet-embedder/src/main/java/org/apache/maven/dotnet/embedder/Artifact.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/components/dotnet-embedder/src/main/java/org/apache/maven/dotnet/embedder/Artifact.java?view=auto&rev=531654
==============================================================================
--- incubator/nmaven/branches/SI_XPT/components/dotnet-embedder/src/main/java/org/apache/maven/dotnet/embedder/Artifact.java
(added)
+++ incubator/nmaven/branches/SI_XPT/components/dotnet-embedder/src/main/java/org/apache/maven/dotnet/embedder/Artifact.java
Mon Apr 23 16:32:07 2007
@@ -0,0 +1,62 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.maven.dotnet.embedder;
+
+import org.codehaus.xfire.aegis.type.java5.*;
+
+/**
+ * Provides web services for obtaining artifact information.
+ *
+ * @author Shane Isbell
+ */
+@XmlType(namespace = "urn:maven-embedder")
+public interface Artifact
+{
+    /**
+     * Role used to register component implementations with the container.
+     */
+    String ROLE = Artifact.class.getName();
+
+    @XmlElement(name = "pomPath", namespace = "urn:maven-embedder")
+    String getPomPath();
+
+    /**
+     * Returns the group id of the artifact.
+     *
+     * @return the group id of the artifact
+     */
+    @XmlElement(name = "groupId", namespace = "urn:maven-embedder")
+    String getGroupId();
+
+    /**
+     * Returns the artifact id of the artifact.
+     *
+     * @return the artifact id of the artifact
+     */
+    @XmlElement(name = "artifactId", namespace = "urn:maven-embedder")
+    String getArtifactId();
+
+    /**
+     * Returns the version of the artfact.
+     *
+     * @return the version of the artifact
+     */
+    @XmlElement(name = "version", namespace = "urn:maven-embedder")
+    String getVersion();
+}

Propchange: incubator/nmaven/branches/SI_XPT/components/dotnet-embedder/src/main/java/org/apache/maven/dotnet/embedder/Artifact.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/branches/SI_XPT/components/dotnet-embedder/src/main/java/org/apache/maven/dotnet/embedder/impl/ArtifactImpl.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/components/dotnet-embedder/src/main/java/org/apache/maven/dotnet/embedder/impl/ArtifactImpl.java?view=auto&rev=531654
==============================================================================
--- incubator/nmaven/branches/SI_XPT/components/dotnet-embedder/src/main/java/org/apache/maven/dotnet/embedder/impl/ArtifactImpl.java
(added)
+++ incubator/nmaven/branches/SI_XPT/components/dotnet-embedder/src/main/java/org/apache/maven/dotnet/embedder/impl/ArtifactImpl.java
Mon Apr 23 16:32:07 2007
@@ -0,0 +1,98 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.maven.dotnet.embedder.impl;
+
+import org.apache.maven.dotnet.embedder.Artifact;
+import org.apache.maven.model.Model;
+
+/**
+ * Provides an implementation of artifact.
+ *
+ * @author Shane Isbell
+ */
+public class ArtifactImpl
+    implements Artifact
+{
+    private String pomPath;
+
+    private String groupId;
+
+    private String artifactId;
+
+    private String version;
+
+    private Model model;
+
+    /**
+     * Constructor. This method is intended to by invoked by xfire, not by the application
developer.
+     */
+    public ArtifactImpl()
+    {
+    }
+
+    public String getPomPath()
+    {
+        return pomPath;
+    }
+
+    public void setPomPath( String pomPath )
+    {
+        this.pomPath = pomPath;
+    }
+
+    public String getGroupId()
+    {
+        return groupId;
+    }
+
+    public void setGroupId( String groupId )
+    {
+        this.groupId = groupId;
+    }
+
+    public String getArtifactId()
+    {
+        return artifactId;
+    }
+
+    public void setArtifactId( String artifactId )
+    {
+        this.artifactId = artifactId;
+    }
+
+    public String getVersion()
+    {
+        return version;
+    }
+
+    public void setVersion( String version )
+    {
+        this.version = version;
+    }
+
+    public Model getModel()
+    {
+        return model;
+    }
+
+    public void setModel( Model model )
+    {
+        this.model = model;
+    }
+}

Propchange: incubator/nmaven/branches/SI_XPT/components/dotnet-embedder/src/main/java/org/apache/maven/dotnet/embedder/impl/ArtifactImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message