Examples of ElementType


Examples of com.dci.intellij.dbn.language.common.element.ElementType

    }

    public static NamedElementType getEnclosingNamedElementType(PathNode pathNode) {
        PathNode parentNode = pathNode.getParent();
        while (parentNode != null) {
            ElementType elementType = parentNode.getElementType();
            if (elementType instanceof NamedElementType) return (NamedElementType) elementType;
            parentNode = parentNode.getParent();
        }
        return null;
    }
View Full Code Here

Examples of com.google.wave.api.ElementType

  @Override
  public Element deserialize(JsonElement json, Type typeOfT,
      JsonDeserializationContext context) throws JsonParseException {
    Element result = null;
    ElementType type = ElementType.valueOfIgnoreCase(
        json.getAsJsonObject().get(TYPE_TAG).getAsString());

    Map<String, String> properties = context.deserialize(
        json.getAsJsonObject().get(PROPERTIES_TAG), GsonFactory.STRING_MAP_TYPE);
View Full Code Here

Examples of com.thinkaurelius.titan.graphdb.internal.ElementType

    public List<Object> query(final String indexName, final IndexQuery query, final BackendTransaction tx) {
        Preconditions.checkArgument(indexes.containsKey(indexName), "Index unknown or unconfigured: %s", indexName);
        if (isStandardIndex(indexName)) {
            Preconditions.checkArgument(query.getOrder().isEmpty(), "Standard index does not support ordering");
            List<Object> results = null;
            final ElementType resultType = getElementType(query.getStore());
            final Condition<?> condition = query.getCondition();

            if (condition instanceof And) {
                List<QueryUtil.IndexCall<Object>> retrievals = new ArrayList<QueryUtil.IndexCall<Object>>(condition.numChildren());
                for (final Condition<?> subcond : ((And<?>) condition).getChildren()) {
View Full Code Here

Examples of com.volantis.mcs.xml.schema.model.ElementType

        validatorMock = new ElementValidatorMock("validatorMock", expectations);

        validatorMock.expects.hasExcludes().returns(false).any();

        elementType = new ElementType("", "e", "e");

    }
View Full Code Here

Examples of de.lessvoid.nifty.loaderv2.types.ElementType

    }
    return createElementFromTypeInternal(screen, parent, type, new LayoutPart());
  }

  private Element createElementFromTypeInternal(final Screen screen, final Element parent, final ElementType type, final LayoutPart layoutPart) {
    ElementType elementType = type.copy();
    elementType.prepare(this, screen, screen.getRootElement().getElementType());
    elementType.connectParentControls(parent);
    Element element = elementType.create(parent, this, screen, layoutPart);
    if (screen.isBound()) {
      screen.layoutLayers();
      element.bindControls(screen);
      element.initControls();
      element.startEffect(EffectEventId.onStartScreen);
View Full Code Here

Examples of de.lessvoid.nifty.loaderv2.types.ElementType

      final Nifty nifty,
      final Screen screen,
      final TimeProvider time) {
    Element layer = new Element(
        nifty,
        new ElementType(),
        id,
        null,
        createRootLayerLayoutPart(nifty),
        screen.getFocusHandler(),
        false,
View Full Code Here

Examples of de.lessvoid.nifty.loaderv2.types.ElementType

  public String pixels(final int px) {
    return Integer.toString(px) + "px";
  }

  public Element build(final Nifty nifty, final Screen screen, final Element parent) {
    ElementType type = buildElementType();
    Element result = nifty.createElementFromType(screen, parent, type);
    screen.layoutLayers();
    return result;
  }
View Full Code Here

Examples of de.lessvoid.nifty.loaderv2.types.ElementType

   *
   * @return the ElementType representation for this ElementBuilder
   */
  public ElementType buildElementType() {
    connectAttributes();
    ElementType thisType = attributes.createType();

    // this is quite complicated: when we use the builder stuff then all of the
    // builders will create automatically an id for the element it builds. this
    // is a required feature when the builders are used to create actual elements.
    //
    // in this case here we're creating a type and not an actual element instance.
    // this is used for instance in controldefinitions. therefore we need to make
    // sure that the automatically generated id is being removed again. otherwise
    // we would end up with controldefinitions with ids. when we later use these
    // control definitions in multiple controls these ids will be reused which
    // could cause trouble when we have the same id multiple times.
    //
    // so here we make sure that when we have an automatically generated id
    // that we remove it again.
    if (attributes.isAutoId()) {
      thisType.getAttributes().remove("id");
    }

    attributes.connect(thisType);
    for (int i=0; i<elementBuilders.size(); i++) {
      thisType.addElementType(elementBuilders.get(i).buildElementType());
    }

    return thisType;
  }
View Full Code Here

Examples of java.lang.annotation.ElementType

            message = messageTemplate;
            if (propPath == null)
                propPath = PathImpl.createPathFromString(context.getPropertyName());
            descriptor = null;
        }
        ElementType elementType = (context.getAccess() != null) ? context.getAccess().getElementType() : null;
        ConstraintViolationImpl<T> ic = new ConstraintViolationImpl<T>(messageTemplate,
              message, rootBean, context.getBean(), propPath, value, descriptor, rootBeanType, elementType);
        constraintViolations.add(ic);
    }
View Full Code Here

Examples of java.lang.annotation.ElementType

    properties.put( "foo", "ANNOTATION_TYPE" );
    properties.put( "bar", ElementType.FIELD );

    ConfigurationPropertyReader reader = new ConfigurationPropertyReader( properties );

    ElementType value = reader.property( "foo", ElementType.class ).getValue();
    assertThat( value ).isEqualTo( ElementType.ANNOTATION_TYPE );

    value = reader.property( "bar", ElementType.class ).getValue();
    assertThat( value ).isEqualTo( ElementType.FIELD );
  }
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.