Package ca.uhn.fhir.model.dstu.valueset

Examples of ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum


  private void scanResourceForSearchParams(Class<? extends IResource> theClass, RuntimeResourceDefinition theResourceDef) {

    for (Field nextField : theClass.getFields()) {
      SearchParamDefinition searchParam = nextField.getAnnotation(SearchParamDefinition.class);
      if (searchParam != null) {
        SearchParamTypeEnum paramType = SearchParamTypeEnum.valueOf(searchParam.type().toUpperCase());
        if (paramType == null) {
          throw new ConfigurationException("Searc param " + searchParam.name() + " has an invalid type: " + searchParam.type());
        }
        RuntimeSearchParam param = new RuntimeSearchParam(searchParam.name(), searchParam.description(), searchParam.path(), paramType);
        theResourceDef.addSearchParam(param);
View Full Code Here


      myParamType = SearchParamTypeEnum.STRING;
    } else {
      throw new ConfigurationException("Unsupported data type for parameter: " + type.getCanonicalName());
    }

    SearchParamTypeEnum typeEnum = ourParamTypes.get(type);
    if (typeEnum != null) {
      Set<String> builtInQualifiers = ourParamQualifiers.get(typeEnum);
      if (builtInQualifiers != null) {
        if (myQualifierWhitelist != null) {
          HashSet<String> qualifierWhitelist = new HashSet<String>();
View Full Code Here

    Map<Field, SearchParamDefinition> compositeFields = new LinkedHashMap<Field, SearchParamDefinition>();

    for (Field nextField : theClass.getFields()) {
      SearchParamDefinition searchParam = nextField.getAnnotation(SearchParamDefinition.class);
      if (searchParam != null) {
        SearchParamTypeEnum paramType = SearchParamTypeEnum.valueOf(searchParam.type().toUpperCase());
        if (paramType == null) {
          throw new ConfigurationException("Searc param " + searchParam.name() + " has an invalid type: " + searchParam.type());
        }
        if (paramType == SearchParamTypeEnum.COMPOSITE) {
          compositeFields.put(nextField, searchParam);
View Full Code Here

    Map<Field, SearchParamDefinition> compositeFields = new LinkedHashMap<Field, SearchParamDefinition>();

    for (Field nextField : theClass.getFields()) {
      SearchParamDefinition searchParam = nextField.getAnnotation(SearchParamDefinition.class);
      if (searchParam != null) {
        SearchParamTypeEnum paramType = SearchParamTypeEnum.valueOf(searchParam.type().toUpperCase());
        if (paramType == null) {
          throw new ConfigurationException("Searc param " + searchParam.name() + " has an invalid type: " + searchParam.type());
        }
        if(paramType==SearchParamTypeEnum.COMPOSITE) {
          compositeFields.put(nextField, searchParam);
View Full Code Here

TOP

Related Classes of ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum

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.