Examples of Property


Examples of OntoUML.Property

   * <!-- end-user-doc -->
   * @generated NOT
   */
  protected String getText() {
    String text = new String("");
    Property p = (Property) resolveSemanticElement();
    if (p.getEndType() != null)
      text = p.getName() + ": " + p.getEndType().getName() + " [";
    else
      return "Error!";

    if (p.getLower() == -1) {
      if (p.getUpper() == -1)
        text = text + "*..*";
      else
        text = text + "*.." + Integer.toString(p.getUpper());
    } else {
      if ((p.getLower() == 0) && (p.getUpper() == -1))
        text = text + "*";
      else {
        if (p.getLower() == p.getUpper())
          text = text + Integer.toString(p.getLower());
        else {
          if (p.getUpper() == -1)
            text = text + Integer.toString(p.getLower()) + "..*";
          else
            text = text + Integer.toString(p.getLower()) + ".."
                + Integer.toString(p.getUpper());
        }
      }
    }
    text = text + "]";
    return text;
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.fxgraph.fXGraph.Property

    }
  }

  @Override
  public void completeProperty_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    Property prop;
   
    if( model instanceof Property ) {
      prop = (Property) model;
    } else if( model instanceof Element ) {
      prop = (Property) model.eContainer();
    } else {
      return;
    }
   
    if (prop.eContainer() instanceof Element) {
      Element el = (Element) prop.eContainer();

      try {
        IJavaProject javaProject = projectProvider.getJavaProject(el.eResource().getResourceSet());
        IType type = javaProject.findType(el.getType().getQualifiedName());

        if (type != null) {
          IFXClass fxClazz = FXPlugin.getClassmodel().findClass(javaProject, type);
          IFXProperty fxProp = fxClazz.getProperty(prop.getName());
          if (fxProp != null) {
            completeProperty_ValueProposals(fxProp, model, context, FXGraphPackage.Literals.PROPERTY__VALUE, acceptor);
          }
        }

      } catch (JavaModelException e) {
        LOGGER.error("Failed to retrieve property value proposals", e);
      }
    } else if (prop.eContainer() instanceof MapValueProperty) {
      // TODO Can we provide a proposal here?
    }
  }
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.jdt.ui.internal.editors.model.anttasks.parameters.Property

        T result = caseJVmArg(jVmArg);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case ParametersPackage.PROPERTY: {
        Property property = (Property)theEObject;
        T result = caseProperty(property);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case ParametersPackage.PREFERENCES: {
View Full Code Here

Examples of aurelienribon.ui.css.Property

* @author Aurelien Ribon | http://www.aurelienribon.com/
*/
public class JComponentProcessor implements DeclarationSetProcessor<JComponent>, ArProperties {
  @Override
  public void process(JComponent target, DeclarationSet ds) {
    Property p = SwingProperties.border;

    if (ds.contains(p)) {
      GroupBorder border = getGroupBorder(ds);

      if (border != null) {
View Full Code Here

Examples of ca.nengo.config.Property

  public void renameProperty(String oldName, String newName) {
    if (myPropertyNames.contains(oldName)) {
      int index = myPropertyNames.indexOf(oldName);
      myPropertyNames.remove(index);
      myPropertyNames.add(index, newName);
      Property p = myProperties.remove(oldName);
      p.setName(newName);
      myProperties.put(newName, p);
    } else {
      throw new IllegalArgumentException("There is no Property named " + oldName);
    }
  }
View Full Code Here

Examples of ca.nengo.ui.configurable.Property

    public ConfigSchema getSchema() {
        if (getFunction() != null) {
            Function func = getFunction();
            for (int i = 0; i < myProperties.length; i++) {
                Property property = myProperties[i];
                String getterName = getterNames[i];
                try {
                    Object result = func.getClass().getMethod(getterName).invoke(func);
                    property.setDefaultValue(result);
                } catch (NoSuchMethodException e) {
                  e.printStackTrace();
                } catch (SecurityException e) {
                  e.printStackTrace();
                } catch (IllegalAccessException e) {
View Full Code Here

Examples of ch.agent.crnickl.api.Property

    db.commit();
  }
 
  public void testGetByAttributeValue() {
    try {
      @SuppressWarnings("rawtypes")
      Property ticker = db.getProperty("Ticker", true);
      @SuppressWarnings("unchecked")
      List<Chronicle> result = ticker.getChronicles(ticker.scan("SUN"), 42);
      assertEquals(2, result.size());
    } catch (Exception e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

Examples of ch.semafor.gendas.model.Property

      }
      element.setVersion(v); // property must be Int of Long!!
    } else {
      try {
        final PropertyType propType = propertyTypeDao.findByName(propName);
        Property prop = element.getProperty(propType);
        if (prop == null) {
          prop = new Property(element, propType);
        }
        if (value instanceof java.util.List) {
          List l = (java.util.List) value;
          logger.debug("setting {} properties of \"{}\"", l.size(), prop.getType().getName());
          for (int i = 0; i < l.size(); i++) {
            setPropertyValue(prop, i, retType, l.get(i));
          }
        } else {
          setPropertyValue(prop, 0, retType, value);
        }
        if (logger.isDebugEnabled()) {
          logger.debug("adding property \"{}\"", prop.getType().getName());
        }
      } catch (CoreException ex) {
        logger.info(ex.getMessage());
      }
    }
View Full Code Here

Examples of com.alibaba.druid.mapping.Property

        SQLIdentifierExpr ownerExpr = (SQLIdentifierExpr) x.getOwner();
        String ownerName = ownerExpr.getName();

        String propertyName = x.getName();

        Property property = null;
        Entity entity = visitor.getEntity(ownerName);

        if (entity == null) {
            visitor.getUnresolveList().add(x);
            return false;
        }
        property = entity.getProperty(propertyName);

        if (property == null) {
            throw new DruidMappingException("property not found : " + propertyName);
        }

        String dbColumName = visitor.resovleColumnName(entity, property);
        x.setName(dbColumName);
        x.putAttribute(MAPPING_PROPERTY, property);
        x.putAttribute(MAPPING_ENTITY, entity);

        if (x.getParent() instanceof SQLSelectItem) {
            SQLSelectItem selectItem = (SQLSelectItem) x.getParent();
            if (visitor.getContext().isGenerateAlias() && selectItem.getAlias() == null) {
                selectItem.setAlias('"' + property.getName() + '"');
            }
        }

        return false;
    }
View Full Code Here

Examples of com.asakusafw.compiler.flow.DataClass.Property

        DataClass outputType = getEnvironment().getDataClasses().load(outputPort.getDataType());
        DataObjectMirror cache = context.createModelCache(term.source());
        context.add(cache.createReset());
        for (Joined.Mapping mapping : term.mappings()) {
            // input: joined(destination), output: origin(source)
            Property source = inputType.findProperty(mapping.destination());
            Property destination = outputType.findProperty(mapping.source());
            context.add(destination.createSetter(
                    cache.get(),
                    source.createGetter(context.getInput())));
        }
        ResultMirror result = context.getOutput(outputPort);
        context.add(result.createAdd(cache.get()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.