Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2005-2006 IBM Corporation and others. 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: IBM - Initial API and implementation
 
 package org.eclipse.emf.examples.extlibrary.impl;
 
 
 
 
An implementation of the model object 'Video Cassette'.

The following features are implemented:

  • Cast

Generated:
 
 public class VideoCassetteImpl extends AudioVisualItemImpl implements VideoCassette
 {
  
The cached value of the 'Cast' reference list.

See also:
getCast()
Generated:
Ordered:
 
   protected EList<Personcast;

  

Generated:
 
   protected VideoCassetteImpl()
   {
     super();
   }

  

Generated:
 
   @Override
   protected EClass eStaticClass()
   {
   }

  

Generated:
 
   public EList<PersongetCast()
   {
     if ( == null)
     {
     }
     return ;
   }

  

Generated:
 
   @Override
   public Object eGet(int featureIDboolean resolveboolean coreType)
   {
     switch (featureID)
     {
         return getCast();
     }
     return super.eGet(featureIDresolvecoreType);
   }

  

Generated:
  @SuppressWarnings("unchecked")
  public void eSet(int featureIDObject newValue)
  {
    switch (featureID)
    {
        getCast().clear();
        getCast().addAll((Collection<? extends Person>)newValue);
        return;
    }
    super.eSet(featureIDnewValue);
  }

  

Generated:
  public void eUnset(int featureID)
  {
    switch (featureID)
    {
        getCast().clear();
        return;
    }
    super.eUnset(featureID);
  }

  

Generated:
  public boolean eIsSet(int featureID)
  {
    switch (featureID)
    {
        return  != null && !.isEmpty();
    }
    return super.eIsSet(featureID);
  }
//VideoCassetteImpl
New to GrepCode? Check out our FAQ X