Package org.openxri.xml

Examples of org.openxri.xml.Ref


    List refs = parent.getPrioritizedRefs();
    Iterator it = refs.iterator();
   
    //// try each one in turn
    while (it.hasNext()) {
      Ref ref = (Ref)it.next();

      checkMaxRefs(xrdsOut, ref.getValue(), state);

      XRI refXRI;
      try {
        refXRI = parseAbsoluteQXRIOrError(ref.getValue());
      }
      catch (PartialResolutionException e) {
        xrdsOut.add(e.getPartialXRDS());
        continue;
      }
View Full Code Here


    List refs = srv.getPrioritizedRefs();
    Iterator it = refs.iterator();
   
    //// try each one in turn
    while (it.hasNext()) {
      Ref ref = (Ref)it.next();
 
      checkMaxRefs(xrdsOut, ref.getValue(), state);
 
      XRI refXRI;
      try {
        refXRI = parseAbsoluteQXRIOrError(ref.getValue());
      }
      catch (PartialResolutionException e) {
        xrdsOut.add(e.getPartialXRDS());
        continue;
      }
View Full Code Here

            if ((oURI.getPath() != null) && (oURI.getPath().length() > 0))
                return null;

            XRD oDesc = new XRD();
            XRI oExternal = new XRI("xri://@foo");
            oDesc.addRef(new Ref(oExternal.toString()));
            XRDS oDescs = new XRDS();
            oDescs.add(oDesc);
           
      state.pushResolved(oURI.toString(), flags.toString(), oDesc.toString(), oURI);
View Full Code Here

      String refText = FileStore.readLine(fileRef);

      Document document = this.builder.parse(refText);
      Element element = document.getDocumentElement();
      refs.add(new Ref(element));
    }

    // done

    return(refs);
View Full Code Here

      String refText = FileStore.readLine(fileRef);

      Document document = this.builder.parse(refText);
      Element element = document.getDocumentElement();
      refs.add(new Ref(element));
    }

    // done

    return(refs);
View Full Code Here

    List refs = parent.getPrioritizedRefs();
    Iterator it = refs.iterator();
   
    //// try each one in turn
    while (it.hasNext()) {
      Ref ref = (Ref)it.next();

      checkMaxRefs(xrdsOut, ref.getValue(), state);

      XRI refXRI;
      try {
        refXRI = parseAbsoluteQXRIOrError(ref.getValue());
      }
      catch (PartialResolutionException e) {
        xrdsOut.add(e.getPartialXRDS());
        continue;
      }
View Full Code Here

    List refs = srv.getPrioritizedRefs();
    Iterator it = refs.iterator();
   
    //// try each one in turn
    while (it.hasNext()) {
      Ref ref = (Ref)it.next();
 
      checkMaxRefs(xrdsOut, ref.getValue(), state);
 
      XRI refXRI;
      try {
        refXRI = parseAbsoluteQXRIOrError(ref.getValue());
      }
      catch (PartialResolutionException e) {
        xrdsOut.add(e.getPartialXRDS());
        continue;
      }
View Full Code Here

    log.debug("assemble()");

    if (cached == null) return(null);

    Ref ref;
    String refText = (String) cached;

    try {

      Document document = this.builder.parse(refText);
      Element element = document.getDocumentElement();
      ref = new Ref(element);
    } catch (Exception ex) {

      throw new HibernateException("Cannot assemble ref.", ex);
    }
View Full Code Here

    log.debug("disassemble()");

    if (value == null) return(null);

    Ref ref = (Ref) value;
    String refText;

    try {

      Document doc = this.builder.newDocument();
      Node element = ref.toXML(doc);
      doc.appendChild(element);
      refText = DOMUtils.toString((Element) element, true, true);
    } catch (Exception ex) {

      throw new HibernateException("Cannot disassemble ref.", ex);
View Full Code Here

    log.debug("equals()");

    if (x == null || y == null) return(false);

    Ref ref1 = (Ref) x;
    Ref ref2 = (Ref) y;

    boolean result = (ref1 == ref2)// TODO implement this with equals()

    log.debug("Done: " + result);
    return(result)
View Full Code Here

TOP

Related Classes of org.openxri.xml.Ref

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.