blob: 381d5904153d9783b1ed945060be7b2ac4c38bf3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/*******************************************************************************
* 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.core.internal.attribute;
import java.util.Collection;
import org.eclipse.osee.framework.core.data.HasLocalId;
import org.eclipse.osee.framework.core.data.IAttributeType;
import org.eclipse.osee.framework.core.enums.DeletionFlag;
import org.eclipse.osee.framework.jdk.core.type.Identifiable;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
/**
* @author Roberto E. Escobar
*/
public interface AttributeContainer extends Identifiable<String>, HasLocalId<Integer> {
void add(IAttributeType type, Attribute<? extends Object> attribute);
void remove(IAttributeType type, Attribute<? extends Object> attribute);
boolean isLoaded();
void setLoaded(boolean value) throws OseeCoreException;
String getExceptionString();
@Override
String toString();
/////////////////////////////////////////////////////////////////
boolean areAttributesDirty();
int getMaximumAttributeTypeAllowed(IAttributeType attributeType) throws OseeCoreException;
int getMinimumAttributeTypeAllowed(IAttributeType attributeType) throws OseeCoreException;
/////////////////////////////////////////////////////////////////
int getAttributeCount(IAttributeType type) throws OseeCoreException;
int getAttributeCount(IAttributeType type, DeletionFlag deletionFlag) throws OseeCoreException;
boolean isAttributeTypeValid(IAttributeType attributeType) throws OseeCoreException;
Collection<? extends IAttributeType> getValidAttributeTypes() throws OseeCoreException;
Collection<? extends IAttributeType> getExistingAttributeTypes() throws OseeCoreException;
}
|