diff options
Diffstat (limited to 'org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Repository.java')
-rw-r--r-- | org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Repository.java | 320 |
1 files changed, 320 insertions, 0 deletions
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Repository.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Repository.java new file mode 100644 index 00000000..32e74f13 --- /dev/null +++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Repository.java @@ -0,0 +1,320 @@ +/******************************************************************************* + * Copyright (c) 2008-2010 Sonatype, Inc. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Sonatype, Inc. - initial API and implementation + *******************************************************************************/ + +package org.eclipse.m2e.model.edit.pom; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> A representation of the model object ' + * <em><b>Repository</b></em>'. <!-- end-user-doc --> + * + * <!-- begin-model-doc --> 4.0.0 + * + * A repository contains the information needed for establishing connections + * with remote repoistory. + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.m2e.model.edit.pom.Repository#getReleases <em>Releases + * </em>}</li> + * <li>{@link org.eclipse.m2e.model.edit.pom.Repository#getSnapshots <em>Snapshots + * </em>}</li> + * <li>{@link org.eclipse.m2e.model.edit.pom.Repository#getId <em>Id</em>}</li> + * <li>{@link org.eclipse.m2e.model.edit.pom.Repository#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.m2e.model.edit.pom.Repository#getUrl <em>Url</em>}</li> + * <li>{@link org.eclipse.m2e.model.edit.pom.Repository#getLayout <em>Layout</em>} + * </li> + * </ul> + * </p> + * + * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository() + * @model extendedMetaData="name='Repository' kind='elementOnly'" + * @generated + */ +public interface Repository extends EObject { + /** + * Returns the value of the '<em><b>Releases</b></em>' containment + * reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!-- + * begin-model-doc --> 4.0.0 How to handle downloading of releases from this + * repository. <!-- end-model-doc --> + * + * @return the value of the '<em>Releases</em>' containment reference. + * @see #isSetReleases() + * @see #unsetReleases() + * @see #setReleases(RepositoryPolicy) + * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository_Releases() + * @model containment="true" unsettable="true" extendedMetaData= + * "kind='element' name='releases' namespace='##targetNamespace'" + * @generated + */ + RepositoryPolicy getReleases(); + + /** + * Sets the value of the ' + * {@link org.eclipse.m2e.model.edit.pom.Repository#getReleases + * <em>Releases</em>}' containment reference. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @param value + * the new value of the '<em>Releases</em>' containment + * reference. + * @see #isSetReleases() + * @see #unsetReleases() + * @see #getReleases() + * @generated + */ + void setReleases(RepositoryPolicy value); + + /** + * Unsets the value of the ' + * {@link org.eclipse.m2e.model.edit.pom.Repository#getReleases + * <em>Releases</em>}' containment reference. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @see #isSetReleases() + * @see #getReleases() + * @see #setReleases(RepositoryPolicy) + * @generated + */ + void unsetReleases(); + + /** + * Returns whether the value of the ' + * {@link org.eclipse.m2e.model.edit.pom.Repository#getReleases + * <em>Releases</em>}' containment reference is set. <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return whether the value of the '<em>Releases</em>' containment + * reference is set. + * @see #unsetReleases() + * @see #getReleases() + * @see #setReleases(RepositoryPolicy) + * @generated + */ + boolean isSetReleases(); + + /** + * Returns the value of the '<em><b>Snapshots</b></em>' containment + * reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!-- + * begin-model-doc --> 4.0.0 How to handle downloading of snapshots from + * this repository. <!-- end-model-doc --> + * + * @return the value of the '<em>Snapshots</em>' containment reference. + * @see #isSetSnapshots() + * @see #unsetSnapshots() + * @see #setSnapshots(RepositoryPolicy) + * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository_Snapshots() + * @model containment="true" unsettable="true" extendedMetaData= + * "kind='element' name='snapshots' namespace='##targetNamespace'" + * @generated + */ + RepositoryPolicy getSnapshots(); + + /** + * Sets the value of the ' + * {@link org.eclipse.m2e.model.edit.pom.Repository#getSnapshots + * <em>Snapshots</em>}' containment reference. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @param value + * the new value of the '<em>Snapshots</em>' containment + * reference. + * @see #isSetSnapshots() + * @see #unsetSnapshots() + * @see #getSnapshots() + * @generated + */ + void setSnapshots(RepositoryPolicy value); + + /** + * Unsets the value of the ' + * {@link org.eclipse.m2e.model.edit.pom.Repository#getSnapshots + * <em>Snapshots</em>}' containment reference. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @see #isSetSnapshots() + * @see #getSnapshots() + * @see #setSnapshots(RepositoryPolicy) + * @generated + */ + void unsetSnapshots(); + + /** + * Returns whether the value of the ' + * {@link org.eclipse.m2e.model.edit.pom.Repository#getSnapshots + * <em>Snapshots</em>}' containment reference is set. <!-- begin-user-doc + * --> <!-- end-user-doc --> + * + * @return whether the value of the '<em>Snapshots</em>' containment + * reference is set. + * @see #unsetSnapshots() + * @see #getSnapshots() + * @see #setSnapshots(RepositoryPolicy) + * @generated + */ + boolean isSetSnapshots(); + + /** + * Returns the value of the '<em><b>Id</b></em>' attribute. <!-- + * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 + * + * A unique identifier for a repository. This is used to match the + * repository to configuration in the <code>settings.xml</code> + * file, for example. + * + * <!-- end-model-doc --> + * + * @return the value of the '<em>Id</em>' attribute. + * @see #setId(String) + * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository_Id() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData= + * "kind='element' name='id' namespace='##targetNamespace'" + * @generated + */ + String getId(); + + /** + * Sets the value of the ' + * {@link org.eclipse.m2e.model.edit.pom.Repository#getId <em>Id</em>}' + * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Id</em>' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- + * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 + * + * Human readable name of the repository. + * + * <!-- end-model-doc --> + * + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData= + * "kind='element' name='name' namespace='##targetNamespace'" + * @generated + */ + String getName(); + + /** + * Sets the value of the ' + * {@link org.eclipse.m2e.model.edit.pom.Repository#getName <em>Name</em>}' + * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Url</b></em>' attribute. <!-- + * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 + * + * The url of the repository, in the form + * <code>protocol://hostname/path</code>. + * + * <!-- end-model-doc --> + * + * @return the value of the '<em>Url</em>' attribute. + * @see #setUrl(String) + * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository_Url() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData= + * "kind='element' name='url' namespace='##targetNamespace'" + * @generated + */ + String getUrl(); + + /** + * Sets the value of the ' + * {@link org.eclipse.m2e.model.edit.pom.Repository#getUrl <em>Url</em>}' + * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Url</em>' attribute. + * @see #getUrl() + * @generated + */ + void setUrl(String value); + + /** + * Returns the value of the '<em><b>Layout</b></em>' attribute. <!-- + * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 + * + * The type of layout this repository uses for locating and storing + * artifacts - can be <code>legacy</code> or + * <code>default</code>. + * + * <!-- end-model-doc --> + * + * @return the value of the '<em>Layout</em>' attribute. + * @see #isSetLayout() + * @see #unsetLayout() + * @see #setLayout(String) + * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository_Layout() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData + * ="kind='element' name='layout' namespace='##targetNamespace'" + * @generated + */ + String getLayout(); + + /** + * Sets the value of the ' + * {@link org.eclipse.m2e.model.edit.pom.Repository#getLayout <em>Layout</em>} + * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Layout</em>' attribute. + * @see #isSetLayout() + * @see #unsetLayout() + * @see #getLayout() + * @generated + */ + void setLayout(String value); + + /** + * Unsets the value of the ' + * {@link org.eclipse.m2e.model.edit.pom.Repository#getLayout <em>Layout</em>} + * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see #isSetLayout() + * @see #getLayout() + * @see #setLayout(String) + * @generated + */ + void unsetLayout(); + + /** + * Returns whether the value of the ' + * {@link org.eclipse.m2e.model.edit.pom.Repository#getLayout <em>Layout</em>} + * ' attribute is set. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return whether the value of the '<em>Layout</em>' attribute is set. + * @see #unsetLayout() + * @see #getLayout() + * @see #setLayout(String) + * @generated + */ + boolean isSetLayout(); + +} // Repository |