Examples of PropertyInfo


Examples of ariba.util.fieldtype.PropertyInfo

            Collection allFields = getSemanticRecordsInPath(path);
            if (allFields != null) {
                Iterator iter = allFields.iterator();
                while (iter.hasNext()) {
                    SemanticRecord record = (SemanticRecord)iter.next();
                    PropertyInfo info = record.getPropertyInfo();
                    if (info != null && record.getSymbolKind() == Symbol.Field) {
                        result.add(info);
                    }
                }
            }
View Full Code Here

Examples of ch.inftec.ju.util.PropertyChain.PropertyInfo

  @Test
  public void propertyInfo_isNull_forNonExistingKey() {
    PropertyChain pc = createPropertiesChain(true,
        "p1", "v1");
   
    PropertyInfo pi = pc.getInfo("p2");
    Assert.assertNull(pi);
  }
View Full Code Here

Examples of cli.System.Reflection.PropertyInfo

        if (asm != null)
        {
            Type type = asm.GetType("Microsoft.VisualBasic.Devices.ComputerInfo");
            if (type != null)
            {
                PropertyInfo property = type.GetProperty(propertyName);
                if (property != null)
                {
                    Object obj = Activator.CreateInstance(type);
                    try
                    {
                        if (false) throw new cli.System.NotImplementedException();
                        return ikvm.lang.CIL.unbox_ulong((cli.System.UInt64)property.GetValue(obj, null));
                    }
                    catch (cli.System.NotImplementedException _)
                    {
                        // Mono doesn't implement this property
                    }
View Full Code Here

Examples of com.alibaba.citrus.generictype.introspect.PropertyInfo

        String name = method.getName();
        Class<?>[] paramTypes = method.getParameterTypes();
        Class<?> returnType = method.getReturnType();
        int paramCount = paramTypes.length;

        PropertyInfo prop = null;

        switch (paramCount) {
            case 1:
                if (paramTypes[0] == String.class && name.startsWith(GET_PREFIX)) {
                    if (returnType != void.class) {
View Full Code Here

Examples of com.dbxml.db.admin.swing.PropertyInfo

   public CollectionDialog(Frame owner, CollectionClient col) {
      super(owner, true);

      this.col = col;

      PropertyInfo pageSize = new PropertyInfo("pagesize", "Page Size", "4096", true, PropertyInfo.TYPE_INT);
      PropertyInfo directory = new PropertyInfo("location", "Directory", "", true);
      PropertyInfo extensions = new PropertyInfo("ext", "Extensions", "xml xsl xsd xhtml svg");
      PropertyInfo readOnly = new PropertyInfo("readonly", "Read Only", "false", false, PropertyInfo.TYPE_BOOLEAN);
      properties[0] = new ArrayList();
      properties[0].add(pageSize);

      properties[1] = new ArrayList();

      properties[2] = new ArrayList();
      properties[2].add(directory);
      properties[2].add(extensions);
      properties[2].add(readOnly);

      properties[3] = new ArrayList();
      properties[3].add(new PropertyInfo("driver", "Driver Class", "", true));
      properties[3].add(new PropertyInfo("url", "JDBC URL", "", true));
      properties[3].add(new PropertyInfo("username", "User Name"));
      properties[3].add(new PropertyInfo("password", "Password", "", false, PropertyInfo.TYPE_PASSWORD));
      properties[3].add(new PropertyInfo("mapfile", "Map File"));
      properties[3].add(new PropertyInfo("namespace", "Output Namespace"));
      properties[3].add(new PropertyInfo("sort", "Record Sorting", "true", false, PropertyInfo.TYPE_BOOLEAN));
      properties[3].add(new PropertyInfo("distinct", "Distinct Records", "true", false, PropertyInfo.TYPE_BOOLEAN));
      properties[3].add(new PropertyInfo("passthru", "SQL Passthru", "false", false, PropertyInfo.TYPE_BOOLEAN));

      properties[4] = new ArrayList();
      properties[4].add(pageSize);

      properties[5] = new ArrayList();
View Full Code Here

Examples of com.github.nmorel.gwtjackson.rebind.property.PropertyInfo

        ImmutableMap.Builder<String, PropertyInfo> result = ImmutableMap.builder();

        // we first add the properties defined in order
        for ( String orderedProperty : beanInfo.getPropertyOrderList() ) {
            // we remove the entry to have the map with only properties with natural or alphabetic order
            PropertyInfo property = propertiesMap.remove( orderedProperty );
            if ( null != property ) {
                result.put( property.getPropertyName(), property );
            }
        }

        // if the user asked for an alphabetic order, we sort the rest of the properties
        if ( beanInfo.isPropertyOrderAlphabetic() ) {
View Full Code Here

Examples of com.googlecode.richrest.client.PropertyInfo

        }
      }
    });*/
    configurationList.getSelectionModel().addListSelectionListener(new ListSelectionListener(){
      public void valueChanged(ListSelectionEvent e) {
        final PropertyInfo configuration = (PropertyInfo)configurationList.getSelectedValue();
        if (configuration != null) {
          String name = configuration.getName();
          if (name != null)
            nameLabel.setText(name);
          else
            nameLabel.setText("");
        }
        editButton.setEnabled(configuration != null);
      }
    });

    JButton resetButton = new JButton("刷新", Images.getIcon("refresh.gif"));
    resetButton.setToolTipText("刷新配置列表");
    toolBar.add(resetButton);
    resetButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        try {
          refreshConfigurationList();
          JOptionPane.showMessageDialog(ConfigurationPane.this, "刷新配置列表成功!", "刷新配置列表", JOptionPane.INFORMATION_MESSAGE);
        } catch (Throwable t) {
          JOptionPane.showMessageDialog(ConfigurationPane.this, "刷新配置列表失败! 原因: " + t.getMessage(), "刷新配置列表", JOptionPane.WARNING_MESSAGE);
        }
      }
    });

    try {
      refreshConfigurationList();
    } catch (Throwable t) {
      // ignore
    }

    configurationListener = new ConfigurationDelegate(new PropertyAdapter() {
      public void onPropertyChanged(final PropertyEvent event) {
        PropertyInfo configuration = event.getPropertyInfo();
        synchronized (configurationModel) {
          configurationModel.removeElement(configuration);
          configurationModel.addElement(configuration);
        }
      }
View Full Code Here

Examples of com.sun.star.configuration.backend.PropertyInfo

                throw new com.sun.star.lang.NullPointerException(
                        "created LayerDescriber isn't valid");
            }

            PropertyInfo[] pInfo = new PropertyInfo[1];
            pInfo[0] = new PropertyInfo();
            pInfo[0].Name = "org.openoffice.Office.Common/Undo/Steps";
            pInfo[0].Value = new Integer(12);
            pInfo[0].Type = "int";
            pInfo[0].Protected = false;
            xLayerContentDescriber.describeLayer(xLayerHandler, pInfo);
View Full Code Here

Examples of com.sun.xml.bind.v2.model.core.PropertyInfo

                    protected void write(ContentModelContainer parent, boolean isOptional, boolean repeated) {
                        LocalElement e = parent.element();

                        QName tn = t.getTagName();

                        PropertyInfo propInfo = t.getSource();
                        TypeInfo parentInfo = (propInfo == null) ? null : propInfo.parent();

                        if (canBeDirectElementRef(t, tn, parentInfo)) {
                            if ((!t.getTarget().isSimpleType()) && (t.getTarget() instanceof ClassInfo) && collisionChecker.findDuplicate((ClassInfo<T, C>) t.getTarget())) {
                                e.ref(new QName(uri, tn.getLocalPart()));
                            } else {

                                QName elemName = null;
                                if (t.getTarget() instanceof Element) {
                                    Element te = (Element) t.getTarget();
                                    elemName = te.getElementName();
                                }

                                Collection<TypeInfo> refs = propInfo.ref();
                                TypeInfo ti;
                                if ((refs != null) && (!refs.isEmpty()) && (elemName != null)
                                        && ((ti = refs.iterator().next()) == null || ti instanceof ClassInfoImpl)) {
                                    ClassInfoImpl cImpl = (ClassInfoImpl)ti;
                                    if ((cImpl != null) && (cImpl.getElementName() != null)) {
View Full Code Here

Examples of com.sun.xml.internal.bind.v2.model.core.PropertyInfo

                    protected void write(ContentModelContainer parent, boolean isOptional, boolean repeated) {
                        LocalElement e = parent.element();

                        QName tn = t.getTagName();

                        PropertyInfo propInfo = t.getSource();
                        TypeInfo parentInfo = (propInfo == null) ? null : propInfo.parent();

                        if (canBeDirectElementRef(t, tn, parentInfo)) {
                            if ((!t.getTarget().isSimpleType()) && (t.getTarget() instanceof ClassInfo) && collisionChecker.findDuplicate((ClassInfo<T, C>) t.getTarget())) {
                                e.ref(new QName(uri, tn.getLocalPart()));
                            } else {

                                QName elemName = null;
                                if (t.getTarget() instanceof Element) {
                                    Element te = (Element) t.getTarget();
                                    elemName = te.getElementName();
                                }

                                Collection refs = propInfo.ref();
                                if ((refs != null) && (!refs.isEmpty()) && (elemName != null)) {
                                    ClassInfoImpl cImpl = (ClassInfoImpl)refs.iterator().next();
                                    if ((cImpl != null) && (cImpl.getElementName() != null)) {
                                        e.ref(new QName(cImpl.getElementName().getNamespaceURI(), tn.getLocalPart()));
                                    } else {
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.