diff options
Diffstat (limited to 'plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/data/RelationTypes.java')
-rw-r--r-- | plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/data/RelationTypes.java | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/data/RelationTypes.java b/plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/data/RelationTypes.java new file mode 100644 index 00000000000..7625dc3fdfd --- /dev/null +++ b/plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/data/RelationTypes.java @@ -0,0 +1,46 @@ +/******************************************************************************* + * Copyright (c) 2013 Boeing. + * 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: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.orcs.data; + +import org.eclipse.osee.framework.core.data.IArtifactType; +import org.eclipse.osee.framework.core.data.IRelationType; +import org.eclipse.osee.framework.core.enums.RelationSide; +import org.eclipse.osee.framework.core.enums.RelationTypeMultiplicity; +import org.eclipse.osee.framework.core.exception.OseeArgumentException; +import org.eclipse.osee.framework.core.exception.OseeCoreException; + +/** + * @author Roberto E. Escobar + */ +public interface RelationTypes extends IdentityCollection<Long, IRelationType> { + + RelationTypeMultiplicity getMultiplicity(IRelationType relation) throws OseeCoreException; + + IArtifactType getArtifactTypeSideA(IRelationType relation) throws OseeCoreException; + + IArtifactType getArtifactTypeSideB(IRelationType relation) throws OseeCoreException; + + IArtifactType getArtifactType(IRelationType relation, RelationSide relationSide) throws OseeCoreException; + + String getSideName(IRelationType relation, RelationSide relationSide) throws OseeCoreException; + + boolean isArtifactTypeAllowed(IRelationType relation, RelationSide relationSide, IArtifactType artifactType) throws OseeCoreException; + + String getSideAName(IRelationType relation) throws OseeCoreException; + + String getSideBName(IRelationType relation) throws OseeCoreException; + + boolean isSideAName(IRelationType relation, String sideName) throws OseeArgumentException, OseeCoreException; + + boolean isOrdered(IRelationType relation) throws OseeCoreException; + + String getDefaultOrderTypeGuid(IRelationType relation) throws OseeCoreException; +}
\ No newline at end of file |