Codota Logo
EStructuralFeature.getFeatureID
Code IndexAdd Codota to your IDE (free)

How to use
getFeatureID
method
in
org.eclipse.emf.ecore.EStructuralFeature

Best Java code snippets using org.eclipse.emf.ecore.EStructuralFeature.getFeatureID (Showing top 20 results out of 315)

  • Common ways to obtain EStructuralFeature
private void myMethod () {
EStructuralFeature e =
  • Codota IconItemProviderAdapter zuper;zuper.getChildFeature(object, child)
  • Codota IconEClass eClass;String featureName;eClass.getEStructuralFeature(featureName)
  • Codota IconFeatureMap.Entry entry;entry.getEStructuralFeature()
  • Smart code suggestions by Codota
}
origin: org.eclipse.uml2/org.eclipse.uml2.uml

@Override
public int getFeatureID() {
  return owner.eDerivedStructuralFeatureID(eStructuralFeature
    .getFeatureID(), Vertex.class);
}
origin: org.eclipse.emf/cdo

public CDODeltaNotificationImpl(InternalEObject notifier, int eventType, EStructuralFeature feature,
  char oldCharValue, char newCharValue)
{
 super(getEObject(notifier), eventType, feature.getFeatureID(), oldCharValue, newCharValue);
 this.feature = feature;
}
origin: org.eclipse.emf/cdo

public CDODeltaNotificationImpl(InternalEObject notifier, int eventType, EStructuralFeature feature,
  double oldDoubleValue, double newDoubleValue)
{
 super(getEObject(notifier), eventType, feature.getFeatureID(), oldDoubleValue, newDoubleValue);
 this.feature = feature;
}
origin: org.eclipse.emf/cdo

public CDODeltaNotificationImpl(InternalEObject notifier, int eventType, EStructuralFeature feature,
  long oldLongValue, long newLongValue)
{
 super(getEObject(notifier), eventType, feature.getFeatureID(), oldLongValue, newLongValue);
 this.feature = feature;
}
origin: org.eclipse.uml2/org.eclipse.uml2.uml

@Override
public int getFeatureID() {
  return owner.eDerivedStructuralFeatureID(eStructuralFeature
    .getFeatureID(), ConnectableElement.class);
}
origin: org.eclipse.uml2/org.eclipse.uml2.uml

@Override
public int getFeatureID() {
  return owner.eDerivedStructuralFeatureID(eStructuralFeature
    .getFeatureID(), Vertex.class);
}
origin: org.eclipse.emf/cdo

public CDODeltaNotificationImpl(InternalEObject notifier, int eventType, EStructuralFeature feature,
  boolean oldBooleanValue, boolean newBooleanValue)
{
 super(getEObject(notifier), eventType, feature.getFeatureID(), oldBooleanValue, newBooleanValue);
 this.feature = feature;
}
origin: org.eclipse.emf/cdo

public CDODeltaNotificationImpl(InternalEObject notifier, int eventType, EStructuralFeature feature, int oldIntValue,
  int newIntValue)
{
 super(getEObject(notifier), eventType, feature.getFeatureID(), oldIntValue, newIntValue);
 this.feature = feature;
}
origin: org.eclipse.emf/cdo

public CDODeltaNotificationImpl(InternalEObject notifier, int eventType, EStructuralFeature feature,
  byte oldByteValue, byte newByteValue)
{
 super(getEObject(notifier), eventType, feature.getFeatureID(), oldByteValue, newByteValue);
 this.feature = feature;
}
origin: org.eclipse.emf/cdo

public CDODeltaNotificationImpl(InternalEObject notifier, int eventType, EStructuralFeature feature,
  float oldFloatValue, float newFloatValue)
{
 super(getEObject(notifier), eventType, feature.getFeatureID(), oldFloatValue, newFloatValue);
 this.feature = feature;
}
origin: org.eclipse.emf/cdo

public CDODeltaNotificationImpl(InternalEObject notifier, int eventType, EStructuralFeature feature,
  short oldShortValue, short newShortValue)
{
 super(getEObject(notifier), eventType, feature.getFeatureID(), oldShortValue, newShortValue);
 this.feature = feature;
}
origin: org.eclipse/org.eclipse.jst.j2ee

/**
 * @generated This field/method will be replaced during code generation.
 */
public boolean eIsSet(EStructuralFeature eFeature) {
  switch (eDerivedStructuralFeatureID(eFeature.getFeatureID(), eFeature.getContainerClass())) {
    case ModulemapPackage.UTILITY_JAR_MAPPING__PROJECT_NAME :
      return PROJECT_NAME_EDEFAULT == null ? projectName != null : !PROJECT_NAME_EDEFAULT.equals(projectName);
    case ModulemapPackage.UTILITY_JAR_MAPPING__URI :
      return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri);
  }
  return eDynamicIsSet(eFeature);
}
origin: com.b2international.snowowl/org.eclipse.emf.cdo.common

public void write(CDODataOutput out) throws IOException
{
 out.writeCDOClassifierRef(eClass);
 out.writeInt(features.size());
 for (EStructuralFeature feature : features)
 {
  out.writeInt(feature.getFeatureID());
 }
}
origin: org.eclipse/org.eclipse.jst.j2ee

/**
 * @generated This field/method will be replaced during code generation.
 */
public boolean eIsSet(EStructuralFeature eFeature) {
  switch (eDerivedStructuralFeatureID(eFeature.getFeatureID(), eFeature.getContainerClass())) {
    case ModulemapPackage.MODULE_MAPPING__PROJECT_NAME :
      return PROJECT_NAME_EDEFAULT == null ? projectName != null : !PROJECT_NAME_EDEFAULT.equals(projectName);
    case ModulemapPackage.MODULE_MAPPING__MODULE :
      return module != null;
  }
  return eDynamicIsSet(eFeature);
}
origin: org.eclipse.emf/org.eclipse.emf.ecore

@Override
public int getFeatureID(Class<?> expectedClass)
{
 if (featureID == NO_FEATURE_ID && feature != null)
 {
  featureID = notifier.eDerivedStructuralFeatureID(feature.getFeatureID(), feature.getContainerClass());
 }
 return notifier.eBaseStructuralFeatureID(featureID, expectedClass);
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

@Override
public int getFeatureID(Class<?> expectedClass)
{
 if (featureID == NO_FEATURE_ID && feature != null)
 {
  featureID = notifier.eDerivedStructuralFeatureID(feature.getFeatureID(), feature.getContainerClass());
 }
 return notifier.eBaseStructuralFeatureID(featureID, expectedClass);
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

@Override
public int getFeatureID(Class<?> expectedClass)
{
 if (featureID == NO_FEATURE_ID && feature != null)
 {
  Class<?> containerClass = feature.getContainerClass();
  featureID = containerClass == null ? 
   notifier.eClass().getFeatureID(feature) : 
   notifier.eDerivedStructuralFeatureID(feature.getFeatureID(), containerClass);
 }
 return notifier.eBaseStructuralFeatureID(featureID, expectedClass);
}
origin: org.eclipse/org.eclipse.jst.j2ee

/**
 * @generated This field/method will be replaced during code generation.
 */
public void eSet(EStructuralFeature eFeature, Object newValue) {
  switch (eDerivedStructuralFeatureID(eFeature.getFeatureID(), eFeature.getContainerClass())) {
    case ModulemapPackage.MODULE_MAPPING__PROJECT_NAME :
      setProjectName((String) newValue);
      return;
    case ModulemapPackage.MODULE_MAPPING__MODULE :
      setModule((Module) newValue);
      return;
  }
  eDynamicSet(eFeature, newValue);
}
origin: org.eclipse.emf/org.eclipse.emf.ecore

@Override
public int getFeatureID(Class<?> expectedClass)
{
 if (featureID == NO_FEATURE_ID && feature != null)
 {
  Class<?> containerClass = feature.getContainerClass();
  featureID = containerClass == null ? 
   notifier.eClass().getFeatureID(feature) : 
   notifier.eDerivedStructuralFeatureID(feature.getFeatureID(), containerClass);
 }
 return notifier.eBaseStructuralFeatureID(featureID, expectedClass);
}
origin: org.eclipse.emf/org.eclipse.emf.ecore

public int eDerivedStructuralFeatureID(EStructuralFeature eStructuralFeature)
{
 Class<?> containerClass = eStructuralFeature.getContainerClass();
 if (containerClass == null)
 {
  return eClass().getFeatureID(eStructuralFeature);
 }
 else
 {
  assert eClass().getEAllStructuralFeatures().contains(eStructuralFeature) : "The feature '" + eStructuralFeature.getName() + "' is not a valid feature";
  return eDerivedStructuralFeatureID(eStructuralFeature.getFeatureID(), containerClass);
 }
}
org.eclipse.emf.ecoreEStructuralFeaturegetFeatureID

Javadoc

Returns the ID relative to the #getEContainingClass class.

Popular methods of EStructuralFeature

  • getName
  • isMany
  • getEType
  • getEContainingClass
    Returns the value of the 'EContaining Class' container reference. It is bidirectional and its opposi
  • isUnsettable
    Returns the value of the 'Unsettable' attribute. An unsettable feature explicitly models the state o
  • isChangeable
    Returns the value of the 'Changeable' attribute. The default value is "true".
  • isDerived
    Returns the value of the 'Derived' attribute. A derived feature typically computes its value from th
  • isTransient
    Returns the value of the 'Transient' attribute.
  • getDefaultValue
    Returns the value of the 'Default Value' attribute. It represents the default value that feature mus
  • getUpperBound
  • getDefaultValueLiteral
    Returns the value of the 'Default Value Literal' attribute. It represents the serialized form of the
  • getEGenericType
  • getDefaultValueLiteral,
  • getEGenericType,
  • isUnique,
  • getEAnnotation,
  • getLowerBound,
  • isOrdered,
  • setChangeable,
  • eIsProxy,
  • setUpperBound

Popular in Java

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • orElseThrow (Optional)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • JFileChooser (javax.swing)
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now