Traceability

ttm.impl
Class ProjectImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by ttm.impl.ElementImpl
                  extended by ttm.impl.AttributeOwnerImpl
                      extended by ttm.impl.IdentifiedElementImpl
                          extended by ttm.impl.ProjectImpl
All Implemented Interfaces:
Notifier, EObject, InternalEObject, AttributeOwner, Element, IdentifiedElement, Project

public class ProjectImpl
extends IdentifiedElementImpl
implements Project

An implementation of the model object 'Project'.

The following features are implemented:

** Generated **

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter>
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected static boolean ANY_DOCUMENT_COVERED_EDEFAULT
          The default value of the 'Any Document Covered' attribute
protected  boolean anyDocumentCovered
          The cached value of the 'Any Document Covered' attribute
protected  EList coverageResults
          The cached value of the 'Coverage Results' containment reference list
protected  EList documents
          The cached value of the 'Documents' containment reference list
protected  EList rules
          The cached value of the 'Rules' containment reference list
 
Fields inherited from class ttm.impl.IdentifiedElementImpl
ident, IDENT_EDEFAULT, SHORT_DESCRIPTION_EDEFAULT, shortDescription, texts
 
Fields inherited from class ttm.impl.AttributeOwnerImpl
attributes
 
Fields inherited from class ttm.impl.ElementImpl
activatedRules
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected ProjectImpl()
           
 
Method Summary
 void addCachedElement(java.lang.Integer key, java.lang.Object elt)
          add converted elements by classifier IDs
 void addCoverageResult(Document fromDoc, CoverPoint fromCoverPoint, Document to, float ratio)
          TNI Addition
 void addRuleDefinition(Rule aRule)
          TNI Addition
 void cleanCachedElements()
          clean the converted elements map
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 EList getCoverageResults()
           
 Document getDocument()
          Gets the document of the Element.
 EList getDocuments()
           
 java.util.List<java.lang.Object> getRequirements()
          gets the list of requirements in the project
 java.util.Set<Document> getRootDocumentsFromProjectElements()
          TNI Addition
 EList getRules()
           
 java.lang.String getTtmFilename()
          gets the ttm filename.
 boolean isAnyDocumentCovered()
           
 void setAnyDocumentCovered(boolean newAnyDocumentCovered)
           
 java.lang.String toString()
           
 
Methods inherited from class ttm.impl.IdentifiedElementImpl
getIdent, getShortDescription, getTexts, setIdent, setShortDescription
 
Methods inherited from class ttm.impl.AttributeOwnerImpl
getAttributes
 
Methods inherited from class ttm.impl.ElementImpl
getActivatedRules
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ttm.IdentifiedElement
getIdent, getShortDescription, getTexts, setIdent, setShortDescription
 
Methods inherited from interface ttm.AttributeOwner
getAttributes
 
Methods inherited from interface ttm.Element
getActivatedRules
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

documents

protected EList documents
The cached value of the 'Documents' containment reference list.

See Also:
getDocuments()
** Generated **
Ordered:

rules

protected EList rules
The cached value of the 'Rules' containment reference list.

See Also:
getRules()
** Generated **
Ordered:

coverageResults

protected EList coverageResults
The cached value of the 'Coverage Results' containment reference list.

See Also:
getCoverageResults()
** Generated **
Ordered:

ANY_DOCUMENT_COVERED_EDEFAULT

protected static final boolean ANY_DOCUMENT_COVERED_EDEFAULT
The default value of the 'Any Document Covered' attribute.

See Also:
isAnyDocumentCovered(), Constant Field Values
** Generated **
Ordered:

anyDocumentCovered

protected boolean anyDocumentCovered
The cached value of the 'Any Document Covered' attribute.

See Also:
isAnyDocumentCovered()
** Generated **
Ordered:
Constructor Detail

ProjectImpl

protected ProjectImpl()

** Generated **
Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class IdentifiedElementImpl
** Generated **

getDocuments

public EList getDocuments()

Specified by:
getDocuments in interface Project
Returns:
the value of the 'Documents' containment reference list.
See Also:
ttm.TtmPackage#getProject_Document(), Document.getProject()
** Generated **

getRules

public EList getRules()

Specified by:
getRules in interface Project
Returns:
the value of the 'Rule' containment reference list.
See Also:
ttm.TtmPackage#getProject_Rule()
** Generated **

getCoverageResults

public EList getCoverageResults()

Specified by:
getCoverageResults in interface Project
Returns:
the value of the 'Coverage Result' containment reference list.
See Also:
ttm.TtmPackage#getProject_CoverageResult(), CoverageResult.getProject()
** Generated **

isAnyDocumentCovered

public boolean isAnyDocumentCovered()

Specified by:
isAnyDocumentCovered in interface Project
Returns:
the value of the 'Any Document Covered' attribute.
See Also:
Project.setAnyDocumentCovered(boolean), TtmPackage.getProject_AnyDocumentCovered()
** Generated **

setAnyDocumentCovered

public void setAnyDocumentCovered(boolean newAnyDocumentCovered)

Specified by:
setAnyDocumentCovered in interface Project
Parameters:
newAnyDocumentCovered - the new value of the 'Any Document Covered' attribute.
See Also:
Project.isAnyDocumentCovered()
** Generated **

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     NotificationChain msgs)

Overrides:
eInverseAdd in class IdentifiedElementImpl
** Generated **

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)

Overrides:
eInverseRemove in class IdentifiedElementImpl
** Generated **

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface InternalEObject
Overrides:
eGet in class IdentifiedElementImpl
** Generated **

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface InternalEObject
Overrides:
eSet in class IdentifiedElementImpl
** Generated **

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface InternalEObject
Overrides:
eUnset in class IdentifiedElementImpl
** Generated **

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface InternalEObject
Overrides:
eIsSet in class IdentifiedElementImpl
** Generated **

toString

public java.lang.String toString()

Overrides:
toString in class IdentifiedElementImpl
** Generated **

getRootDocumentsFromProjectElements

public java.util.Set<Document> getRootDocumentsFromProjectElements()
TNI Addition

Specified by:
getRootDocumentsFromProjectElements in interface Project
Returns:
a set of documents which do not cover any other document
** Generated **
NOT

addCoverageResult

public void addCoverageResult(Document fromDoc,
                              CoverPoint fromCoverPoint,
                              Document to,
                              float ratio)
TNI Addition

Specified by:
addCoverageResult in interface Project
** Generated **
NOT

addRuleDefinition

public void addRuleDefinition(Rule aRule)
TNI Addition

Specified by:
addRuleDefinition in interface Project
** Generated **
NOT

addCachedElement

public void addCachedElement(java.lang.Integer key,
                             java.lang.Object elt)
add converted elements by classifier IDs

Specified by:
addCachedElement in interface Project
Parameters:
key - is the object.eClass.classifierID
elt - is a list of object in project which class id is key

getRequirements

public java.util.List<java.lang.Object> getRequirements()
gets the list of requirements in the project

Specified by:
getRequirements in interface Project
Returns:
list of 'Requirement' class elements

cleanCachedElements

public void cleanCachedElements()
clean the converted elements map

Specified by:
cleanCachedElements in interface Project

getDocument

public Document getDocument()
Description copied from interface: Element
Gets the document of the Element.

Specified by:
getDocument in interface Element
Overrides:
getDocument in class ElementImpl
Returns:
null cause a Project is not owned in a Document

getTtmFilename

public java.lang.String getTtmFilename()
gets the ttm filename.

Specified by:
getTtmFilename in interface Project
Returns:
the ttm filename.

Traceability

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.