Examples of EntityInfo


Examples of org.mmisw.orrclient.gwt.client.rpc.EntityInfo

        ok = false;
      }
    }
   
    if ( ok ) {
      EntityInfo entityInfo = new EntityInfo();
     
      for (String[] toks : lines) {
        if ( toks.length != 2 ) {
          continue;
        }
        String prop = _removeBrackets(toks[0]);
        String value = _removeBrackets(toks[1]);
       
        if ("prop".equals(prop) && "value".equals(value)) {
          continue;
        }
       
        Resource propResource = ResourceFactory.createResource(prop);
       
        PropValue pv = new PropValue();
        pv.setPropName(propResource.getLocalName());
        pv.setPropUri(prop);
       
        if ( _isAbsoluteUri(value) ) {
          pv.setValueUri(value);
          Resource objResource = ResourceFactory.createResource(value);
          pv.setValueName(objResource.getLocalName());
        }
        else {
          pv.setValueName(value);
        }
       
        entityInfo.getProps().add(pv);
      }
     
      int size = entityInfo.getProps().size();
      if ( size > 0 ) {
        entityInfo.setUri(uri);
        if ( log.isDebugEnabled() ) {
          log.debug("Added " +size+ " property/value pairs to " +uri);
        }
        resolveUriResult.setEntityInfo(entityInfo);
      }
View Full Code Here

Examples of org.yaac.shared.editor.EntityInfo

    if (e == null) {
      return null;
    }
   
    KeyInfo keyInfo = DatastoreUtil.convert(e.getKey());
    EntityInfo entityInfo = new EntityInfo(keyInfo);
   
    for (String propertyName : e.getProperties().keySet()) {
      entityInfo.getPropertisMap().put(propertyName,
          DatastoreUtil.convert(
              KeyFactory.keyToString(e.getKey()),
              propertyName,
              null,
              e.getProperty(propertyName),
View Full Code Here

Examples of org.yaac.shared.editor.EntityInfo

      switchControlPanel.insert(btn, 0);
      btnGroup.addButton(key, btn);

      // render contents on main deck
      final KeyInfo thisKey = key;
      EntityInfo e = hierarchy.lookupAncester(key);
      Widget w = e != null ? new EditorEntityPanel(e, editorManager) :
        new EditorEntityNotFoundPanel(
            new CreateButtonHandler() {
          @Override
          public void onButtonClick() {
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.