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

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

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

origin: opensourceBIM/BIMserver

public static String makeSetter(EStructuralFeature eStructuralFeature) {
  StringBuilder sb = new StringBuilder();
  sb.append("set" + firstLetterUpperCase(eStructuralFeature.getName()));
  if (eStructuralFeature instanceof EReference && !eStructuralFeature.isMany() && eStructuralFeature.getEAnnotation("embedsreference") == null) {
    sb.append("Id");
  }
  return sb.toString();
}

origin: opensourceBIM/BIMserver

public static String makeGetter(EStructuralFeature eStructuralFeature) {
  StringBuilder sb = new StringBuilder();
  if (eStructuralFeature.getEType() == EcorePackage.eINSTANCE.getEBoolean()) {
    sb.append("is");
  } else {
    sb.append("get");
  }
  sb.append(firstLetterUpperCase(eStructuralFeature.getName()));
  if (eStructuralFeature instanceof EReference && !eStructuralFeature.isMany() && eStructuralFeature.getEAnnotation("embedsreference") == null) {
    sb.append("Id");
  }
  return sb.toString();
}
 
origin: opensourceBIM/BIMserver

public List<ObjectIdentifier> getOids(EClass eClass, EStructuralFeature eStructuralFeature, Object value, DatabaseInterface databaseInterface, int pid, int rid) throws BimserverDatabaseException {
  if (eStructuralFeature.getEAnnotation("singleindex") != null) {
    List<ObjectIdentifier> result = new ArrayList<>();
    String indexTableName = eStructuralFeature.getEContainingClass().getEPackage().getName() + "_" + eClass.getName() + "_" + eStructuralFeature.getName();
origin: opensourceBIM/BIMserver

private void processPossibleIndices(ByteBuffer keyBuffer, int pid, int rid, long oid, EClass eClass, ByteBuffer valueBuffer) throws BimserverLockConflictException, BimserverDatabaseException {
  boolean hasAtLeastOneIndex = false;
  for (EStructuralFeature eStructuralFeature : eClass.getEAllStructuralFeatures()) {
    if (eStructuralFeature.getEAnnotation("singleindex") != null) {
      hasAtLeastOneIndex = true;
      break;
      if (eStructuralFeature.getEAnnotation("singleindex") != null) {
        String indexTableName = eClass.getEPackage().getName() + "_" + eClass.getName() + "_" + eStructuralFeature.getName();
        if (perRecordVersioning && oldData != null) {
origin: opensourceBIM/BIMserver

out.println("<table>");
for (EStructuralFeature eStructuralFeature : eObject.eClass().getEAllStructuralFeatures()) {
  if (eStructuralFeature.getEAnnotation("hidden") == null) {
    out.println("<tr>");
    out.println("<td>" + eStructuralFeature.getName() + "</td>");
origin: opensourceBIM/BIMserver

if (!entityBN.isDerived(eStructuralFeature.getName())) {
  boolean derived = false;
  if (eStructuralFeature.getEAnnotation("hidden") != null) {
    if (eStructuralFeature.getEAnnotation("asstring") == null) {
    } else {
      if (entityBN.isDerived(eStructuralFeature.getName().substring(0, eStructuralFeature.getName().length() - 8))) {
origin: opensourceBIM/BIMserver

if (eStructuralFeature.getEAnnotation("singleindex") != null) {
  String indexTableName = eClass.getEPackage().getName() + "_" + eClass.getName() + "_" + eStructuralFeature.getName();
  try {
origin: opensourceBIM/BIMserver

if (listObject.eClass().getEAnnotation("wrapped") != null || listObject.eClass().getEStructuralFeature("wrappedValue") != null) {
  writeWrappedValue(object.getPid(), object.getRid(), listObject, buffer, packageMetaData);
} else if (feature.getEAnnotation("twodimensionalarray") != null) {
  EStructuralFeature lf = listObject.eClass().getEStructuralFeature("List");
  writeList(listObject, buffer, packageMetaData, lf);
} else if (feature.getEAnnotation("dbembed") != null) {
  writeEmbeddedValue(object.getPid(), object.getRid(), listObject, buffer, packageMetaData);
} else {
origin: opensourceBIM/BIMserver

protected boolean isInverse(EStructuralFeature eStructuralFeature) throws ObjectIDMException {
  if (eStructuralFeature instanceof EReference && eStructuralFeature.getEContainingClass().getEAnnotation("wrapped") == null) {
    if (eStructuralFeature.getEAnnotation("hidden") == null && eStructuralFeature.getEContainingClass().getEAnnotation("hidden") == null) {
      EntityDefinition entityBN = packageMetaData.getSchemaDefinition().getEntityBN(eStructuralFeature.getEContainingClass().getName());
      if (entityBN == null) {
        throw new ObjectIDMException(eStructuralFeature.getEContainingClass().getName() + " not found");
      }
      Attribute attribute = entityBN.getAttributeBNWithSuper(eStructuralFeature.getName());
      return attribute instanceof InverseAttribute;
    } else {
      return false;
    }
  }
  return false;
}

origin: opensourceBIM/BIMserver

if (o instanceof VirtualObject) {
  VirtualObject listObject = (VirtualObject)o;
  if (feature.getEAnnotation("twodimensionalarray") != null) {
    Short cid = getDatabaseInterface().getCidOfEClass((EClass) feature.getEType());
origin: opensourceBIM/BIMserver

if (feature.getEAnnotation("nolazyload") == null) {
  todoList.add(newObject);
origin: opensourceBIM/BIMserver

IdEObject referencedObject = (IdEObject) value;
EClass referencedClass = referencedObject.eClass();
if (feature.getEAnnotation("dbembed") != null) {
  writeEmbeddedValue(object.getPid(), object.getRid(), value, buffer, packageMetaData);
} else if (referencedClass.getEAnnotation("wrapped") != null) {
origin: opensourceBIM/BIMserver

list.grow(listSize);
for (int i = 0; i < listSize; i++) {
  if (feature.getEAnnotation("twodimensionalarray") != null) {
    IdEObjectImpl newObject = createInternal((EClass) feature.getEType(), query);
    Object result = readList(newObject, originalQueryClass, buffer, model, query, todoList, newObject.eClass().getEStructuralFeature("List"));
origin: opensourceBIM/BIMserver

if (feature.getEAnnotation("twodimensionalarray") != null) {
  HashMapVirtualObject newObject = new HashMapVirtualObject(reusable, (EClass) feature.getEType());
  EClass eClass = (EClass)feature.getEType();
origin: opensourceBIM/BIMserver

for (EStructuralFeature eStructuralFeature : eObject.eClass().getEAllStructuralFeatures()) {
  Object eGet = eObject.eGet(eStructuralFeature);
  if (eStructuralFeature.getEAnnotation("hidden") == null && !eStructuralFeature.isDerived()) {
    if (eStructuralFeature instanceof EAttribute) {
      if (eStructuralFeature.isMany()) {
origin: opensourceBIM/BIMserver

if (feature.getEAnnotation("dbembed") != null) {
  newValue = readEmbeddedValue(feature, buffer, referenceClass);
} else {
origin: opensourceBIM/BIMserver

if (feature.getEAnnotation("dbembed") != null) {
  newValue = readEmbeddedValue(feature, buffer, referenceClass, query);
} else {
origin: opensourceBIM/BIMserver

print("\"_s\":1");
for (EStructuralFeature eStructuralFeature : object.eClass().getEAllStructuralFeatures()) {
  if (eStructuralFeature.getEAnnotation("nolazyload") == null && (eStructuralFeature.getEAnnotation("hidden") == null || includeHidden)) {
    if (eStructuralFeature instanceof EReference) {
      Object value = object.eGet(eStructuralFeature);
                } else if (o instanceof HashMapVirtualObject) {
                  write((HashMapVirtualObject) o);
                } else if (eStructuralFeature.getEAnnotation("twodimensionalarray") != null) {
                  EClass type = (EClass) eStructuralFeature.getEType();
                  EStructuralFeature listFeature = type.getEStructuralFeature("List");
origin: opensourceBIM/BIMserver

print("\"_s\":1");
for (EStructuralFeature eStructuralFeature : object.eClass().getEAllStructuralFeatures()) {
  if (eStructuralFeature.getEAnnotation("nolazyload") == null && (eStructuralFeature.getEAnnotation("hidden") == null || includeHidden)) {
    if (eStructuralFeature instanceof EReference) {
      Object value = object.eGet(eStructuralFeature);
              if (ref.getOid() < 0 || eClass.getEAnnotation("wrapped") != null || eStructuralFeature.getEAnnotation("dbembed") != null) {
                write(ref);
              } else {
            print("\"_e" + eStructuralFeature.getName() + "\":");
            write(ref);
          } else if (eStructuralFeature.getEAnnotation("dbembed") != null) {
            print("\"_e" + eStructuralFeature.getName() + "\":");
            writeEmbedded(ref);
origin: opensourceBIM/BIMserver

public static String getType(EStructuralFeature eStructuralFeature) {
  boolean embedsReference = eStructuralFeature.getEAnnotation("embedsreference") != null;
  EClassifier eType = eStructuralFeature.getEType();
  if (eStructuralFeature.isMany()) {
org.eclipse.emf.ecoreEStructuralFeaturegetEAnnotation

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Top 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