Package org.apache.openejb.jee.oejb2
Class ArtifactType
- java.lang.Object
-
- org.apache.openejb.jee.oejb2.ArtifactType
-
- Direct Known Subclasses:
DependencyType
public class ArtifactType extends Object
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>
-
-
Constructor Summary
Constructors Constructor Description ArtifactType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetArtifactId()Gets the value of the artifactId property.StringgetGroupId()Gets the value of the groupId property.StringgetType()Gets the value of the type property.StringgetVersion()Gets the value of the version property.voidsetArtifactId(String value)Sets the value of the artifactId property.voidsetGroupId(String value)Sets the value of the groupId property.voidsetType(String value)Sets the value of the type property.voidsetVersion(String value)Sets the value of the version property.
-
-
-
Method Detail
-
getGroupId
public String getGroupId()
Gets the value of the groupId property.- Returns:
- possible object is
String
-
setGroupId
public void setGroupId(String value)
Sets the value of the groupId property.- Parameters:
value- allowed object isString
-
getArtifactId
public String getArtifactId()
Gets the value of the artifactId property.- Returns:
- possible object is
String
-
setArtifactId
public void setArtifactId(String value)
Sets the value of the artifactId property.- Parameters:
value- allowed object isString
-
getVersion
public String getVersion()
Gets the value of the version property.- Returns:
- possible object is
String
-
setVersion
public void setVersion(String value)
Sets the value of the version property.- Parameters:
value- allowed object isString
-
getType
public String getType()
Gets the value of the type property.- Returns:
- possible object is
String
-
-