Examples of XRIPath


Examples of org.openxri.XRIPath

   
    StringBuffer result = new StringBuffer(sepURI.toString());

    if (append.equals(SEPUri.APPEND_NONE)) {
    } else if (append.equals(SEPUri.APPEND_LOCAL)) {
      XRIPath path = qxri.getXRIPath();
      if (path != null) {
        result.append(path.toURINormalForm());
      }

      XRIQuery query = qxri.getQuery();
      if (query != null) {
        result.append('?');
View Full Code Here

Examples of org.openxri.XRIPath

   
    StringBuffer result = new StringBuffer(sepURI.toString());

    if (append.equals(SEPUri.APPEND_NONE)) {
    } else if (append.equals(SEPUri.APPEND_LOCAL)) {
      XRIPath path = qxri.getXRIPath();
      if (path != null) {
        result.append(path.toURINormalForm());
      }

      XRIQuery query = qxri.getQuery();
      if (query != null) {
        result.append('?');
View Full Code Here

Examples of org.openxri.XRIPath

    StringBuffer result = new StringBuffer(sepURI.toString());
   
    if (append.equals(SEPUri.APPEND_NONE)) {
    }
    else if (append.equals(SEPUri.APPEND_LOCAL)) {
      XRIPath path = qxri.getXRIPath();
      if (path != null) {
        result.append(path.toURINormalForm());
      }
     
      XRIQuery query = qxri.getQuery();
      if (query != null) {
        result.append('?');
View Full Code Here

Examples of org.openxri.XRIPath

   
    StringBuffer result = new StringBuffer(sepURI.toString());

    if (append.equals(SEPUri.APPEND_NONE)) {
    } else if (append.equals(SEPUri.APPEND_LOCAL)) {
      XRIPath path = qxri.getXRIPath();
      if (path != null) {
        result.append(path.toURINormalForm());
      }

      XRIQuery query = qxri.getQuery();
      if (query != null) {
        result.append('?');
View Full Code Here

Examples of org.openxri.XRIPath

    StringBuffer result = new StringBuffer(sepURI.toString());
   
    if (append.equals(SEPUri.APPEND_NONE)) {
    }
    else if (append.equals(SEPUri.APPEND_LOCAL)) {
      XRIPath path = qxri.getXRIPath();
      if (path != null) {
        result.append(path.toURINormalForm());
      }
     
      XRIQuery query = qxri.getQuery();
      if (query != null) {
        result.append('?');
View Full Code Here

Examples of org.openxri.xri3.XRIPath

    // - list of subsegments
    // - path

    XRI xri = new XRI3("=parity*markus/+contact");
    XRIAuthority xriAuthority = xri.getAuthority();
    XRIPath xriPath = xri.getPath();

    System.out.println("Resolving XRI " + xri.toString());
    System.out.println("Listing " + xriAuthority.getNumSubSegments() + " subsegments...");

    for (int i=0; i<xriAuthority.getNumSubSegments(); i++) {

      XRISubSegment subSegment = xriAuthority.getSubSegment(i);
      System.out.println("Subsegment #" + i + ": " + subSegment.toString());
      System.out.println("  Global: " + subSegment.isGlobal());
      System.out.println("  Local: " + subSegment.isLocal());
    }

    System.out.println("Path: " + xriPath.toString());
  }
View Full Code Here

Examples of org.openxri.xri3.XRIPath

    // - XDI predicate
    // - XDI reference

    XRI xri = new XRI3("+name+first/$is/+!3");
    XRIAuthority xriAuthority = xri.getAuthority();
    XRIPath xriPath = xri.getPath();

    System.out.println("Checking XDI address " + xri.toString());
   
    System.out.println("XDI Subject: " + xriAuthority.toString());
    System.out.println("XDI Predicate: " + xriPath.getSegment(0).toString());
    System.out.println("XDI Reference: " + xriPath.getSegment(1).toString());
  }
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.