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 'Person'.

The following features are implemented:

  • Address
  • First Name
  • Last Name

Generated:
 
 public class PersonImpl extends EObjectImpl implements Person
 {
  
The default value of the 'Address' attribute.

See also:
getAddress()
Generated:
Ordered:
 
   protected static final String ADDRESS_EDEFAULT = null;

  
The cached value of the 'Address' attribute.

See also:
getAddress()
Generated:
Ordered:
 
   protected String address = ;

  
The default value of the 'First Name' attribute.

See also:
getFirstName()
Generated:
Ordered:
 
   protected static final String FIRST_NAME_EDEFAULT = null;

  
The cached value of the 'First Name' attribute.

See also:
getFirstName()
Generated:
Ordered:
 
   protected String firstName = ;

  
The default value of the 'Last Name' attribute.

See also:
getLastName()
Generated:
Ordered:
 
   protected static final String LAST_NAME_EDEFAULT = null;

  
The cached value of the 'Last Name' attribute.

See also:
getLastName()
Generated:
Ordered:
 
   protected String lastName = ;

  

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

  

Generated:
  protected EClass eStaticClass()
  {
  }

  

Generated:
  public String getAddress()
  {
    return ;
  }

  

Generated:
  public void setAddress(String newAddress)
  {
    String oldAddress = ;
     = newAddress;
    if (eNotificationRequired())
  }

  

Generated:
  public String getFirstName()
  {
    return ;
  }

  

Generated:
  public void setFirstName(String newFirstName)
  {
    String oldFirstName = ;
     = newFirstName;
    if (eNotificationRequired())
  }

  

Generated:
  public String getLastName()
  {
    return ;
  }

  

Generated:
  public void setLastName(String newLastName)
  {
    String oldLastName = ;
     = newLastName;
    if (eNotificationRequired())
  }

  

Generated:
  public Object eGet(int featureIDboolean resolveboolean coreType)
  {
    switch (featureID)
    {
        return getAddress();
        return getFirstName();
        return getLastName();
    }
    return super.eGet(featureIDresolvecoreType);
  }

  

Generated:
  public void eSet(int featureIDObject newValue)
  {
    switch (featureID)
    {
        setAddress((String)newValue);
        return;
        setFirstName((String)newValue);
        return;
        setLastName((String)newValue);
        return;
    }
    super.eSet(featureIDnewValue);
  }

  

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

  

Generated:
  public boolean eIsSet(int featureID)
  {
    switch (featureID)
    {
        return  == null ?  != null : !.equals();
        return  == null ?  != null : !.equals();
        return  == null ?  != null : !.equals();
    }
    return super.eIsSet(featureID);
  }

  

Generated:
  public String toString()
  {
    if (eIsProxy()) return super.toString();
    StringBuffer result = new StringBuffer(super.toString());
    result.append(" (address: "); //$NON-NLS-1$
    result.append();
    result.append(", firstName: "); //$NON-NLS-1$
    result.append();
    result.append(", lastName: "); //$NON-NLS-1$
    result.append();
    result.append(')');
    return result.toString();
  }
//PersonImpl
New to GrepCode? Check out our FAQ X