コード例 #1
0
 /**
  * parameters/parameter
  *
  * @return Returns an List of org.nrg.xdat.om.PipePipelinedetailsParameter
  */
 public <A extends org.nrg.xdat.model.PipePipelinedetailsParameterI>
     List<A> getParameters_parameter() {
   try {
     if (_Parameters_parameter == null) {
       _Parameters_parameter =
           org.nrg.xdat.base.BaseElement.WrapItems(getChildItems("parameters/parameter"));
     }
     return (List<A>) _Parameters_parameter;
   } catch (Exception e1) {
     return (List<A>) new ArrayList<org.nrg.xdat.om.PipePipelinedetailsParameter>();
   }
 }
コード例 #2
0
 /**
  * generatesElements/element
  *
  * @return Returns an List of org.nrg.xdat.om.PipePipelinedetailsElement
  */
 public <A extends org.nrg.xdat.model.PipePipelinedetailsElementI>
     List<A> getGenerateselements_element() {
   try {
     if (_Generateselements_element == null) {
       _Generateselements_element =
           org.nrg.xdat.base.BaseElement.WrapItems(getChildItems("generatesElements/element"));
     }
     return (List<A>) _Generateselements_element;
   } catch (Exception e1) {
     return (List<A>) new ArrayList<org.nrg.xdat.om.PipePipelinedetailsElement>();
   }
 }
コード例 #3
0
 /**
  * parameters/focalSpots/focalSpot
  *
  * @return Returns an List of org.nrg.xdat.om.XnatCtscandataFocalspot
  */
 public <A extends org.nrg.xdat.model.XnatCtscandataFocalspotI>
     List<A> getParameters_focalspots_focalspot() {
   try {
     if (_Parameters_focalspots_focalspot == null) {
       _Parameters_focalspots_focalspot =
           org.nrg.xdat.base.BaseElement.WrapItems(
               getChildItems("parameters/focalSpots/focalSpot"));
     }
     return (List<A>) _Parameters_focalspots_focalspot;
   } catch (Exception e1) {
     return (List<A>) new ArrayList<org.nrg.xdat.om.XnatCtscandataFocalspot>();
   }
 }
コード例 #4
0
  public static ArrayList<org.nrg.xdat.om.CatCatalogTag> getCatCatalogTagsByField(
      String xmlPath, Object value, org.nrg.xft.security.UserI user, boolean preLoad) {
    ArrayList<org.nrg.xdat.om.CatCatalogTag> al = new ArrayList<org.nrg.xdat.om.CatCatalogTag>();
    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetItems(xmlPath, value, user, preLoad);
      al = org.nrg.xdat.base.BaseElement.WrapItems(items.getItems());
    } catch (Exception e) {
      logger.error("", e);
    }

    al.trimToSize();
    return al;
  }
コード例 #5
0
  public static ArrayList<org.nrg.xdat.om.CatCatalogTag> getAllCatCatalogTags(
      org.nrg.xft.security.UserI user, boolean preLoad) {
    ArrayList<org.nrg.xdat.om.CatCatalogTag> al = new ArrayList<org.nrg.xdat.om.CatCatalogTag>();

    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetAllItems(SCHEMA_ELEMENT_NAME, user, preLoad);
      al = org.nrg.xdat.base.BaseElement.WrapItems(items.getItems());
    } catch (Exception e) {
      logger.error("", e);
    }

    al.trimToSize();
    return al;
  }
コード例 #6
0
 /**
  * imageScanData
  *
  * @return org.nrg.xdat.om.XnatImagescandata
  */
 public org.nrg.xdat.om.XnatImagescandata getImagescandata() {
   try {
     if (_Imagescandata == null) {
       _Imagescandata =
           ((XnatImagescandata)
               org.nrg.xdat.base.BaseElement.GetGeneratedItem(
                   (XFTItem) getProperty("imageScanData")));
       return _Imagescandata;
     } else {
       return _Imagescandata;
     }
   } catch (Exception e1) {
     return null;
   }
 }
コード例 #7
0
 /**
  * parameters/contrastBolus
  *
  * @return org.nrg.xdat.om.XnatContrastbolus
  */
 public org.nrg.xdat.om.XnatContrastbolus getParameters_contrastbolus() {
   try {
     if (_Parameters_contrastbolus == null) {
       _Parameters_contrastbolus =
           ((XnatContrastbolus)
               org.nrg.xdat.base.BaseElement.GetGeneratedItem(
                   (XFTItem) getProperty("parameters/contrastBolus")));
       return _Parameters_contrastbolus;
     } else {
       return _Parameters_contrastbolus;
     }
   } catch (Exception e1) {
     return null;
   }
 }
コード例 #8
0
  public static PipePipelinedetails getPipePipelinedetailssByPath(
      Object value, org.nrg.xft.security.UserI user, boolean preLoad) {
    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetItems("pipe:pipelineDetails/path", value, user, preLoad);
      ItemI match = items.getFirst();
      if (match != null)
        return (PipePipelinedetails) org.nrg.xdat.base.BaseElement.GetGeneratedItem(match);
      else return null;
    } catch (Exception e) {
      logger.error("", e);
    }

    return null;
  }
コード例 #9
0
  public static XnatEsvsessiondata getXnatEsvsessiondatasById(
      Object value, org.nrg.xft.security.UserI user, boolean preLoad) {
    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetItems("xnat:esvSessionData/id", value, user, preLoad);
      ItemI match = items.getFirst();
      if (match != null)
        return (XnatEsvsessiondata) org.nrg.xdat.base.BaseElement.GetGeneratedItem(match);
      else return null;
    } catch (Exception e) {
      logger.error("", e);
    }

    return null;
  }
コード例 #10
0
  public static CatCatalogTag getCatCatalogTagsByCatCatalogTagId(
      Object value, org.nrg.xft.security.UserI user, boolean preLoad) {
    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetItems(
              "cat:catalog_tag/cat_catalog_tag_id", value, user, preLoad);
      ItemI match = items.getFirst();
      if (match != null)
        return (CatCatalogTag) org.nrg.xdat.base.BaseElement.GetGeneratedItem(match);
      else return null;
    } catch (Exception e) {
      logger.error("", e);
    }

    return null;
  }
コード例 #11
0
  public static ArrayList<org.nrg.xdat.om.XnatCtscandata> getXnatCtscandatasByField(
      org.nrg.xft.search.CriteriaCollection criteria,
      org.nrg.xft.security.UserI user,
      boolean preLoad) {
    ArrayList<org.nrg.xdat.om.XnatCtscandata> al = new ArrayList<org.nrg.xdat.om.XnatCtscandata>();
    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetItems(criteria, user, preLoad);
      al = org.nrg.xdat.base.BaseElement.WrapItems(items.getItems());
    } catch (Exception e) {
      logger.error("", e);
    }

    al.trimToSize();
    return al;
  }
  public static ExtClinicalassessmentdataMedication
      getExtClinicalassessmentdataMedicationsByExtClinicalassessmentdataMedicationId(
          Object value, org.nrg.xft.security.UserI user, boolean preLoad) {
    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetItems(
              "ext:clinicalAssessmentData_Medication/ext_clinicalAssessmentData_Medication_id",
              value,
              user,
              preLoad);
      ItemI match = items.getFirst();
      if (match != null)
        return (ExtClinicalassessmentdataMedication)
            org.nrg.xdat.base.BaseElement.GetGeneratedItem(match);
      else return null;
    } catch (Exception e) {
      logger.error("", e);
    }

    return null;
  }
  public static XnatFielddefinitiongroupFieldPossiblevalue
      getXnatFielddefinitiongroupFieldPossiblevaluesByXnatFielddefinitiongroupFieldPossiblevalueId(
          Object value, org.nrg.xft.security.UserI user, boolean preLoad) {
    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetItems(
              "xnat:fieldDefinitionGroup_field_possibleValue/xnat_fieldDefinitionGroup_field_possibleValue_id",
              value,
              user,
              preLoad);
      ItemI match = items.getFirst();
      if (match != null)
        return (XnatFielddefinitiongroupFieldPossiblevalue)
            org.nrg.xdat.base.BaseElement.GetGeneratedItem(match);
      else return null;
    } catch (Exception e) {
      logger.error("", e);
    }

    return null;
  }
コード例 #14
0
 public static ArrayList wrapItems(ArrayList items) {
   ArrayList al = new ArrayList();
   al = org.nrg.xdat.base.BaseElement.WrapItems(items);
   al.trimToSize();
   return al;
 }