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; }
public void replaceFinalXRD(XRDS children) { XRDS finalXRDS = getFinalXRDS(); finalXRDS.removeChildAt(finalXRDS.getNumChildren() - 1); finalXRDS.addAll(children); }
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)); } }
/* **************************************************************************** * add() **************************************************************************** */ /** * Adds a nested XRDS element */ public void add(XRDS oDescriptor) { moXRDs.Add(oDescriptor); }
/* **************************************************************************** * 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)); } }