congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
EStructuralFeature.isChangeable
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.edit

/**
 * Returns whether a value's single property is settable. By default, this returns whether the structural feature is
 * {@link org.eclipse.emf.ecore.EStructuralFeature#isChangeable changeable}. Subclasses may use this in creating a
 * property descriptor, and user subclasses may override it to restrict or allow setting of the property.
 */
protected boolean isPropertySettable()
{
 return feature.isChangeable();
}
origin: org.eclipse/org.eclipse.emf.codegen.ecore

public String getChangeableFlag()
{
 String result = !getEcoreFeature().isChangeable() ? "!" : "";
 return result + "IS_CHANGEABLE";
}
origin: org.eclipse.emf/org.eclipse.emf.codegen.ecore

public String getChangeableFlag()
{
 String result = !getEcoreFeature().isChangeable() ? "!" : "";
 return result + "IS_CHANGEABLE";
}
origin: org.eclipse.emf/org.eclipse.emf.codegen.ecore

public boolean isChangeable()
{
 return getEcoreFeature().isChangeable();
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore.xmi

@Override
public Object getValue(EObject object, EStructuralFeature feature)
{
 if (feature == EcorePackage.Literals.ESTRUCTURAL_FEATURE__CHANGEABLE)
 {
  return ((EStructuralFeature)object).isChangeable() ? Boolean.FALSE : Boolean.TRUE; // EMOF.isReadOnly = !Ecore.changeable
 }
 else
 {
  return super.getValue(object, feature);
 }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.edit

/**
 * Returns whether the entry attribute is changeable.
 */
@Override
protected boolean isPropertySettable()
{
 return getEntryFeature().isChangeable();
}
origin: org.eclipse.emf/org.eclipse.emf.ecore.xmi

@Override
public Object getValue(EObject object, EStructuralFeature feature)
{
 if (feature == EcorePackage.Literals.ESTRUCTURAL_FEATURE__CHANGEABLE)
 {
  return ((EStructuralFeature)object).isChangeable() ? Boolean.FALSE : Boolean.TRUE; // EMOF.isReadOnly = !Ecore.changeable
 }
 else
 {
  return super.getValue(object, feature);
 }
}
origin: org.eclipse/org.eclipse.emf.codegen.ecore

public boolean isChangeable()
{
 return getEcoreFeature().isChangeable();
}
origin: org.eclipse.emf/org.eclipse.emf.ecore

@Override
protected Entry validate(int index, Entry object)
{
 if (modCount == 0) return object;
 Entry result = super.validate(index, object);
 EStructuralFeature eStructuralFeature = object.getEStructuralFeature();
 if (!eStructuralFeature.isChangeable() || !featureMapValidator.isValid(eStructuralFeature))
 {
  throw
   new RuntimeException
    ("Invalid entry feature '" + eStructuralFeature.getEContainingClass().getName() + "." + eStructuralFeature.getName() + "'");
 }
 return result;
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

@Override
protected Entry validate(int index, Entry object)
{
 if (modCount == 0) return object;
 Entry result = super.validate(index, object);
 EStructuralFeature eStructuralFeature = object.getEStructuralFeature();
 if (!eStructuralFeature.isChangeable() || !featureMapValidator.isValid(eStructuralFeature))
 {
  throw
   new RuntimeException
    ("Invalid entry feature '" + eStructuralFeature.getEContainingClass().getName() + "." + eStructuralFeature.getName() + "'");
 }
 return result;
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

@Override
protected Entry validate(int index, Entry object)
{
 if (modCount == 0) return object;
 Entry result = super.validate(index, object);
 EStructuralFeature eStructuralFeature = object.getEStructuralFeature();
 if (!eStructuralFeature.isChangeable() || !featureMapValidator.isValid(eStructuralFeature))
 {
  throw
   new RuntimeException
    ("Invalid entry feature '" + eStructuralFeature.getEContainingClass().getName() + "." + eStructuralFeature.getName() + "'");
 }
 return result;
}
origin: org.eclipse.emf/org.eclipse.emf.ecore

@Override
protected Entry validate(int index, Entry object)
{
 if (modCount == 0) return object;
 Entry result = super.validate(index, object);
 EStructuralFeature eStructuralFeature = object.getEStructuralFeature();
 if (!eStructuralFeature.isChangeable() || !featureMapValidator.isValid(eStructuralFeature))
 {
  throw
   new RuntimeException
    ("Invalid entry feature '" + eStructuralFeature.getEContainingClass().getName() + "." + eStructuralFeature.getName() + "'");
 }
 return result;
}
origin: org.eclipse.emf/org.eclipse.emf.ecore

protected void eDynamicUnset(int dynamicFeatureID, EStructuralFeature eFeature)
{
 if (dynamicFeatureID < 0)
 {
  eOpenUnset(eFeature);
 }
 else
 {
  if (!eFeature.isChangeable())
  {
   throw new IllegalArgumentException("The feature '" + eFeature.getName() + "' is not a valid changeable feature");
  }
  eSettingDelegate(eFeature).dynamicUnset(this, eSettings(), dynamicFeatureID);
 }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

protected void eDynamicSet(int dynamicFeatureID, EStructuralFeature eFeature, Object newValue)
{
 if (dynamicFeatureID < 0)
 {
  eOpenSet(eFeature, newValue);
 }
 else
 {
  if (!eFeature.isChangeable())
  {
   throw new IllegalArgumentException("The feature '" + eFeature.getName() + "' is not a valid changeable feature");
  }
  eSettingDelegate(eFeature).dynamicSet(this, eSettings(), dynamicFeatureID, newValue);
 }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

protected void eDynamicUnset(int dynamicFeatureID, EStructuralFeature eFeature)
{
 if (dynamicFeatureID < 0)
 {
  eOpenUnset(eFeature);
 }
 else
 {
  if (!eFeature.isChangeable())
  {
   throw new IllegalArgumentException("The feature '" + eFeature.getName() + "' is not a valid changeable feature");
  }
  eSettingDelegate(eFeature).dynamicUnset(this, eSettings(), dynamicFeatureID);
 }
}
origin: org.eclipse.emf/org.eclipse.emf.ecore

protected void eDynamicSet(int dynamicFeatureID, EStructuralFeature eFeature, Object newValue)
{
 if (dynamicFeatureID < 0)
 {
  eOpenSet(eFeature, newValue);
 }
 else
 {
  if (!eFeature.isChangeable())
  {
   throw new IllegalArgumentException("The feature '" + eFeature.getName() + "' is not a valid changeable feature");
  }
  eSettingDelegate(eFeature).dynamicSet(this, eSettings(), dynamicFeatureID, newValue);
 }
}
origin: org.eclipse.emf/org.eclipse.emf.ecore

public void eUnset(int featureID)
{
 EStructuralFeature eFeature = eClass().getEStructuralFeature(featureID);
 int dynamicFeatureID = featureID - eStaticFeatureCount();
 if (dynamicFeatureID < 0)
 {
  if (eFeature == null)
  {
   throw new IllegalArgumentException("The feature ID" + featureID + " is not a valid feature ID");
  }
  else if (!eFeature.isChangeable())
  {
   throw new IllegalArgumentException("The feature '" + eFeature.getName() + "' is not a valid changeable feature");
  }
  else
  {
   eUnset(eFeature); /* backward compatibility with old generated overrides */ 
  }
 }
 else
 {
  assert eFeature != null : "Invalid featureID: " + featureID;
  eDynamicUnset(dynamicFeatureID, eFeature);
 }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.edit

/**
 */
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) 
{
 // if (itemPropertyDescriptors == null)
 {
  itemPropertyDescriptors = new ArrayList<IItemPropertyDescriptor>();
  for (EStructuralFeature eFeature : ((EObject)object).eClass().getEAllStructuralFeatures())
  {
   if (!(eFeature instanceof EReference) || !((EReference)eFeature).isContainment())
   {
    itemPropertyDescriptors.add
     (new ItemPropertyDescriptor
      (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
       getFeatureText(eFeature),
       getResourceLocator().getString
        ("_UI_Property_description", new Object [] { getFeatureText(eFeature), eFeature.getEType().getName() }),
       eFeature,
       eFeature.isChangeable(),
       ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
   }
  }
 }
 return itemPropertyDescriptors;
}
origin: org.eclipse/org.eclipse.emf.codegen.ecore

public GenFeature getRootFeature()
{
 EClass documentRoot = getExtendedMetaData().getDocumentRoot(getEcorePackage());
 if (documentRoot != null)
 {
  for (EStructuralFeature eStructuralFeature : getExtendedMetaData().getAllElements(documentRoot))
  {
   if (eStructuralFeature instanceof EReference && 
      !((EClass)eStructuralFeature.getEType()).isAbstract() && 
      eStructuralFeature.isChangeable())
   {
    return findGenFeature(eStructuralFeature);
   }
  }
 }
 return null;
}
 
origin: org.eclipse.emf/org.eclipse.emf.codegen.ecore

public GenFeature getRootFeature()
{
 EClass documentRoot = getExtendedMetaData().getDocumentRoot(getEcorePackage());
 if (documentRoot != null)
 {
  for (EStructuralFeature eStructuralFeature : getExtendedMetaData().getAllElements(documentRoot))
  {
   if (eStructuralFeature instanceof EReference && 
      !((EClass)eStructuralFeature.getEType()).isAbstract() && 
      eStructuralFeature.isChangeable())
   {
    return findGenFeature(eStructuralFeature);
   }
  }
 }
 return null;
}
 
org.eclipse.emf.ecoreEStructuralFeatureisChangeable

Javadoc

Returns the value of the 'Changeable' attribute. The default value is "true".

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • setContentView (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Reference (javax.naming)
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now