Package org.mmisw.orrclient.gwt.client.rpc

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


        String prop = toks[0];
        String value = toks.length > 1 ? toks[1] : null;
       
        Resource propResource = ResourceFactory.createResource(prop);
       
        PropValue pv = new PropValue();
        pv.setPropName(propResource.getLocalName());
        pv.setPropUri(prop);
       
        boolean valueIsUri = false;
        try {
          URI jUri = new URI(value)// just check to see whether is a URI
          valueIsUri = jUri.isAbsolute();
        }
        catch (URISyntaxException e) {
          // ignore.
        }
        if ( valueIsUri ) {
          pv.setValueUri(value);
          Resource objResource = ResourceFactory.createResource(value);
          pv.setValueName(objResource.getLocalName());
        }
        else {
          pv.setValueName(value);
        }
       
        entityInfo.getProps().add(pv);
      }
     
View Full Code Here


            }
          }
        }
      }
     
      PropValue pv = new PropValue(propName, propUri, valueName, valueUri);
      entityInfo.getProps().add(pv);
    }
  }
View Full Code Here

          dtProps.add(prop);
        }

      }

      PropValue pv = new PropValue(propName, propUri, valueName, valueUri);
      entityInfo.getProps().add(pv);
    }
   
    // sort the PropValues by the property URI and the value, such that
    // the properties get grouped better:
View Full Code Here

          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);
      }
     
View Full Code Here

TOP

Related Classes of org.mmisw.orrclient.gwt.client.rpc.PropValue

Copyright © 2018 www.massapicom. 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.