Package ca.uhn.fhir.model.primitive

Examples of ca.uhn.fhir.model.primitive.StringDt


        if (nextMethodBinding instanceof SearchMethodBinding) {
          List<IParameter> params = ((SearchMethodBinding) nextMethodBinding).getParameters();
          // TODO: this would probably work best if we sorted these by required first, then optional
         
          RestResourceSearchParam searchParam = null;
          StringDt searchParamChain = null;
          for (IParameter nextParameterObj : params) {
            if (!(nextParameterObj instanceof IQueryParameter)) {
              continue;
            }
           
            IQueryParameter nextParameter = (IQueryParameter)nextParameterObj;
            if (nextParameter.getName().startsWith("_")) {
              continue;
            }

            if (searchParam == null) {
              if (!nameToSearchParam.containsKey(nextParameter.getName())) {
                RestResourceSearchParam param = resource.addSearchParam();
                param.setName(nextParameter.getName());
                searchParam = param;
              } else {
                searchParam = nameToSearchParam.get(nextParameter.getName());
              }
             
              if (searchParam !=null) {
                searchParam.setType(nextParameter.getParamType());
              }
             
            } else if (searchParamChain == null) {
              searchParam.addChain(nextParameter.getName());
              searchParamChain = searchParam.getChain().get(searchParam.getChain().size()-1);
              ExtensionDt ext = new ExtensionDt();
              ext.setUrl(ExtensionConstants.CONF_CHAIN_REQUIRED);
              ext.setValue(new BooleanDt(nextParameter.isRequired()));
              searchParamChain.getUndeclaredExtensions().add(ext);
             
            } else {
              ExtensionDt ext = new ExtensionDt();
              ext.setUrl(ExtensionConstants.CONF_ALSO_CHAIN);
              searchParamChain.getUndeclaredExtensions().add(ext);
             
              ExtensionDt extReq = new ExtensionDt();
              extReq.setUrl(ExtensionConstants.CONF_CHAIN_REQUIRED);
              extReq.setValue(new BooleanDt(nextParameter.isRequired()));
              ext.getUndeclaredExtensions().add(extReq);
View Full Code Here


     * Human-readable description of the participant
     * </p>
   */
  public StringDt getDisplay() { 
    if (myDisplay == null) {
      myDisplay = new StringDt();
    }
    return myDisplay;
  }
View Full Code Here

     * <b>Definition:</b>
     * Human-readable description of the participant
     * </p>
   */
  public Agent setDisplay( String theString) {
    myDisplay = new StringDt(theString);
    return this;
  }
View Full Code Here

     * Human-readable description of the entity
     * </p>
   */
  public StringDt getDisplay() { 
    if (myDisplay == null) {
      myDisplay = new StringDt();
    }
    return myDisplay;
  }
View Full Code Here

     * <b>Definition:</b>
     * Human-readable description of the entity
     * </p>
   */
  public Entity setDisplay( String theString) {
    myDisplay = new StringDt(theString);
    return this;
  }
View Full Code Here

     * A name associated with the organization
     * </p>
   */
  public StringDt getName() { 
    if (myName == null) {
      myName = new StringDt();
    }
    return myName;
  }
View Full Code Here

     * <b>Definition:</b>
     * A name associated with the organization
     * </p>
   */
  public Organization setName( String theString) {
    myName = new StringDt(theString);
    return this;
  }
View Full Code Here

     * Human-readable name for the target system
     * </p>
   */
  public StringDt getName() { 
    if (myName == null) {
      myName = new StringDt();
    }
    return myName;
  }
View Full Code Here

     * <b>Definition:</b>
     * Human-readable name for the target system
     * </p>
   */
  public Source setName( String theString) {
    myName = new StringDt(theString);
    return this;
  }
View Full Code Here

     * May include configuration or other information useful in debugging.
     * </p>
   */
  public StringDt getSoftware() { 
    if (mySoftware == null) {
      mySoftware = new StringDt();
    }
    return mySoftware;
  }
View Full Code Here

TOP

Related Classes of ca.uhn.fhir.model.primitive.StringDt

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.