001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.jee.oejb2;
017:
018: import javax.xml.bind.annotation.XmlAccessType;
019: import javax.xml.bind.annotation.XmlAccessorType;
020: import javax.xml.bind.annotation.XmlElement;
021: import javax.xml.bind.annotation.XmlType;
022:
023: /**
024: *
025: * Refers to either another module running in the server, or
026: * an entry in the server's Repository. In either case this effectively uses a
027: * URI.
028: *
029: * When this is pointing to a repository entry, the URI must have a form
030: * acceptable to the repository, which is currently a URI consisting of
031: * Maven-style identifiers separated by slashes (groupId/artifactId/version/type,
032: * for example, the URI "postgresql/postgresql-8.0-jdbc/313/jar" for a file like
033: * "repository/postgresql/postgresql-8.0-jdbc-313.jar").
034: *
035: * When this is pointing to a module, the URI should match the
036: * module's moduleId. This also looks
037: * like a Maven-style URI discussed above.
038: *
039: * The artifactType element can take either a straight URI (as in the examples
040: * above), or maven-style identifier fragments (groupId, type, artifactId, and
041: * version), which it will compose into a URI by adding up the fragments with
042: * slashes in between.
043: *
044: * There is a correspondence between the xml format and a URI. For example, the URI
045: *
046: * postgresql/postgresql-8.0-jdbc/313/jar
047: *
048: * corresponds to the xml:
049: *
050: * <groupId>postgresql</groupId>
051: * <artifactId>postgresql-8.0-jdbc</artifactId>
052: * <version>313</version>
053: * <type>jar</type>
054: *
055: *
056: *
057: * <p>Java class for artifactType complex type.
058: *
059: * <p>The following schema fragment specifies the expected content contained within this class.
060: *
061: * <pre>
062: * <complexType name="artifactType">
063: * <complexContent>
064: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
065: * <sequence>
066: * <element name="groupId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
067: * <element name="artifactId" type="{http://www.w3.org/2001/XMLSchema}string"/>
068: * <element name="version" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
069: * <element name="type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
070: * </sequence>
071: * </restriction>
072: * </complexContent>
073: * </complexType>
074: * </pre>
075: *
076: *
077: */
078: @XmlAccessorType(XmlAccessType.FIELD)
079: @XmlType(name="artifactType",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2",propOrder={"groupId","artifactId","version","type"})
080: public class ArtifactType {
081:
082: @XmlElement(name="groupId",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2")
083: protected String groupId;
084: @XmlElement(name="artifactId",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2",required=true)
085: protected String artifactId;
086: @XmlElement(name="version",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2")
087: protected String version;
088: @XmlElement(name="type",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2")
089: protected String type;
090:
091: /**
092: * Gets the value of the groupId property.
093: *
094: * @return
095: * possible object is
096: * {@link String }
097: *
098: */
099: public String getGroupId() {
100: return groupId;
101: }
102:
103: /**
104: * Sets the value of the groupId property.
105: *
106: * @param value
107: * allowed object is
108: * {@link String }
109: *
110: */
111: public void setGroupId(String value) {
112: this .groupId = value;
113: }
114:
115: /**
116: * Gets the value of the artifactId property.
117: *
118: * @return
119: * possible object is
120: * {@link String }
121: *
122: */
123: public String getArtifactId() {
124: return artifactId;
125: }
126:
127: /**
128: * Sets the value of the artifactId property.
129: *
130: * @param value
131: * allowed object is
132: * {@link String }
133: *
134: */
135: public void setArtifactId(String value) {
136: this .artifactId = value;
137: }
138:
139: /**
140: * Gets the value of the version property.
141: *
142: * @return
143: * possible object is
144: * {@link String }
145: *
146: */
147: public String getVersion() {
148: return version;
149: }
150:
151: /**
152: * Sets the value of the version property.
153: *
154: * @param value
155: * allowed object is
156: * {@link String }
157: *
158: */
159: public void setVersion(String value) {
160: this .version = value;
161: }
162:
163: /**
164: * Gets the value of the type property.
165: *
166: * @return
167: * possible object is
168: * {@link String }
169: *
170: */
171: public String getType() {
172: return type;
173: }
174:
175: /**
176: * Sets the value of the type property.
177: *
178: * @param value
179: * allowed object is
180: * {@link String }
181: *
182: */
183: public void setType(String value) {
184: this.type = value;
185: }
186:
187: }
|