Examples of asElement()


Examples of com.adaptiweb.utils.xmlbind.annotation.BindClass.asElement()

    List<Method> attributes = new LinkedList<Method>();
    List<Method> subelemetns = new LinkedList<Method>();
   
    if(reflect.isAnnotationPresent(BindClass.class)) {
      BindClass annotation = reflect.getAnnotation(BindClass.class);
      (annotation.asElement() ? subelemetns : attributes)
        .add(reflect.getMethod("getClass"));
    }
   
    for(Method method : reflect.getMethods()) {
      if(!method.getName().startsWith("get") && !method.getName().startsWith("is")
View Full Code Here

Examples of com.bloomberglp.blpapi.Message.asElement()

      while (msgIter.hasNext()) {
        Message msg = msgIter.next();
        String bbgUniqueId = msg.topicName();

        if (event.eventType() == Event.EventType.SUBSCRIPTION_DATA) {
          FudgeMsg eventAsFudgeMsg = BloombergDataUtils.parseElement(msg.asElement());
          liveDataReceived(bbgUniqueId, eventAsFudgeMsg);
          // REVIEW 2012-09-19 Andrew -- Why return? Might the event contain multiple messages?
          return;
        }
        s_logger.info("Got event {} {} {}", event.eventType(), bbgUniqueId, msg.asElement());
View Full Code Here

Examples of com.sun.xml.bind.v2.model.core.ClassInfo.asElement()

/*     */     }
/* 231 */     boolean result = false;
/*     */
/* 233 */     ClassInfo c = (ClassInfo)t;
/* 234 */     if (c.isElement()) {
/* 235 */       this.types.add(c.asElement());
/* 236 */       result = true;
/*     */     }
/*     */
/* 240 */     for (ClassInfo ci : this.parent.owner.beans().values()) {
/* 241 */       if ((ci.isElement()) && (nav.isSubClassOf(ci.getType(), type))) {
View Full Code Here

Examples of com.sun.xml.bind.v2.model.core.MaybeElement.asElement()

        private void writeTypeRef(TypeHost th, NonElement<T,C> type, String refAttName) {
            Element e = null;
            if (type instanceof MaybeElement) {
                MaybeElement me = (MaybeElement)type;
                boolean isElement = me.isElement();
                if (isElement) e = me.asElement();
            }
            if (type instanceof Element) {
                e = (Element)type;
            }
            if (type.getTypeName()==null) {
View Full Code Here

Examples of com.sun.xml.internal.bind.v2.model.core.MaybeElement.asElement()

        private void writeTypeRef(TypeHost th, NonElement<T,C> type, String refAttName) {
            Element e = null;
            if (type instanceof MaybeElement) {
                MaybeElement me = (MaybeElement)type;
                boolean isElement = me.isElement();
                if (isElement) e = me.asElement();
            }
            if (type instanceof Element) {
                e = (Element)type;
            }
            if (type.getTypeName()==null) {
View Full Code Here

Examples of javax.lang.model.type.DeclaredType.asElement()

            return true;
        }
        // EclipseJDTのバグでerasureは正しく計算されない模様
        DeclaredType at = (DeclaredType) a;
        DeclaredType bt = (DeclaredType) b;
        return at.asElement().equals(bt.asElement());
    }

    private String format(String message, Object... arguments) {
        if (arguments == null || arguments.length == 0) {
            return message;
View Full Code Here

Examples of javax.lang.model.type.DeclaredType.asElement()

    private boolean isOperatorHelper(ExecutableElement method) {
        assert method != null;
        for (AnnotationMirror mirror : method.getAnnotationMirrors()) {
            DeclaredType annotationType = mirror.getAnnotationType();
            Element element = annotationType.asElement();
            if (element != null && element.getAnnotation(OperatorHelper.class) != null) {
                return true;
            }
        }
        return false;
View Full Code Here

Examples of javax.lang.model.type.DeclaredType.asElement()

          types[0] = TypeUtils.extractClosestRealTypeAsString( type.getTypeArguments().get( 0 ), context );
        }
        else {
          types[0] = explicitTargetEntity;
        }
        types[1] = COLLECTIONS.get( type.asElement().toString() );
      }
    }
    return types;
  }
View Full Code Here

Examples of javax.lang.model.type.DeclaredType.asElement()

    }
   
    // if empty, we're probably extending an existing factory
    if (factory.getTypeArguments().size() > 0) {
      DeclaredType argument = ((DeclaredType) factory.getTypeArguments().get(0));
      TypeElement factoryType = (TypeElement) argument.asElement();
      if (!factoryType.getQualifiedName().equals(declaration.getQualifiedName())) {
        success = false;
        messager.printMessage(ERROR,
            format("Expected EntityFactory<%s>, but found EntityFactory<%s>",
                declaration.getSimpleName(),
View Full Code Here

Examples of javax.lang.model.type.DeclaredType.asElement()

  public static boolean isString(TypeMirror mirror) {
    if (!(mirror instanceof DeclaredType))
      return false;
   
    DeclaredType type = (DeclaredType) mirror;
    Element e = type.asElement();
    if (!(e instanceof TypeElement))
      return false;
   
    TypeElement typeElement = (TypeElement) e;
   
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.