org.apache.geronimo.system.plugin.model
Class ArtifactType

java.lang.Object
  extended by org.apache.geronimo.system.plugin.model.ArtifactType
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DependencyType

public class ArtifactType
extends java.lang.Object
implements java.io.Serializable

Refers to either another module running in the server, or an entry in the server's Repository. In either case this effectively uses a URI. When this is pointing to a repository entry, the URI must have a form acceptable to the repository, which is currently a URI consisting of Maven-style identifiers separated by slashes (groupId/artifactId/version/type, for example, the URI "postgresql/postgresql-8.0-jdbc/313/jar" for a file like "repository/postgresql/postgresql-8.0-jdbc-313.jar"). When this is pointing to a module, the URI should match the module's moduleId. This also looks like a Maven-style URI discussed above. The artifactType element can take either a straight URI (as in the examples above), or maven-style identifier fragments (groupId, type, artifactId, and version), which it will compose into a URI by adding up the fragments with slashes in between. There is a correspondence between the xml format and a URI. For example, the URI postgresql/postgresql-8.0-jdbc/313/jar corresponds to the xml: postgresql postgresql-8.0-jdbc 313 jar

Java class for artifactType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="artifactType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="groupId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="artifactId" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="version" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  java.lang.String artifactId
           
protected  java.lang.String groupId
           
protected  java.lang.String type
           
protected  java.lang.String version
           
 
Constructor Summary
ArtifactType()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getArtifactId()
          Gets the value of the artifactId property.
 java.lang.String getGroupId()
          Gets the value of the groupId property.
 java.lang.String getType()
          Gets the value of the type property.
 java.lang.String getVersion()
          Gets the value of the version property.
 int hashCode()
           
static ArtifactType newArtifactType(Artifact artifact)
           
 void setArtifactId(java.lang.String value)
          Sets the value of the artifactId property.
 void setGroupId(java.lang.String value)
          Sets the value of the groupId property.
 void setType(java.lang.String value)
          Sets the value of the type property.
 void setVersion(java.lang.String value)
          Sets the value of the version property.
 Artifact toArtifact()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groupId

protected java.lang.String groupId

artifactId

protected java.lang.String artifactId

version

protected java.lang.String version

type

protected java.lang.String type
Constructor Detail

ArtifactType

public ArtifactType()
Method Detail

getGroupId

public java.lang.String getGroupId()
Gets the value of the groupId property.

Returns:
possible object is String

setGroupId

public void setGroupId(java.lang.String value)
Sets the value of the groupId property.

Parameters:
value - allowed object is String

getArtifactId

public java.lang.String getArtifactId()
Gets the value of the artifactId property.

Returns:
possible object is String

setArtifactId

public void setArtifactId(java.lang.String value)
Sets the value of the artifactId property.

Parameters:
value - allowed object is String

getVersion

public java.lang.String getVersion()
Gets the value of the version property.

Returns:
possible object is String

setVersion

public void setVersion(java.lang.String value)
Sets the value of the version property.

Parameters:
value - allowed object is String

getType

public java.lang.String getType()
Gets the value of the type property.

Returns:
possible object is String

setType

public void setType(java.lang.String value)
Sets the value of the type property.

Parameters:
value - allowed object is String

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toArtifact

public Artifact toArtifact()

newArtifactType

public static ArtifactType newArtifactType(Artifact artifact)


Copyright © 2003-2012 The Apache Geronimo development community. All Rights Reserved.