Package org.eclipse.emf.ecore

Examples of org.eclipse.emf.ecore.InternalEObject$EStore


 
  public static List<String> resourceOffsets(Resource resource) {
    List<String> result = new ArrayList<String>();
    TreeIterator<Object> iterator = EcoreUtil.getAllContents(resource, true);
    while (iterator.hasNext()) {
      InternalEObject child = (InternalEObject)iterator.next();
      INode node = (INode)child.eAdapters().get(0);
      result.add("" + node.getOffset() + ", " + node.getSemanticElement());
    }
    return result;
  }
View Full Code Here


   * <!-- end-user-doc -->
   * @generated
   */
  public Category getCategory() {
    if (category != null && category.eIsProxy()) {
      InternalEObject oldCategory = (InternalEObject)category;
      category = (Category)eResolveProxy(oldCategory);
      if (category != oldCategory) {
        if (eNotificationRequired())
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, ValidatorsPackage.VALIDATOR__CATEGORY, oldCategory, category));
      }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public Validator getValidator() {
    if (validator != null && validator.eIsProxy()) {
      InternalEObject oldValidator = (InternalEObject)validator;
      validator = (Validator)eResolveProxy(oldValidator);
      if (validator != oldValidator) {
        if (eNotificationRequired())
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, ValidatorsPackage.TYPE__VALIDATOR, oldValidator, validator));
      }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public DerivationRule getConclusionRule() {
    if (conclusionRule != null && conclusionRule.eIsProxy()) {
      InternalEObject oldConclusionRule = (InternalEObject)conclusionRule;
      conclusionRule = (DerivationRule)eResolveProxy(oldConclusionRule);
      if (conclusionRule != oldConclusionRule) {
        if (eNotificationRequired())
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, URMLPackage.CLASSIFIER_ATOM__CONCLUSION_RULE, oldConclusionRule, conclusionRule));
      }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public OntoUML.Class getClass_() {
    if (class_ != null && class_.eIsProxy()) {
      InternalEObject oldClass = (InternalEObject)class_;
      class_ = (OntoUML.Class)eResolveProxy(oldClass);
      if (class_ != oldClass) {
        if (eNotificationRequired())
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, URMLPackage.CLASSIFIER_ATOM__CLASS, oldClass, class_));
      }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public DerivationRule getConclusionRule() {
    if (conclusionRule != null && conclusionRule.eIsProxy()) {
      InternalEObject oldConclusionRule = (InternalEObject)conclusionRule;
      conclusionRule = (DerivationRule)eResolveProxy(oldConclusionRule);
      if (conclusionRule != oldConclusionRule) {
        if (eNotificationRequired())
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, URMLPackage.BINARY_ASSOCIATION_ATOM__CONCLUSION_RULE, oldConclusionRule, conclusionRule));
      }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public Relationship getAssociation() {
    if (association != null && association.eIsProxy()) {
      InternalEObject oldAssociation = (InternalEObject)association;
      association = (Relationship)eResolveProxy(oldAssociation);
      if (association != oldAssociation) {
        if (eNotificationRequired())
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, URMLPackage.BINARY_ASSOCIATION_ATOM__ASSOCIATION, oldAssociation, association));
      }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public Rule getConditionRule() {
    if (conditionRule != null && conditionRule.eIsProxy()) {
      InternalEObject oldConditionRule = (InternalEObject)conditionRule;
      conditionRule = (Rule)eResolveProxy(oldConditionRule);
      if (conditionRule != oldConditionRule) {
        if (eNotificationRequired())
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, URMLPackage.ROLE_TYPE_ATOM__CONDITION_RULE, oldConditionRule, conditionRule));
      }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public DerivationRule getConclusionRule() {
    if (conclusionRule != null && conclusionRule.eIsProxy()) {
      InternalEObject oldConclusionRule = (InternalEObject)conclusionRule;
      conclusionRule = (DerivationRule)eResolveProxy(oldConclusionRule);
      if (conclusionRule != oldConclusionRule) {
        if (eNotificationRequired())
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, URMLPackage.CONCLUSION__CONCLUSION_RULE, oldConclusionRule, conclusionRule));
      }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public Rule getConditionRule() {
    if (conditionRule != null && conditionRule.eIsProxy()) {
      InternalEObject oldConditionRule = (InternalEObject)conditionRule;
      conditionRule = (Rule)eResolveProxy(oldConditionRule);
      if (conditionRule != oldConditionRule) {
        if (eNotificationRequired())
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, URMLPackage.CONDITION__CONDITION_RULE, oldConditionRule, conditionRule));
      }
View Full Code Here

TOP

Related Classes of org.eclipse.emf.ecore.InternalEObject$EStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.