Inheritance: Serializable
 public PartialResolutionException(XRD xrd)
     : base(xrd.getStatus().getText())
 {
     PartialXRDS = new XRDS();
     PartialXRDS.add(xrd);
 }
 /**
  * Constructs an obj of this class.
  * @param msg Error message
  * @param xrds The partial resolution results
  */
 public PartialResolutionException(XRDS xrds)
     : base("Resolution did not complete successfully.")
 {
     PartialXRDS = xrds;
 }
Exemple #3
0
 public void replaceFinalXRD(XRDS children)
 {
     XRDS finalXRDS = getFinalXRDS();
     finalXRDS.removeChildAt(finalXRDS.getNumChildren() - 1);
     finalXRDS.addAll(children);
 }
Exemple #4
0
 public void addAll(XRDS other)
 {
     for (int i = 0; i < other.getNumChildren(); i++) {
     if (other.isXRDSAt(i))
         add(other.getXRDSAt(i));
     else
         add(other.getDescriptorAt(i));
     }
 }
Exemple #5
0
 /*
 ****************************************************************************
 * add()
 ****************************************************************************
 */
 /**
 * Adds a nested XRDS element
 */
 public void add(XRDS oDescriptor)
 {
     moXRDs.Add(oDescriptor);
 }
Exemple #6
0
 /*
 ****************************************************************************
 * addXRIDescriptors()
 ****************************************************************************
 */
 /**
  * Adds the specified XRI Descriptors to the chain
  */
 public void addXRIDescriptors(XRDS oDescriptors)
 {
     for (int i = 0; i < oDescriptors.getNumChildren(); i++) {
         addXRIDescriptor(oDescriptors.getDescriptorAt(i));
     }
 }