Examples of PropertyRecord


Examples of edu.mit.simile.backstage.model.data.Database.PropertyRecord

     
          DefaultScriptableObject propertiesO = new DefaultScriptableObject();
         
      for (URI property : propertyToValues.keySet()) {
        String propertyID = database.getPropertyId(property);
        PropertyRecord propertyRecord = database.getPropertyRecord(propertyID);
       
            DefaultScriptableObject o = new DefaultScriptableObject();
        o.put("propertyLabel", o, propertyRecord.label);
        o.put("valueType", o, propertyRecord.valueType);
       
View Full Code Here

Examples of org.culturegraph.registry.PropertyRecord

    mappings.put("016", "xbib://identifierAuthority");
    mappings.put("035 $a", "xbib://identifierAuthorityEKI");
    mappings.put("100 $0", "dc:creator");
    mappings.put("245 $a", "dc:title");
    mappings.put("502 $o", "xbib://identifierUniversityScript");
    PropertyRecord propertyRecord = marcImporter
        .newPropertyRecord(marcRecord);
    assertEquals(4, propertyRecord.size());
    logger.info(propertyRecord);
  }
View Full Code Here

Examples of org.culturegraph.registry.PropertyRecord

    marcImporter.importMarcXmlFromFile(new File(
        "test/input/A2010titmrc_1.xml"));
    logger.info(dao);
    assertEquals(162, dao.size());
       
    PropertyRecord firstRecord = dao.get("urn:nbn:de:eki:cg010014055");
    assertNotNull(firstRecord);
    assertEquals("urn:nbn:de:eki:cg010014055", firstRecord.getId());
       
  }
View Full Code Here

Examples of org.culturegraph.registry.PropertyRecord

    }
  }
 
  public void testFindDublicates() throws UnknownHostException, MongoException {
    MongoDao dao = MongoDao.Factory.newTestMongoDao();
    PropertyRecord propertyRecord = new PropertyRecord();
    propertyRecord.add(new Property<Object>("ID2", "010014454"));

    Collection<PropertyRecord> result = dao.findDublicates(propertyRecord);
    logger.info("" + result.size());
  }
View Full Code Here

Examples of org.culturegraph.registry.PropertyRecord

   *
   * @param dbObject
   * @return
   */
  public PropertyRecord newPropertyRecord(DBObject dbObject) {
    PropertyRecord ret = new PropertyRecord();
    ret.setId((String) dbObject.get("_id"));
    ret.setLastModified((Date) dbObject.get("lastModified"));
    List<DBObject> properties = (List<DBObject>) dbObject.get("properties");
    for (DBObject property : properties) {
      Property<Object> prop = new Property<Object>();
      prop.setName((String) property.get("name"));
      Object value = property.get("value");
View Full Code Here

Examples of org.culturegraph.registry.PropertyRecord

      throw new IllegalStateException("propertyRecordDao not set!");
    }
    MarcXmlReader marcXmlReader = new MarcXmlReader(in);
    while (marcXmlReader.hasNext()) {
      Record record = marcXmlReader.next();
      PropertyRecord propertyRecord = newPropertyRecord(record);

      propertyRecordDao.registerEntity(propertyRecord, null);
    }
  }
View Full Code Here

Examples of org.culturegraph.registry.PropertyRecord

   *
   * @param marcRecord
   * @return PropertyRecord
   */
  public PropertyRecord newPropertyRecord(Record marcRecord) {
    PropertyRecord ret = new PropertyRecord();

    /*
     * extract properties from control fields
     * 001=ID
     * 003=Code of organization
View Full Code Here

Examples of org.jboss.as.console.client.domain.groups.PropertyRecord

        addProp.getElement().setAttribute("style", "float:right");
        addProp.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                PropertyRecord newRecord = beanFactory.property().as();
                newRecord.setKey("key");
                newRecord.setValue("value");
                propertyProvider.getList().add(newRecord);
                propertyProvider.refresh();
            }
        });

        //add(addProp);


        // Create columns
        Column<PropertyRecord, String> keyColumn = new Column<PropertyRecord, String>(new DefaultEditTextCell()) {

            {
                setFieldUpdater(new FieldUpdater<PropertyRecord, String>() {

                    @Override
                    public void update(int index, PropertyRecord object, String value) {
                        object.setKey(value);
                    }
                });
            }

            @Override
            public String getValue(PropertyRecord object) {
                return object.getKey();
            }

        };

        Column<PropertyRecord, String> valueColumn = new Column<PropertyRecord, String>(new DefaultEditTextCell()) {
            {
                setFieldUpdater(new FieldUpdater<PropertyRecord, String>() {

                    @Override
                    public void update(int index, PropertyRecord object, String value) {
                        object.setValue(value);
                    }
                });
            }

            @Override
            public String getValue(PropertyRecord object) {
                return object.getValue();
            }
        };

        OptionCell optionCell = new OptionCell("remove", new ActionCell.Delegate<String>()
        {
            @Override
            public void execute(String rowNum) {
                Integer row = Integer.valueOf(rowNum);
                PropertyRecord propertyRecord = propertyProvider.getList().get(row);
                propertyProvider.getList().remove(propertyRecord);
                propertyProvider.refresh();
            }
        });
View Full Code Here

Examples of org.jboss.as.console.client.shared.properties.PropertyRecord

                    List<PropertyRecord> records = new ArrayList<PropertyRecord>(properties.size());
                    for(Property prop : properties)
                    {
                        String name = prop.getName();
                        String value = prop.getValue().asObject().get("value").asString();
                        PropertyRecord propertyRecord = factory.property().as();
                        propertyRecord.setKey(name);
                        propertyRecord.setValue(value);
                        records.add(propertyRecord);
                    }

                    callback.onSuccess(records);
                }
View Full Code Here

Examples of org.jboss.as.console.client.shared.properties.PropertyRecord

                List<PropertyRecord> records = new ArrayList<PropertyRecord>(properties.size());
                for(Property prop : properties)
                {
                    String name = prop.getName();
                    String value = prop.getValue().asObject().get("value").asString();
                    PropertyRecord propertyRecord = factory.property().as();
                    propertyRecord.setKey(name);
                    propertyRecord.setValue(value);
                    records.add(propertyRecord);
                }

                callback.onSuccess(records);
            }
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.