Examples of FieldInfo


Examples of org.jboss.reflect.spi.FieldInfo

   {
      boolean trace = log.isTraceEnabled();
      if (trace)
         log.trace("Get field set Joinpoint jpf=" + jpf + " target=" + object + " name=" + name + " value=" + value);
     
      FieldInfo fieldInfo = findFieldInfo(jpf.getClassInfo(), name);
      FieldSetJoinpoint joinpoint = jpf.getFieldSetJoinpoint(fieldInfo);
      joinpoint.setTarget(object);
      joinpoint.setValue(value);
      return joinpoint;
   }
View Full Code Here

Examples of org.jboss.reflect.spi.FieldInfo

   public static FieldInfo findFieldInfo(ClassInfo classInfo, String name) throws JoinpointException
   {
      ClassInfo current = classInfo;
      while (current != null)
      {
         FieldInfo result = locateFieldInfo(current, name);
         if (result != null)
            return result;
         current = current.getSuperclass();
      }
      throw new JoinpointException("Field not found '" + name + "' for class " + classInfo.getName());
View Full Code Here

Examples of org.jboss.reflect.spi.FieldInfo

      expectClone = new HashSet(expected);
      actualClone = new ArrayList(Arrays.asList(actually));
      for (Iterator i = expectClone.iterator(); i.hasNext();)
      {
         FieldInfo expect = (FieldInfo) i.next();
         int j = actualClone.indexOf(expect);
         FieldInfo actual = (FieldInfo) actualClone.get(j);
         compareField(expect, actual);
      }
   }
View Full Code Here

Examples of org.jboss.reflect.spi.FieldInfo

         MethodInfo method = MethodInfo.class.cast(member);
         return new MethodSignature(method);
      }
      if (member instanceof FieldInfo)
      {
         FieldInfo field = FieldInfo.class.cast(member);
         return new FieldSignature(field);
      }
      if (member instanceof ConstructorInfo)
      {
         ConstructorInfo constructor = ConstructorInfo.class.cast(member);
View Full Code Here

Examples of org.jboss.reflect.spi.FieldInfo

      Method m = getMethod();
      MethodInfo mi = getMethodInfo();
      Signature sm = new MethodSignature(m);
      checkAnnotationCycle(sm, m, mi);
      Field f = getField();
      FieldInfo fi = getFieldInfo();
      Signature sf = new FieldSignature(f);
      checkAnnotationCycle(sf, f, fi);
   }
View Full Code Here

Examples of org.jboss.reflect.spi.FieldInfo

      Method m = getMethod();
      MethodInfo mi = getMethodInfo();
      Signature sm = new MethodSignature(m);
      checkMetaDataCycle(sm, m, mi);
      Field f = getField();
      FieldInfo fi = getFieldInfo();
      Signature sf = new FieldSignature(f);
      checkMetaDataCycle(sf, f, fi);
   }
View Full Code Here

Examples of org.jboss.xb.binding.introspection.FieldInfo

         }
        
         String prop = resolvePropertyName();
         if(prop != null)
         {     
            FieldInfo fieldInfo = FieldInfo.getFieldInfo(parent.getClass(), prop, false);
            if (fieldInfo != null)
            {
               return fieldInfo.getType();
            }
         }
         return null;
      }
View Full Code Here

Examples of smilehouse.gui.html.fieldbased.FieldInfo

          };

          PasswordEditor editor = new PasswordEditor();
          editor.setSize(10);

          FieldInfo fieldInfo = new FieldInfo(PASSWORD_ATTR, PASSWORD_ATTR, modifier, editor);
          addField(PASSWORD_ATTR, fieldInfo);
        }
        {
          ModelModifier modifier = new DefaultModelModifier() {
            public Object getModelValue(Object model) throws FailTransferException, AbortTransferException {
              String value = ((JDBCSource) model).getCharset();
              return value != null ? value : DEFAULT_CHARSET;
            }

            public void setModelValue(Object model, Object value) throws FailTransferException, AbortTransferException {
              ((JDBCSource) model).setCharset((String) value);
            }
          };

          SelectEditor editor = new SelectEditor();
          for (int i = 0; i < CHARSETS.length; i++)
            editor.addOption(new DefaultSelectOption(CHARSETS[i], CHARSETS[i]));

          FieldInfo fieldInfo = new FieldInfo(CHARSET_ATTR, CHARSET_ATTR, modifier, editor);
          addField(CHARSET_ATTR, fieldInfo);
        }
        {
          ModelModifier modifier = new DefaultModelModifier() {
            public Object getModelValue(Object model) throws Exception {
              return ((JDBCSource) model).getXMLdeclarationForEachBlock();
            }

            public void setModelValue(Object model, Object value) throws Exception {
              ((JDBCSource) model).setXMLdeclarationForEachBlock((Boolean) value);
            }
          };

          BooleanEditor editor = new BooleanEditor();

          FieldInfo fieldInfo = new FieldInfo(XMLDECLARATION_FOR_EACH_BLOCK_ATTR, XMLDECLARATION_FOR_EACH_BLOCK_ATTR, modifier, editor);
          addField(XMLDECLARATION_FOR_EACH_BLOCK_ATTR, fieldInfo);
        }
      } catch (Exception e) {
        Environment.getInstance().log("Couldn't create GUIContext for JDBCSource", e);
      }
View Full Code Here

Examples of uk.ac.ucl.panda.utility.structure.FieldInfo

        }

        // Discard pending norms:
        final int numField = fieldInfos.size();
        for (int i=0;i<numField;i++) {
          FieldInfo fi = fieldInfos.fieldInfo(i);
          if (fi.isIndexed() && !fi.getOmitNorms()) {
            BufferedNorms n = norms[i];
            if (n != null)
              try {
                n.reset();
              } catch (Throwable t) {
View Full Code Here

Examples of value.FieldInfo

        if (firstNode.getNodeType() == Node.ELEMENT_NODE) {

            Element fieldElement = (Element) firstNode;

            String fieldName = getNode(fieldElement, "name");
            FieldInfo fieldInfo = new FieldInfo(fieldName);

            String type = getNode(fieldElement, "type");
            fieldInfo.setType(type);

            String analyzer = getNode(fieldElement, "analyzer");
            fieldInfo.setAnalyzer(analyzer);

            String store = getNode(fieldElement, "store");
            fieldInfo.setStore(store);
            readFields.add(fieldInfo);

        }
        return readFields;
    }
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.