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

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

Best Java code snippets using org.eclipse.emf.ecore.EStructuralFeature.eIsProxy (Showing top 18 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.emf/org.eclipse.emf.codegen.ecore

public boolean reconcile()
{
 EStructuralFeature eFeature = getEcoreFeature();
 if (eFeature == null || eFeature.eIsProxy() || eFeature.eResource() == null)
 {
  return false;
 }
 else
 {
  return true;
 }
}
origin: org.eclipse/org.eclipse.emf.codegen.ecore

public boolean reconcile()
{
 EStructuralFeature eFeature = getEcoreFeature();
 if (eFeature == null || eFeature.eIsProxy() || eFeature.eResource() == null)
 {
  return false;
 }
 else
 {
  return true;
 }
}
origin: org.eclipse/org.eclipse.jem

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EStructuralFeature getFeature() {
  if (feature != null && feature.eIsProxy()) {
    EStructuralFeature oldFeature = feature;
    feature = (EStructuralFeature)eResolveProxy((InternalEObject)feature);
    if (feature != oldFeature) {
      if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.RESOLVE, InstantiationPackage.IMPLICIT_ALLOCATION__FEATURE, oldFeature, feature));
    }
  }
  return feature;
}
origin: org.eclipse.emf/org.eclipse.emf.ecore.change

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
public void setFeature(EStructuralFeature newFeature)
{
 EStructuralFeature oldFeature = basicGetFeature();
 feature = newFeature;
 featureName = null;
 if (feature != null && feature.eIsProxy())
  eFlags |= EPROXY_FEATURECHANGE;
 else 
  eFlags &= ~EPROXY_FEATURECHANGE;
 if (eNotificationRequired())
  eNotify(new ENotificationImpl(this, Notification.SET, ChangePackage.FEATURE_CHANGE__FEATURE, oldFeature, newFeature));
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore.change

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
public void setFeature(EStructuralFeature newFeature)
{
 EStructuralFeature oldFeature = basicGetFeature();
 feature = newFeature;
 featureName = null;
 if (feature != null && feature.eIsProxy())
  eFlags |= EPROXY_FEATURECHANGE;
 else 
  eFlags &= ~EPROXY_FEATURECHANGE;
 if (eNotificationRequired())
  eNotify(new ENotificationImpl(this, Notification.SET, ChangePackage.FEATURE_CHANGE__FEATURE, oldFeature, newFeature));
}
origin: org.eclipse.emf/org.eclipse.emf.ecore.change

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EStructuralFeature getFeatureGen()
{
 if (feature != null && feature.eIsProxy())
 {
  InternalEObject oldFeature = (InternalEObject)feature;
  feature = (EStructuralFeature)eResolveProxy(oldFeature);
  if (feature != oldFeature)
  {
   if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangePackage.LIST_CHANGE__FEATURE, oldFeature, feature));
  }
 }
 return feature;
}
origin: org.eclipse.emf/org.eclipse.emf.ecore.change

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
public void setFeature(EStructuralFeature newFeature)
{
 EStructuralFeature oldFeature = basicGetFeature();
 feature = newFeature;
 featureName = null;
 if (feature != null && feature.eIsProxy())
  eFlags |= EPROXY_FEATURECHANGE;
 else
  eFlags &= ~EPROXY_FEATURECHANGE;
 if (eNotificationRequired())
  eNotify(new ENotificationImpl(this, Notification.SET, ChangePackage.FEATURE_CHANGE__FEATURE, oldFeature, newFeature));
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore.change

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
public void setFeature(EStructuralFeature newFeature)
{
 EStructuralFeature oldFeature = basicGetFeature();
 feature = newFeature;
 featureName = null;
 if (feature != null && feature.eIsProxy())
  eFlags |= EPROXY_FEATURECHANGE;
 else
  eFlags &= ~EPROXY_FEATURECHANGE;
 if (eNotificationRequired())
  eNotify(new ENotificationImpl(this, Notification.SET, ChangePackage.FEATURE_CHANGE__FEATURE, oldFeature, newFeature));
}
origin: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EStructuralFeature getRefname()
{
  if (refname != null && refname.eIsProxy())
  {
    InternalEObject oldRefname = (InternalEObject)refname;
    refname = (EStructuralFeature)eResolveProxy(oldRefname);
    if (refname != oldRefname)
    {
      if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.RESOLVE, PatternLanguagePackage.REFERENCE_TYPE__REFNAME, oldRefname, refname));
    }
  }
  return refname;
}
origin: org.eclipse/org.eclipse.emf.codegen.ecore

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EStructuralFeature getEcoreFeature()
{
 if (ecoreFeature != null && ecoreFeature.eIsProxy())
 {
  InternalEObject oldEcoreFeature = (InternalEObject)ecoreFeature;
  ecoreFeature = (EStructuralFeature)eResolveProxy(oldEcoreFeature);
  if (ecoreFeature != oldEcoreFeature)
  {
   if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.RESOLVE, GenModelPackage.GEN_FEATURE__ECORE_FEATURE, oldEcoreFeature, ecoreFeature));
  }
 }
 return ecoreFeature;
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore.change

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EStructuralFeature getFeatureGen()
{
 if (feature != null && feature.eIsProxy())
 {
  InternalEObject oldFeature = (InternalEObject)feature;
  feature = (EStructuralFeature)eResolveProxy(oldFeature);
  if (feature != oldFeature)
  {
   if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangePackage.LIST_CHANGE__FEATURE, oldFeature, feature));
  }
 }
 return feature;
}
origin: org.eclipse.emf/org.eclipse.emf.codegen.ecore

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EStructuralFeature getEcoreFeature()
{
 if (ecoreFeature != null && ecoreFeature.eIsProxy())
 {
  InternalEObject oldEcoreFeature = (InternalEObject)ecoreFeature;
  ecoreFeature = (EStructuralFeature)eResolveProxy(oldEcoreFeature);
  if (ecoreFeature != oldEcoreFeature)
  {
   if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.RESOLVE, GenModelPackage.GEN_FEATURE__ECORE_FEATURE, oldEcoreFeature, ecoreFeature));
  }
 }
 return ecoreFeature;
}
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EStructuralFeature getRefname()
{
 if (refname != null && refname.eIsProxy())
 {
  InternalEObject oldRefname = (InternalEObject)refname;
  refname = (EStructuralFeature)eResolveProxy(oldRefname);
  if (refname != oldRefname)
  {
   if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.RESOLVE, EMFPatternLanguagePackage.REFERENCE_TYPE__REFNAME, oldRefname, refname));
  }
 }
 return refname;
}
origin: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

 @Override
 public boolean isValidType(final Type type) {
  boolean _xblockexpression = false;
  {
   if ((type instanceof ClassType)) {
    final EClassifier classifier = ((ClassType)type).getClassname();
    return ((classifier != null) && (!classifier.eIsProxy()));
   } else {
    if ((type instanceof ReferenceType)) {
     final EStructuralFeature feature = ((ReferenceType)type).getRefname();
     return ((feature != null) && (!feature.eIsProxy()));
    }
   }
   _xblockexpression = super.isValidType(type);
  }
  return _xblockexpression;
 }
}
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

@Check
public void checkReferredPackages(ReferenceType type) {
  if (type.getRefname() == null || type.getRefname().eIsProxy()) {
    //If reference name is not set, do not check package
    return;
  }
  final EClass referredType = type.getRefname().getEContainingClass();
  final EPackage referredPackage = referredType.getEPackage();
  final String nsUri = Strings.emptyIfNull(referredPackage.getNsURI());
  final EObject rootContainer = EcoreUtil2.getRootContainer(type);
  if (rootContainer instanceof PatternModel) {
    PatternModel model = (PatternModel) rootContainer;
    if (model.getImportPackages() != null
        && !Iterables.any(model.getImportPackages().getPackageImport(), new SamePackageUri(nsUri))) {
      error(String.format("Reference to an EClass %s that is not imported from EPackage %s.",
          referredType.getName(), nsUri), type,
          EMFPatternLanguagePackage.Literals.REFERENCE_TYPE__REFNAME,
          EMFIssueCodes.MISSING_PACKAGE_IMPORT, nsUri);
    }
  }
}

origin: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

@Check
public void checkReferredPackages(ReferenceType type) {
  if (type.getRefname() == null || type.getRefname().eIsProxy()) {
    // If reference name is not set, do not check package
    return;
  }
  final EClass referredType = type.getRefname().getEContainingClass();
  final EPackage referredPackage = referredType.getEPackage();
  final String nsUri = Strings.emptyIfNull(referredPackage.getNsURI());
  final EObject rootContainer = EcoreUtil2.getRootContainer(type);
  if (rootContainer instanceof PatternModel) {
    PatternModel model = (PatternModel) rootContainer;
    if (model.getImportPackages() != null
        && !Iterables.any(model.getImportPackages().getPackageImport(), new SamePackageUri(nsUri))) {
      error(String.format("Reference to an EClass %s that is not imported from EPackage %s.",
          referredType.getName(), nsUri), type,
          PatternLanguagePackage.Literals.REFERENCE_TYPE__REFNAME,
          IssueCodes.MISSING_PACKAGE_IMPORT, nsUri);
    }
  }
}
origin: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

private IInputKey extractColumnDescriptor(final EStructuralFeature feature, final int columnIndex) {
 if (((feature == null) || feature.eIsProxy())) {
  return BottomTypeKey.INSTANCE;
 }
 if ((0 == columnIndex)) {
  EClass _eContainingClass = feature.getEContainingClass();
  return new EClassTransitiveInstancesKey(_eContainingClass);
 } else {
  if ((feature instanceof EReference)) {
   EClass _eReferenceType = ((EReference)feature).getEReferenceType();
   return new EClassTransitiveInstancesKey(_eReferenceType);
  } else {
   EDataType _eAttributeType = ((EAttribute) feature).getEAttributeType();
   return new EDataTypeInSlotsKey(_eAttributeType);
  }
 }
}

origin: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

for (int i = 0; i < edgeTypes.size(); i++) {
  EStructuralFeature feature = edgeTypes.get(i).getRefname();
  if (feature != null && !feature.eIsProxy() && !comprehension.representable(feature)) {
    final EStructuralFeatureInstancesKey featureInputKey = new EStructuralFeatureInstancesKey(feature);
    if (SurrogateQueryRegistry.instance().hasSurrogateQueryFQN(featureInputKey)) {
org.eclipse.emf.ecoreEStructuralFeatureeIsProxy

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,
  • getFeatureID,
  • getEAnnotation,
  • getLowerBound,
  • isOrdered,
  • setChangeable,
  • setUpperBound

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JButton (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